Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 511156 - sys-devel/gdb-7.7* crashes on a C++ mangled symbol
Summary: sys-devel/gdb-7.7* crashes on a C++ mangled symbol
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/bugzilla/show_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-23 23:49 UTC by Georg Rudoy
Modified: 2014-05-24 23:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Somewhat minimal reproducing example. (bug.tar.bz2,7.32 KB, application/x-bzip-compressed-tar)
2014-05-23 23:49 UTC, Georg Rudoy
Details

Note You need to log in before you can comment on or make changes to this bug.
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