FS#67904 - [qt5-base] (Remote) debugging in conjunction with QProcess not possible (gdbserver: PID mismatch!)

Attached to Project: Arch Linux
Opened by Matthias Klein (matthiasklein) - Tuesday, 15 September 2020, 07:59 GMT
Last edited by freswa (frederik) - Thursday, 17 September 2020, 00:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

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. (This still works with the 5.15.1-1 update)

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


Downgrading all Qt packages to version 5.15.0-1 (without any changes to my code) has "fixed" the problem.

Translated with www.DeepL.com/Translator (free version)
This task depends upon

Closed by  freswa (frederik)
Thursday, 17 September 2020, 00:18 GMT
Reason for closing:  Upstream
Additional comments about closing:  https://bugreports.qt.io/browse/QTBUG-86 704
Comment by Jeremy Borgman (borgman_jeremy) - Wednesday, 16 September 2020, 16:29 GMT
Can you describe how you downgraded all your QT packages.

Edit: never mind, I see how to do it through the aur downgrade tool.
Comment by Antonio Rojas (arojas) - Wednesday, 16 September 2020, 16:38 GMT
This doesn't look like a packaging issue at all. Please report it upstream.
Comment by Matthias Klein (matthiasklein) - Wednesday, 16 September 2020, 21:11 GMT
I have reported the bug upstream: https://bugreports.qt.io/browse/QTBUG-86704

EDIT: If someone stumbles upon the same problem and wants to rebuild the package with a patch, here is the customized PKGBUILD ...

Loading...