GDB Demangler crashes in 14.10 and 14.04

Bug #1332484 reported by Timo Jyrinki
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gdb
Unknown
Unknown
gdb (Ubuntu)
Incomplete
Medium
Unassigned
Nominated for Trusty by Timo Jyrinki

Bug Description

(gdb crashed with SIGSEGV in _IO_vfprintf_internal())

This is to duplicate an upstream bug report that affects users on both 14.10 and 14.04 LTS.

Test case:

echo 'void _ZN5Utils9transformIPN15ProjectExplorer13BuildStepListEZNKS1_18BuildConfiguration14knownStepListsEvEUlS3_E_EEN4Myns5QListIDTclfp0_cvT__EEEEERKNS7_IS8_EET0_() { } int main() {}' | gcc -xc - && gdb ./a.out

Upstream has a patch, and it'd be nice to also SRU the fix to 14.04 LTS because users are seeing it (as reported on IRC).

description: updated
description: updated
Revision history for this message
Matthias Klose (doko) wrote :

there is no upstream patch yet

Changed in gdb (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Dominik Viererbe (dviererbe) wrote :

Thank you for reporting this bug to Ubuntu.

Ubuntu 14.10 (utopic) reached end-of-life on July 23, 2015.
Ubuntu 14.04 (trusty) reached end-of-standard-support on Apri

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

I could not replicate that bug in currently supported versions (focal, jammy, kinetic, lunar, mantic):

$ lxc launch images:ubuntu/CODENAME tester # replace CODENAME with focal, jammy, kinetic, lunar, mantic
$ lxc exec tester bash
$ apt update
$ apt install -y gcc gdb
$ echo 'void _ZN5Utils9transformIPN15ProjectExplorer13BuildStepListEZNKS1_18BuildConfiguration14knownStepListsEvEUlS3_E_EEN4Myns5QListIDTclfp0_cvT__EEEEERKNS7_IS8_EET0_() { } int main() {}' | gcc -xc -
$ gdb ./a.out # type "quit" to exit gdb
$ exit
$ lxc stop tester
$ lxc delete tester

We appreciate that this bug may be old and you might not be interested in discussing it anymore. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in.

Changed in gdb (Ubuntu):
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.