Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Debugging in Qt creator gives SIGABRT

    General and Desktop
    3
    3
    388
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      C-Cubed last edited by

      I'm sure I'm not the first one to report this, but I haven't found any related posts.
      I am developing a simple multi-threaded application in Qt Creator (two threads).
      My second thread, worker thread, has multiple references to Qt Vectors.
      When triggering breakpoints in that thread. Qt frequently displays a message box
      saying SIGABRT. Usually at this point the Qt debugger hangs. If it doesn't I can see
      the SIGABRT is triggered by an "index out of range" error in a Qt Vector. However, the error is not in my code. I suspect the error is in Qt debugger itself and that the error is triggered while trying to evaluate a symbol or expression for display. Its very frustrating. It makes it impossible to debug using QT debugger. I'm forced to use printf's or the equivalent.
      Is there a way to suppress the assert in the Qt Vector. Is there a way to prevent the debugger from hanging?
      If I'm posting in the wrong place, please point me to the proper location.
      Thanks in advance.

      jsulm J.Hilk 2 Replies Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @C-Cubed last edited by

        @C-Cubed said in Debugging in Qt creator gives SIGABRT:

        However, the error is not in my code

        Even if it breaks inside Qt the source of the issue still can be in your code.
        Please post a stack trace after the crash.
        Also: does a debug build run without debugging without crashes?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • J.Hilk
          J.Hilk Moderators @C-Cubed last edited by

          @C-Cubed What OS, what target OS and what QtCreator, what Qt version and what debugger are we talking about here ?

          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

          Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post