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
Opened by Matthias Klein (matthiasklein) - Tuesday, 15 September 2020, 07:59 GMT
Last edited by freswa (frederik) - Thursday, 17 September 2020, 00:18 GMT
|
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
Thursday, 17 September 2020, 00:18 GMT
Reason for closing: Upstream
Additional comments about closing: https://bugreports.qt.io/browse/QTBUG-86 704
Edit: never mind, I see how to do it through the aur downgrade tool.
EDIT: If someone stumbles upon the same problem and wants to rebuild the package with a patch, here is the customized PKGBUILD ...