Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86704

(Remote) debugging in conjunction with QProcess not possible (gdbserver: PID mismatch!)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15.1
    • Core: Other
    • None
    • - Distribution: Arch Linux
      - QtCreator 4.13.0
      - GDB 9.2
      - GCC 10.2.0
      - Kernel: Linux archlinux 5.8.9-arch2-1
    • Linux/X11

    Description

      I have code which must run with root privileges. To be able to debug it with QtCreator I have created a "Kit" with a "Generic Linux Device" in QtCreator, which connects to the localhost with a SSH key as user root.
      My code starts external processes via QProcess. When calling the function start() on my QProcess member variable the debugger ends with the following error message:

      gdbserver: PID mismatch! Expected 1292, got 1286
      gdbserver: Cannot find thread after clone.

      Child exited with status 0

      The code in the attachment is sufficient to trigger the problem.
      With Qt 5.15.0 it is working fine, since 5.15.1 the debugger crashs.

      I have previously reported the bug to the distribution: https://bugs.archlinux.org/task/67904

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              matthias_klein Matthias Klein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes