Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18135

Crash when debugging application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 4.4.0-rc1
    • Qt Creator 4.4.0-beta1
    • Debugger
    • None
    • Mac, Windows
    • a54cba428ac3461c11cf0659c60d20503a688309 et all

    Description

      I open a Qt Quick application and put a breakpoint on the "QQmlApplicationEngine engine" line. When I start debugging, Creator crashes. Has happened on Windows and Mac. Here's the backtrace on Mac:

      Process:               Qt Creator [471]
      Path:                  /Users/USER/*/Qt Creator.app/Contents/MacOS/Qt Creator
      Identifier:            org.qt-project.qtcreator
      Version:               4.3 (4.3.82)
      Code Type:             X86-64 (Native)
      Parent Process:        bash [466]
      Responsible:           Terminal [308]
      User ID:               501
      
      Date/Time:             2017-05-03 10:35:22.418 +0200
      OS Version:            Mac OS X 10.11.6 (15G1421)
      Report Version:        11
      Anonymous UUID:        EDE3C20B-41AE-56BD-3199-920990A42540
      
      
      Time Awake Since Boot: 190 seconds
      
      System Integrity Protection: enabled
      
      Crashed Thread:        0  Dispatch queue: com.apple.main-thread
      
      Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000008
      
      VM Regions Near 0x8:
      --> 
          __TEXT                 000000010aa19000-000000010aa2c000 [   76K] r-x/rwx SM=COW  /Users/USER/*/Qt Creator.app/Contents/MacOS/Qt Creator
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.qt-project.QtCore         	0x000000010b96df77 QMetaObject::activate(QObject*, int, int, void**) + 39
      1   libDebugger.dylib             	0x00000001155ef8fc Debugger::DebuggerRunTool::stateChanged(Debugger::DebuggerState) + 60
      2   libDebugger.dylib             	0x00000001153af9a0 Debugger::Internal::DebuggerEngine::setState(Debugger::DebuggerState, bool) + 1456
      3   libDebugger.dylib             	0x00000001153b4451 Debugger::Internal::DebuggerEnginePrivate::queueSetupEngine() + 33
      4   libDebugger.dylib             	0x0000000115572847 Debugger::Internal::QmlCppEngine::setupEngine() + 39
      5   libDebugger.dylib             	0x00000001153a706f Debugger::Internal::DebuggerEnginePrivate::doSetupEngine() + 287
      6   org.qt-project.QtCore         	0x000000010b975a66 QSingleShotTimer::timerEvent(QTimerEvent*) + 134
      7   org.qt-project.QtCore         	0x000000010b967320 QObject::event(QEvent*) + 48
      8   org.qt-project.QtWidgets      	0x000000010aca458d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
      9   org.qt-project.QtWidgets      	0x000000010aca6ed2 QApplication::notify(QObject*, QEvent*) + 5906
      10  org.qt-project.QtCore         	0x000000010b93d544 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
      11  org.qt-project.QtCore         	0x000000010b9929d6 QTimerInfoList::activateTimers() + 1142
      12  libqcocoa.dylib               	0x000000010ed78ae2 QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 18
      13  com.apple.CoreFoundation      	0x00007fff94de87e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      14  com.apple.CoreFoundation      	0x00007fff94dc7e97 __CFRunLoopDoSources0 + 423
      15  com.apple.CoreFoundation      	0x00007fff94dc743f __CFRunLoopRun + 927
      16  com.apple.CoreFoundation      	0x00007fff94dc6e38 CFRunLoopRunSpecific + 296
      17  com.apple.HIToolbox           	0x00007fff8a357935 RunCurrentEventLoopInMode + 235
      18  com.apple.HIToolbox           	0x00007fff8a357677 ReceiveNextEventCommon + 184
      19  com.apple.HIToolbox           	0x00007fff8a3575af _BlockUntilNextEventMatchingListInModeWithFilter + 71
      20  com.apple.AppKit              	0x00007fff99cc8df6 _DPSNextEvent + 1067
      21  com.apple.AppKit              	0x00007fff99cc8226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
      22  com.apple.AppKit              	0x00007fff99cbcd80 -[NSApplication run] + 682
      23  libqcocoa.dylib               	0x000000010ed796bf QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2143
      24  org.qt-project.QtCore         	0x000000010b939781 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
      25  org.qt-project.QtCore         	0x000000010b93dbb5 QCoreApplication::exec() + 341
      26  org.qt-project.qtcreator      	0x000000010aa25894 main + 16996
      27  libdyld.dylib                 	0x00007fff973e35ad start + 1
      
      Thread 1:: Dispatch queue: com.apple.libdispatch-manager
      0   libsystem_kernel.dylib        	0x00007fff8fd9cefa kevent_qos + 10
      1   libdispatch.dylib             	0x00007fff93f73165 _dispatch_mgr_invoke + 216
      2   libdispatch.dylib             	0x00007fff93f72dcd _dispatch_mgr_thread + 52
      
      Thread 2:: com.apple.CFSocket.private
      0   libsystem_kernel.dylib        	0x00007fff8fd9c07a __select + 10
      1   com.apple.CoreFoundation      	0x00007fff94e0545a __CFSocketManager + 762
      2   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      3   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      4   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 3:: QThread
      0   libsystem_kernel.dylib        	0x00007fff8fd9d2a2 poll + 10
      1   org.qt-project.QtCore         	0x000000010b98fa90 qt_safe_poll(pollfd*, unsigned int, timespec const*) + 544
      2   org.qt-project.QtCore         	0x000000010b990f75 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 885
      3   org.qt-project.QtCore         	0x000000010b939781 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
      4   org.qt-project.QtCore         	0x000000010b777eee QThread::exec() + 110
      5   org.qt-project.QtCore         	0x000000010b77b85a QThreadPrivate::start(void*) + 362
      6   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      7   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      8   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 4:: QQmlThread
      0   libsystem_kernel.dylib        	0x00007fff8fd9d2a2 poll + 10
      1   org.qt-project.QtCore         	0x000000010b98fa90 qt_safe_poll(pollfd*, unsigned int, timespec const*) + 544
      2   org.qt-project.QtCore         	0x000000010b990f75 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 885
      3   org.qt-project.QtCore         	0x000000010b939781 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
      4   org.qt-project.QtCore         	0x000000010b777eee QThread::exec() + 110
      5   org.qt-project.QtQml          	0x000000010c062699 QQmlThreadPrivate::run() + 57
      6   org.qt-project.QtCore         	0x000000010b77b85a QThreadPrivate::start(void*) + 362
      7   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      8   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      9   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 5:: QQmlThread
      0   libsystem_kernel.dylib        	0x00007fff8fd9d2a2 poll + 10
      1   org.qt-project.QtCore         	0x000000010b98fa90 qt_safe_poll(pollfd*, unsigned int, timespec const*) + 544
      2   org.qt-project.QtCore         	0x000000010b990f75 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 885
      3   org.qt-project.QtCore         	0x000000010b939781 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
      4   org.qt-project.QtCore         	0x000000010b777eee QThread::exec() + 110
      5   org.qt-project.QtQml          	0x000000010c062699 QQmlThreadPrivate::run() + 57
      6   org.qt-project.QtCore         	0x000000010b77b85a QThreadPrivate::start(void*) + 362
      7   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      8   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      9   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 6:: com.apple.NSEventThread
      0   libsystem_kernel.dylib        	0x00007fff8fd95f72 mach_msg_trap + 10
      1   libsystem_kernel.dylib        	0x00007fff8fd953b3 mach_msg + 55
      2   com.apple.CoreFoundation      	0x00007fff94dc8124 __CFRunLoopServiceMachPort + 212
      3   com.apple.CoreFoundation      	0x00007fff94dc75ec __CFRunLoopRun + 1356
      4   com.apple.CoreFoundation      	0x00007fff94dc6e38 CFRunLoopRunSpecific + 296
      5   com.apple.AppKit              	0x00007fff99e1ed95 _NSEventThread + 149
      6   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      7   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      8   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 7:
      0   libsystem_kernel.dylib        	0x00007fff8fd9c5e2 __workq_kernreturn + 10
      1   libsystem_pthread.dylib       	0x00007fff93dca578 _pthread_wqthread + 1283
      2   libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 8:
      0   libsystem_kernel.dylib        	0x00007fff8fd9c5e2 __workq_kernreturn + 10
      1   libsystem_pthread.dylib       	0x00007fff93dca578 _pthread_wqthread + 1283
      2   libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 9:
      0   libsystem_kernel.dylib        	0x00007fff8fd9c5e2 __workq_kernreturn + 10
      1   libsystem_pthread.dylib       	0x00007fff93dca578 _pthread_wqthread + 1283
      2   libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 10:
      0   libsystem_kernel.dylib        	0x00007fff8fd9c5e2 __workq_kernreturn + 10
      1   libsystem_pthread.dylib       	0x00007fff93dca578 _pthread_wqthread + 1283
      2   libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 11:
      0   libsystem_kernel.dylib        	0x00007fff8fd9c5e2 __workq_kernreturn + 10
      1   libsystem_pthread.dylib       	0x00007fff93dca578 _pthread_wqthread + 1283
      2   libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 12:: Dispatch queue: NSCGSDisableUpdates
      0   libsystem_kernel.dylib        	0x00007fff8fd95f72 mach_msg_trap + 10
      1   libsystem_kernel.dylib        	0x00007fff8fd953b3 mach_msg + 55
      2   com.apple.CoreGraphics        	0x00007fff916669c1 _CGSReenableUpdateForConnection + 92
      3   com.apple.CoreGraphics        	0x00007fff91666691 CGSReenableUpdateToken + 469
      4   libdispatch.dylib             	0x00007fff93f7893d _dispatch_call_block_and_release + 12
      5   libdispatch.dylib             	0x00007fff93f6d40b _dispatch_client_callout + 8
      6   libdispatch.dylib             	0x00007fff93f7203b _dispatch_queue_drain + 754
      7   libdispatch.dylib             	0x00007fff93f78707 _dispatch_queue_invoke + 549
      8   libdispatch.dylib             	0x00007fff93f6d40b _dispatch_client_callout + 8
      9   libdispatch.dylib             	0x00007fff93f7129b _dispatch_root_queue_drain + 1890
      10  libdispatch.dylib             	0x00007fff93f70b00 _dispatch_worker_thread3 + 91
      11  libsystem_pthread.dylib       	0x00007fff93dca4de _pthread_wqthread + 1129
      12  libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 13:
      0   libsystem_kernel.dylib        	0x00007fff8fd9c5e2 __workq_kernreturn + 10
      1   libsystem_pthread.dylib       	0x00007fff93dca578 _pthread_wqthread + 1283
      2   libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 14:
      0   libsystem_kernel.dylib        	0x00007fff8fd9c5e2 __workq_kernreturn + 10
      1   libsystem_pthread.dylib       	0x00007fff93dca578 _pthread_wqthread + 1283
      2   libsystem_pthread.dylib       	0x00007fff93dc8341 start_wqthread + 13
      
      Thread 15:: Thread (pooled)
      0   libsystem_kernel.dylib        	0x00007fff8fd9bdb6 __psynch_cvwait + 10
      1   libsystem_pthread.dylib       	0x00007fff93dcb728 _pthread_cond_wait + 767
      2   org.qt-project.QtCore         	0x000000010b77d03f QWaitConditionPrivate::wait_relative(unsigned long) + 287
      3   org.qt-project.QtCore         	0x000000010b77ce7b QWaitConditionPrivate::wait(unsigned long) + 43
      4   org.qt-project.QtCore         	0x000000010b77cd42 QWaitCondition::wait(QMutex*, unsigned long) + 162
      5   org.qt-project.QtCore         	0x000000010b7788fe QThreadPoolThread::run() + 574
      6   org.qt-project.QtCore         	0x000000010b77b85a QThreadPrivate::start(void*) + 362
      7   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      8   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      9   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 16:: Thread (pooled)
      0   libsystem_kernel.dylib        	0x00007fff8fd9bdb6 __psynch_cvwait + 10
      1   libsystem_pthread.dylib       	0x00007fff93dcb728 _pthread_cond_wait + 767
      2   org.qt-project.QtCore         	0x000000010b77d03f QWaitConditionPrivate::wait_relative(unsigned long) + 287
      3   org.qt-project.QtCore         	0x000000010b77ce7b QWaitConditionPrivate::wait(unsigned long) + 43
      4   org.qt-project.QtCore         	0x000000010b77cd42 QWaitCondition::wait(QMutex*, unsigned long) + 162
      5   org.qt-project.QtCore         	0x000000010b7788fe QThreadPoolThread::run() + 574
      6   org.qt-project.QtCore         	0x000000010b77b85a QThreadPrivate::start(void*) + 362
      7   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      8   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      9   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 17:: Thread (pooled)
      0   libsystem_kernel.dylib        	0x00007fff8fd9bdb6 __psynch_cvwait + 10
      1   libsystem_pthread.dylib       	0x00007fff93dcb728 _pthread_cond_wait + 767
      2   org.qt-project.QtCore         	0x000000010b77d03f QWaitConditionPrivate::wait_relative(unsigned long) + 287
      3   org.qt-project.QtCore         	0x000000010b77ce7b QWaitConditionPrivate::wait(unsigned long) + 43
      4   org.qt-project.QtCore         	0x000000010b77cd42 QWaitCondition::wait(QMutex*, unsigned long) + 162
      5   org.qt-project.QtCore         	0x000000010b7788fe QThreadPoolThread::run() + 574
      6   org.qt-project.QtCore         	0x000000010b77b85a QThreadPrivate::start(void*) + 362
      7   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      8   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      9   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 18:: Thread (pooled)
      0   libsystem_kernel.dylib        	0x00007fff8fd9bdb6 __psynch_cvwait + 10
      1   libsystem_pthread.dylib       	0x00007fff93dcb728 _pthread_cond_wait + 767
      2   org.qt-project.QtCore         	0x000000010b77d03f QWaitConditionPrivate::wait_relative(unsigned long) + 287
      3   org.qt-project.QtCore         	0x000000010b77ce7b QWaitConditionPrivate::wait(unsigned long) + 43
      4   org.qt-project.QtCore         	0x000000010b77cd42 QWaitCondition::wait(QMutex*, unsigned long) + 162
      5   org.qt-project.QtCore         	0x000000010b7788fe QThreadPoolThread::run() + 574
      6   org.qt-project.QtCore         	0x000000010b77b85a QThreadPrivate::start(void*) + 362
      7   libsystem_pthread.dylib       	0x00007fff93dca99d _pthread_body + 131
      8   libsystem_pthread.dylib       	0x00007fff93dca91a _pthread_start + 168
      9   libsystem_pthread.dylib       	0x00007fff93dc8351 thread_start + 13
      
      Thread 0 crashed with X86 Thread State (64-bit):
        rax: 0x0000000000000003  rbx: 0x0000000000000000  rcx: 0x00007fff551e4400  rdx: 0x0000000000000000
        rdi: 0x0000000000000000  rsi: 0x0000000000000003  rbp: 0x00007fff551e43e0  rsp: 0x00007fff551e42d0
         r8: 0x0000000000000006   r9: 0x00007fd871294350  r10: 0x000000009790a76b  r11: 0x00007fd871200000
        r12: 0x00007fd87071cf80  r13: 0x0000000000000000  r14: 0x00007fff551e4400  r15: 0x670021f0dc4baaa3
        rip: 0x000000010b96df77  rfl: 0x0000000000010202  cr2: 0x0000000000000008
        
      Logical CPU:     6
      Error Code:      0x00000004
      Trap Number:     14
      

      Here's the application output:

      mitch-mac:qt-creator-5.8-fw mitch$ bin/Qt\ Creator.app/Contents/MacOS/Qt\ Creator 
      Cannot update Qt version information: /Users/mitch/dev/qt5.8-debug/qtbase/bin/qmake cannot be run.
      QObject::connect: invalid null parameter
      Segmentation fault: 11
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes