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

if use pthread_creat() function, a stopped signal will occur, unless don't check the run in terminal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 7.0.0-beta1
    • Debugger
    • None
    • Linux/Other display system

    Description

      I have tried many qt versions  and ubuntu version

      but this problem still exist

       

      environment like :

      ubuntu-20.04.3-desktop-amd64,

      ubuntu-18.04-desktop-amd64

      qt opensource-linux-x64-5.11.2.run

      gcc version is 9.3

       

      here is the description of this problem:

      1. Firstly, I'd like to say the program is right, 

      2. if check the "run in terminal" in projects options,

      once debug the pthread_creat(),  it will receive a stopped signal,  assembly language stopped at  "       ../sysdeps/unix/sysv/linux/x86_64/clone.S0x7f793d30d285  <+0x0035>        48 85 c0              test   %rax,%rax"。

      when this error occur, continue debug can be excuted, and the ""Create thread sucess! \n"" can be printed, but "Enter ThreadTest \r\n" couldn't be printed,  and it won't exit rightly, it will continue show this error and stop at the red break point  

       

      3. if don't check the "run in terminal", it will work , and output is right

       

      all in all , this error, pthread_cread() can debug rightly when qt didn't use terminal

      but I really need the terminal to input command , so this problem need to be solved

       

      In order to reproduce the problem, someone interested in can install a ubuntu 18 or 20, and qt 5.11.2,  then input a pthread_creat() function to debug.  

       

      thank you

       

       

       

       

       

       

       

       

       

      Attachments

        1. Qt problemm.rar
          2.48 MB
          YaBin Wang
        2. image-2021-10-31-19-14-21-837.png
          222 kB
          YaBin Wang
        3. image-2021-10-31-19-13-34-368.png
          178 kB
          YaBin Wang
        4. image-2021-10-31-19-13-05-706.png
          153 kB
          YaBin Wang
        5. image-2021-10-31-19-11-24-302.png
          57 kB
          YaBin Wang
        6. image-2021-10-31-19-11-06-789.png
          333 kB
          YaBin Wang
        7. image-2021-10-31-19-10-19-805.png
          118 kB
          YaBin Wang
        8. image-2021-10-31-19-08-38-744.png
          156 kB
          YaBin Wang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            befreedom YaBin Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes