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

debugged program crashes when calling pthread_create()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.14.1
    • Fix Version/s: None
    • Component/s: Debugger
    • Labels:
      None
    • Environment:
      Linux Mint Cinnamon
      AMD Ryzen 5 2400G
      GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
      compiled with gcc or clang
    • Platform/s:
      Linux/X11

      Description

      Debugging a program always fails when pthread_create() is excuted.

      The debugged program is stopped with SIGSTOP and the stack trace says: in clone.S in allocatestack.c

      This seems to happen since ~ start of 2021.

      I first noticed this when debugging a small wxWidgets test application but assumed it was more a problem with wxWidgets. Now i found one of my own command line programs fails with the same error and from the output it printed so far i could find it's in pthread_create() which was not visible from the stack trace for me.

      running the compiled program from gdb stand-along works.

      1.) my project: https://github.com/Megatokio/Libraries

      the Qt project is in LibraryTester/

      put a breakpoint in tempmem.test.cpp line 192 to stop before pthread_create()

      2.) wxWidget project: https://k1.spdns.de/Develop/Projects/Incubator/wxTest/wxTest/

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              hjk hjk
              Reporter:
              kio Günter Woigk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes