Bug 2259850

Summary: GDB crashes when using "list ." with an inferior with no debug information
Product: [Fedora] Fedora Reporter: Guinevere Larsen <guinevere>
Component: gdbAssignee: Kevin Buettner <kevinb>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: ahajkova, fweimer, guinevere, jan, keiths, kevinb, mcermak, mkolar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-14.1-4.fc39 gdb-14.1-3.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-05 01:25:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Guinevere Larsen 2024-01-23 11:01:27 UTC
As explained in the upstream bug[1], gdb will crash if I try to list the current location in an inferior with no debug information, GDB crashes.


[1] https://sourceware.org/bugzilla/show_bug.cgi?id=31256

Reproducible: Always

Steps to Reproduce:
1. compile any program with no debug information
2. load and start the program under GDB
3. use "list ." command
Actual Results:  
GDB crashes

Expected Results:  
GDB prints that no lines are available

Comment 1 Fedora Update System 2024-01-30 09:52:30 UTC
FEDORA-2024-8f10f96169 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f10f96169

Comment 2 Fedora Update System 2024-01-30 09:56:43 UTC
FEDORA-2024-ee7cb0e0a5 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-ee7cb0e0a5

Comment 3 Fedora Update System 2024-01-31 00:52:18 UTC
FEDORA-2024-8f10f96169 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8f10f96169`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f10f96169

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2024-01-31 01:33:00 UTC
FEDORA-2024-ee7cb0e0a5 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ee7cb0e0a5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ee7cb0e0a5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-02-05 01:25:34 UTC
FEDORA-2024-8f10f96169 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-02-15 01:42:11 UTC
FEDORA-2024-ee7cb0e0a5 (low) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.