Bug 1353510

Summary: QtCreator debugger does not continue properly after SIGSEGV is received
Product: [Fedora] Fedora Reporter: Michael Stahl <mstahl>
Component: qt-creatorAssignee: Itamar Reis Peixoto <itamar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: davejohansen, helio, itamar, jreznik, manisandro, mstahl, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qt-creator-4.0.3-1.fc24 qt-creator-4.0.3-1.fc23 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-24 20:21:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Stahl 2016-07-07 11:00:06 UTC
Description of problem:
During debugging, if an inferior gets a SIGSEGV, the execution cannot be continued, the continue always results in pausing with the same SIGSEGV being reported.

Version-Release number of selected component (if applicable):
qt-creator-4.0.2-1.fc24.x86_64
qt-creator-data-4.0.2-1.fc24.noarch

How reproducible:
always

Steps to Reproduce:
1. make sure you have LO WikiPublisher installed, dnf install libreoffice-wiki-publisher
2. QtCreator: Debug->Attach to running Application, soffice.bin
3. in LO, create new writer document
4. (in case this doesn't yet result in a SIGSEGV, "File->Send->To MediaWiki..."
5. QtCreator stops with "Signal Received: SIGSEGV" - stack shows weird JVM stuff
6. click "continue"

Actual results:
7. goto 5.

Expected results:
the debugger should not break again for the same signal if "continue" is clicked.

Additional info:
it is apparently perfectly normal that JVM startup produces one or two SIGSEGV
so it's very inconvenient if that breaks the debugging experience.

was thinking of reporting this upstream but don't have a lawyer handy to explain the legal agreement one is required to accept before filing Qt bugs.

Comment 1 Sandro Mani 2016-07-11 09:37:10 UTC
@Michael Stahl
Upstream asks: "What happens when using plain GDB in this case?"

Comment 2 Michael Stahl 2016-07-11 11:12:43 UTC
"c" works well in plain gdb with the default settings.

(gdb) info signal 11
Signal        Stop      Print   Pass to program Description
SIGSEGV       Yes       Yes     Yes             Segmentation fault

F24's KDevelop can also continue in this case.

can't try F24's Eclipse because it (or rather gdb run in it) has a more serious issue, but in F23 the Eclipse CDT had no problem doing this.

Comment 3 Sandro Mani 2016-07-12 14:30:27 UTC
Please try [1] which contains upstream patch candidate [2].

[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=14872144
[2] https://codereview.qt-project.org/#/c/164967/

Comment 4 Michael Stahl 2016-07-12 18:40:21 UTC
installed the koji build, works well now, thanks!

Comment 5 Fedora Update System 2016-07-13 14:43:56 UTC
qt-creator-4.0.3-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f2b3822596

Comment 6 Fedora Update System 2016-07-13 14:44:07 UTC
qt-creator-4.0.3-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-db45764e8a

Comment 7 Sandro Mani 2016-07-13 14:45:10 UTC
Rawhide will be fixed when qt-creator-4.1.0-rc1 is released.

Comment 8 Fedora Update System 2016-07-14 15:53:22 UTC
qt-creator-4.0.3-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f2b3822596

Comment 9 Fedora Update System 2016-07-14 22:28:36 UTC
qt-creator-4.0.3-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-db45764e8a

Comment 10 Fedora Update System 2016-07-24 20:21:34 UTC
qt-creator-4.0.3-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2016-07-29 02:52:27 UTC
qt-creator-4.0.3-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.