Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

Qt crash when call exec() function



  • my gui binary crash when i call exec function in mac os x 10.8(mountain lion). its works fine in linux os and mac os x 10.6. i am using qt 4.8 version.

    gdb backtrace for crash

    libsystem_kernel.dylib`__pthread_kill + 10:
    -> 0x7fff905cb23a: jae 0x7fff905cb241 ; __pthread_kill + 17
    0x7fff905cb23c: jmpq 0x7fff905cc4dc ; cerror
    0x7fff905cb241: ret
    0x7fff905cb242: nop
    (lldb) bt

    • thread #1: tid = 0x0de8, 0x00007fff905cb23a libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
      • frame #0: 0x00007fff905cb23a libsystem_kernel.dylib__pthread_kill + 10 frame #1: 0x00007fff92ee0850 libsystem_c.dylibpthread_kill + 90
        frame #2: 0x00007fff92f2a60e libsystem_c.dylibabort + 143 frame #3: 0x0000000108c53c75 QtCoreqt_message_output(QtMsgType, char const*) + 117
        frame #4: 0x0000000108c53e57 QtCoreqt_message(QtMsgType, char const*, __va_list_tag*) + 183 frame #5: 0x0000000108c5401a QtCoreqFatal(char const*, ...) + 170
        frame #6: 0x000000010943ef35 QtGuiQWidgetPrivate::QWidgetPrivate(int) + 853 frame #7: 0x0000000109454a3b QtGuiQWidget::QWidget(QWidget*, QFlagsQt::WindowType) + 59
        frame #8: 0x00000001093ac899 QtGuiQDesktopWidget::QDesktopWidget() + 41 frame #9: 0x00000001093f6dcb QtGuiQApplication::desktop() + 59
        frame #10: 0x00000001093a7d3b QtGuiflipPoint(CGPoint const&) + 27 frame #11: 0x00000001093a2f97 QtGui-[QCocoaWindowDelegate windowDidMove:] + 135
        frame #12: 0x00007fff92d3095a CoreFoundation_CFXNotificationPost + 2554 frame #13: 0x00007fff92fc7a36 Foundation-[NSNotificationCenter postNotificationName:object:userInfo:] + 64
        frame #14: 0x00007fff96835bb5 AppKit-[NSWindow _setFrameCommon:display:stashSize:] + 1905 frame #15: 0x000000010939521a QtGuiQWidgetPrivate::setGeometry_sys(int, int, int, int, bool) + 698
        frame #16: 0x000000010944bf04 QtGuiQWidget::move(QPoint const&) + 196 frame #17: 0x00000001098a1adb QtGuiQDialog::adjustPosition(QWidget*) + 571
        frame #18: 0x00000001098a253e QtGuiQDialog::showEvent(QShowEvent*) + 94 frame #19: 0x000000010944f6fa QtGuiQWidget::event(QEvent*) + 3274
        frame #20: 0x00000001093f7b0d QtGuiQApplicationPrivate::notify_helper(QObject*, QEvent*) + 189 frame #21: 0x00000001093fbd68 QtGuiQApplication::notify(QObject*, QEvent*) + 232
        frame #22: 0x0000000108d7954c QtCoreQCoreApplication::notifyInternal(QObject*, QEvent*) + 124 frame #23: 0x0000000109452305 QtGuiQWidgetPrivate::show_helper() + 373
        frame #24: 0x000000010945265f QtGuiQWidget::setVisible(bool) + 511 frame #25: 0x00000001098a3057 QtGuiQDialog::setVisible(bool) + 103
        frame #26: 0x00000001098a23b0 QtGuiQDialog::exec() + 144 frame #27: 0x00000001000fd1d6 escanguiScanMemory() + 118 at main.cpp:1833
        frame #28: 0x00000001000fbc58 escangui`main(argc=1, argv=0x00007fff5fbffd50) + 9208 at main.cpp:1295

    ``


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What version of Qt 4.8 ?
    On which version of macOS are you building ?

    Just one important note, everything you are currently using (OS versions, Qt version) has reached end of life.


Log in to reply