[Interest] Troubles with debugging

Michal Klocek michal.klocek at qt.io
Wed Feb 19 18:21:56 CET 2020


Please open bug report on https://bugreports.qt.io/

On 2/19/20 6:17 PM, john at wavemetrics.com wrote:
> I still see it after a couple of Qt Creator updates. My colleague here is using a pretty old version of Creator because of this problem. So it seems like something Creator is doing. Googling _os_unfair_lock_recursive_abort or _os_unfair_lock_lock_slow doesn't yield much, except for bug reports on other applications.
> 
> -John Weeks
> 
> 
>> On Feb 19, 2020, at 8:31 AM, Nils Jeisecke <nils.jeisecke at saltation.com> wrote:
>>
>> Hi list,
>>
>> I'm seeing the same thing here. Not sure when troubles started.
>> Nobody else having problems with that?
>>
>> Nils
>>
>> Am 19.08.2019 um 11:37 hat John Weeks geschrieben:
>>> On Macintosh OS X 10.14.5, Qt 5.12.5, and Qt Creator 4.9.2 I keep getting a crash while stepping through code. I get a stack trace that looks something like this:
>>>
>>> 1   _os_unfair_lock_recursive_abort                                                                                                                                 (x86_64) /usr/lib/system/libsystem_platform.dylib      0x7fff64dac1c2
>>> 2   _os_unfair_lock_lock_slow                                                                                                                                       (x86_64) /usr/lib/system/libsystem_platform.dylib      0x7fff64da8caa
>>> 3   look_up_class                                                                                                                                                   (x86_64h) /usr/lib/libobjc.A.dylib                     0x7fff633e6774
>>> 4   QMacAutoReleasePool::QMacAutoReleasePool()                                                                                                                      qcore_mac_objc.mm                                 169  0x111cd1dc5
>>> 5   QMacAutoReleasePool::QMacAutoReleasePool()                                                                                                                      qcore_mac_objc.mm                                 140  0x111cd1ec5
>>> 6   QMacStyle::styleHint(QStyle::StyleHint, QStyleOption const *, QWidget const *, QStyleHintReturn *) const                                                        qmacstyle_mac.mm                                  2602 0x11c53c5e2
>>> 7   QProxyStyle::styleHint(QStyle::StyleHint, QStyleOption const *, QWidget const *, QStyleHintReturn *) const                                                      qproxystyle.cpp                                   290  0x10f7adea6
>>> 8   IgorProxyStyle::styleHint(QStyle::StyleHint, QStyleOption const *, QWidget const *, QStyleHintReturn *) const                                                   IgorProxyStyle.cpp                                250  0x1002c2191
>>> 9   QFocusFrame::setWidget(QWidget *)                                                                                                                               qfocusframe.cpp                                   187  0x10f830bba
>>> 10  QMacStyle::event(QEvent *)                                                                                                                                      qmacstyle_mac.mm                                  6517 0x11c55e379
>>> <...... Lots of other stuff removed here .......>
>>>
>>> Plain debug build, turned on the checkbox for loading the debug Qt frameworks. The styleHint and AutoReleasePool stuff seems to be a constant part of the problem.
>>>
>>> That bit at line 2 about "slow" suggests that OS X got tired of waiting for my stepping through the code and decided to abort. This makes it really hard to debug certain parts of the code. Is this anything that y'all have seen? Is there a solution? Do I just have to use QDebug() statements liberally sprinkled about my code to debug?
>>>
>>> Any insight greatly appreciated.
>>>
>>> -John Weeks
>>>
>>> _______________________________________________
>>> Interest mailing list
>>> Interest at qt-project.org
>>> https://lists.qt-project.org/listinfo/interest
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
> 


More information about the Interest mailing list