使用Qt应用程序在OSX 10.9.2上使用EXC_BAD_ACCESS(SIGSEGV)

时间:2014-04-17 10:12:58

标签: macos qt exc-bad-access sigsegv qt4.8

我为各种加密货币构建OSX钱包,并使用QT 4.8.5构建它们。

我的.app文件的一个用户最近向我发送了这些错误日志,当他试图打开我在他的系统上构建的任何应用程序时出现这些日志。他确实看起来是一个一个案例,所以我认为他的系统出了问题,但其他人发布了另一个日志,引用了同样的问题。我似乎无法确定问题所在。关于什么是错的任何想法?

Process:         FairCoin-Qt [42516]
Path:            /Users/USER/Downloads/FairCoin-Qt 3.app/Contents/MacOS/FairCoin-Qt
Identifier:      com.yourcompany.FairCoin-Qt
Version:         ???
Code Type:       X86-64 (Native)
Parent Process:  launchd [145]
Responsible:     FairCoin-Qt [42516]
User ID:         501

Date/Time:       2014-04-17 11:04:09.485 +0200
OS Version:      Mac OS X 10.9.2 (13C64)
Report Version:  11
Anonymous UUID:  61FC4C8C-2509-6D30-A775-5C3E7F320AB1

Sleep/Wake UUID: CEC509C8-BC3E-4170-8656-A3B9499E5BB9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
--> 
    __TEXT                 0000000100000000-0000000100540000 [ 5376K] r-x/rwx SM=COQ /Users/USER/Downloads/FairCoin-Qt 3.app/Contents/MacOS/FairCoin-Qt

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   QtGui                           0x0000000109ebb570 QApplication::setActiveWindow(QWidget*) + 400
1   QtGui                           0x0000000109e4fe94 onApplicationWindowChangedActivation(QWidget*, bool) + 100
2   com.apple.CoreFoundation        0x00007fff8cb3ce0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
3   com.apple.CoreFoundation        0x00007fff8ca30a6d _CFXNotificationPost + 2893
4   com.apple.Foundation            0x00007fff8bb297ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
5   QtGui                           0x0000000100a3e12b QWidgetPrivate::setParent_sys(QWidget*, QFlags<Qt::WindowType>) + 5163
6   com.apple.AppKit                0x00007fff91e36a67 _NXShowKeyAndMain + 171
7   com.apple.AppKit                0x00007fff91cd3ad6 -[NSApplication sendEvent:] + 7127
8   QtGui                           0x0000000100a4b8b2 QMacInputContext::reset() + 45538
9   com.apple.AppKit                0x00007fff91b22b89 -[NSApplication run] + 646
10  QtGui                           0x0000000100a541bf QDesktopWidget::resizeEvent(QResizeEvent*) + 3887
11  QtGui                           0x0000000100a55de1 QDesktopWidget::resizeEvent(QResizeEvent*) + 11089
12  QtCore                          0x00000001016e8d35 QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 69
13  QtGui                           0x0000000100af77cf QWidgetPrivate::show_helper() + 639
14  QtGui                           0x0000000100af7a1f QWidget::setVisible(bool) + 511
15  com.yourcompany.FairCoin-Qt     0x000000010002b022 main + 7794
16  com.yourcompany.FairCoin-Qt     0x0000000100027fd8 start + 52

Thread 1:
0   libsystem_kernel.dylib          0x00007fff90c3be6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff97dcff08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff97dd2fb9 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff90c3c662 kevent64 + 10
1   libdispatch.dylib               0x00007fff8a7b243d _dispatch_mgr_invoke + 239
2   libdispatch.dylib               0x00007fff8a7b2152 _dispatch_mgr_thread + 52

Thread 3:
0   libsystem_kernel.dylib          0x00007fff90c3be6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff97dcff08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff97dd2fb9 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff90c3be6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff97dcff08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff97dd2fb9 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib          0x00007fff90c37a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff90c36d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff8ca91155 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff8ca90779 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff8ca900b5 CFRunLoopRunSpecific + 309
5   com.apple.AppKit                0x00007fff91ccf16e _NSEventThread + 144
6   libsystem_pthread.dylib         0x00007fff97dce899 _pthread_body + 138
7   libsystem_pthread.dylib         0x00007fff97dce72a _pthread_start + 137
8   libsystem_pthread.dylib         0x00007fff97dd2fc9 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fff5fbff660  rcx: 0x0000000101c66130  rdx: 0x0000000000000002
  rdi: 0x00007fff5fbff660  rsi: 0x0000000000000001  rbp: 0x00007fff5fbfe880  rsp: 0x00007fff5fbfe7e0
  r8: 0x0000000106ea5410   r9: 0x0000000000000011  r10: 0x0000000101b4a1d0  r11: 0x00007fff7ab45c88
  r12: 0x00000000000f4282  r13: 0x00007fff5fbfea80  r14: 0x00007fff5fbff660  r15: 0x000000010a6e8418
  rip: 0x0000000109ebb570  rfl: 0x0000000000010202  cr2: 0x0000000000000000

Logical CPU:     1
Error Code:      0x00000004
Trap Number:     14


External Modification Summary:
  Calls made by other processes targeting this process:
  task_for_pid: 1
  thread_create: 0
  thread_set_state: 0
Calls made by this process:
  task_for_pid: 0
  thread_create: 0
  thread_set_state: 0
Calls made by all processes on this machine:
  task_for_pid: 126855
  thread_create: 2
  thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=200.9M resident=76.7M(38%) swapped_out_or_unallocated=124.3M(62%)
Writable regions: Total=75.9M written=4632K(6%) resident=10.2M(13%) swapped_out=1224K(2%) unallocated=65.7M(87%)

REGION TYPE                      VIRTUAL
===========                      =======
CG backing stores                   452K
CG shared images                    172K
CoreServices                       1068K
Dispatch continuations             8192K
Kernel Alloc Once                     8K
MALLOC                             38.8M
MALLOC (admin)                       32K
Memory Tag 242                       12K
STACK GUARD                        56.0M
Stack                              10.1M
VM_ALLOCATE                        16.3M
__DATA                             20.9M
__IMAGE                             528K
__LINKEDIT                         73.9M
__TEXT                            127.0M
__UNICODE                           544K
mapped file                        82.0M
shared memory                         4K
===========                      =======
TOTAL                             435.9M

我已经删除了二进制文件加载部分以将错误修剪为大小,但您可以在此处找到完整的错误日志和其他错误日志:

FairCoin-Qt CannaCoin-Qt

1 个答案:

答案 0 :(得分:2)

我知道已经有一段时间但我刚刚处理了一个基本相同的错误。长话短说,这是由两个版本的Qt之间的碰撞引起的。有几种可能的原因:

  • 最常见的似乎是一个拥有自己版本Qt的插件。
  • 在我的情况下,这是一个问题,PyInstaller没有让我的应用程序指向包含的Qt版本,因此它与我的库中的常规安装相冲突。

我实际上删除了我的Qt安装,以确认这实际上是问题(之后应用运行良好)。通过扩展,您只能在安装了Qt。

的客户中看到问题

用户可以通过两种方式诊断问题:

  • 打开.app文件夹并向下导航到Contents / MacOS。从此位置运行该程序。你会得到一个终端显示如下错误:http://www.pyinstaller.org/ticket/472
  • 确认是否存在Qt安装。 (暂时)移动Qt Libraries并查看应用程序是否成功运行。