Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 511156

Summary: sys-devel/gdb-7.7* crashes on a C++ mangled symbol
Product: Gentoo Linux Reporter: Georg Rudoy <0xd34df00d>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://sourceware.org/bugzilla/show_bug.cgi?id=16957
See Also: https://sourceware.org/bugzilla/show_bug.cgi?id=16957
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Somewhat minimal reproducing example.

Description Georg Rudoy 2014-05-23 23:49:02 UTC
gdb's demangler enters infinite recursion and crashes as the result on the following C++ symbol:
_Z7ZipWithI7QStringS0_5QListZN4oral6detail16AdaptCreateTableI7AccountEES0_RKNS3_16CachedFieldsDataEEUlRKS0_SA_E_ET1_IDTclfp1_cvT__EcvT0__EEEERKT1_ISC_ERKT1_ISD_ET2_

The bug is already reported and confirmed to gdb's bugzilla: https://sourceware.org/bugzilla/show_bug.cgi?id=16957

Reproducible: Always

Steps to Reproduce:
1. Build attached example, g++ build line (Qt4 core and sql are required):
g++ -std=c++11 -I /usr/include/qt4/ -I /usr/include/qt4/QtCore/ -I /usr/include/qt4/QtSql/ -L/usr/lib/qt4 -lQtCore -lQtSql -O0 -g -ggdb main.cpp -o main

2. Try running gdb ./main
Actual Results:  
Crashed gdb.

Expected Results:  
gdb ready to rock!
Comment 1 Georg Rudoy 2014-05-23 23:49:53 UTC
Created attachment 377542 [details]
Somewhat minimal reproducing example.
Comment 2 SpanKY gentoo-dev 2014-05-24 23:58:16 UTC
well, if it ever gets fixed upstream, we'll include the fix in our patchset