Qt debugger not working on Mac - (Python quit unexpectedly while using the _lldb.so plug-in)
-
Hi
Whenever I "Start Debugging" with Qt.
It does not stop at the set breakpoints and it shows a dialog box with this message:
"Python quit unexpectedly while using the _lldb.so plug-in"What's wrong and how do I fix this?
I'm using this version of Qt Creator and Qt:
Qt Creator 3.3.0 (opensource)
Based on Qt 5.4.0 (Clang 6.0 (Apple), 64 bit)Built on Dec 8 2014 at 15:34:58
From revision d36c4d87db
Copyright 2008-2014 Digia Plc. All rights reserved.
Here is a portion of the "Problem Details and System Configuration":
Process: Python [3096]
Path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.6 (2.7.6)
Code Type: X86-64 (Native)
Parent Process: Qt Creator [2717]
Responsible: Qt Creator [2717]
User ID: 502PlugIn Path: /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/Python/lldb/_lldb.so
PlugIn Identifier: _lldb.so
PlugIn Version: ??? (320.4.156)Date/Time: 2015-01-04 01:03:21.911 +0800
OS Version: Mac OS X 10.10.1 (14B25)
Report Version: 11
Anonymous UUID: 72A209EB-BBC9-FC8F-958D-5E56334EF04ATime Awake Since Boot: 18000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010VM Regions Near 0x10:
-->
__TEXT 0000000109c29000-0000000109c2a000 [ 4K] r-x/rwx SM=COW /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/PythonThread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _lldb.so 0x000000010aeee651 lldb::SBAddress::SetLoadAddress(unsigned long long, lldb::SBTarget&) + 167
1 _lldb.so 0x000000010aeee56b lldb::SBAddress::SBAddress(unsigned long long, lldb::SBTarget&) + 25
2 _lldb.so 0x000000010af0d1c9 _wrap_new_SBAddress(_object*, _object*) + 1084
........... -
Several others have the same problem. We've filed a bug report on it.
The bug tracking site is changing over on I think 1/7 to a new server so after its up and running you can search to find the bug or someone will probably link it here.
-
So I've managed to debug this.
The shared library (.so) is binary incompatible between Mavericks and Yosemite.
The simplest way to fix this is just to compile the darn thing yourself. In other words,
$ git clone https://gitorious.org/qt-creator/qt-creator.git
$ cd qt-creator
$ export PATH=${PATH}:/Users/${user}/Qt/5.4/clang_64/bin/
$ qmake
$ make -j 4
$ cd bin/Qt Creator.app/Contents/MacOS
$ ./Qt\ Creator -
Thanks for posting the build sequence. I haven't tried to debug yet but the built Qt Creator seems to run. Thanks again.