Like bug 19769, this debug info emitting bug also breaks gdb. I will attach a .ii which triggers it.
Here is the gcc output, followed by the gdb output; this is tracked as fedora bug https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=153681 # rm -f xpcjsid.o;make CXX="/usr/bin/g++ -v -save-temps " /usr/bin/gmake export gmake[1]: Entering directory `/usr/local/src/mozilla/js/src/xpconnect/src' gmake[1]: Nothing to be done for `export'. gmake[1]: Leaving directory `/usr/local/src/mozilla/js/src/xpconnect/src' /usr/bin/gmake libs gmake[1]: Entering directory `/usr/local/src/mozilla/js/src/xpconnect/src' xpcjsid.cpp /usr/bin/g++ -v -save-temps -o xpcjsid.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6.11-1\" -DOSARCH=\"Linux\" -DBUILD_ID=2005040517 -DHAVE_DEPENDENT_LIBS -DJSFILE -DJS_THREADSAFE -DEXPORT_XPC_API -I./../loader -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/js -I../../../../dist/include/caps -I../../../../dist/include/dom -I../../../../dist/include/xpconnect -I../../../../dist/include -I../../../../dist/include/nspr -I. -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DDEBUG -D_DEBUG -DDEBUG_root -DTRACING -g -fno-inline -I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/xpcjsid.pp xpcjsid.cpp g++: warning: -pipe ignored because -save-temps specified Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 4.0.0 20050402 (Red Hat 4.0.0-0.39) /usr/libexec/gcc/i386-redhat-linux/4.0.0/cc1plus -E -quiet -v -I../../../../dist/include/system_wrappers -I./../loader -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/js -I../../../../dist/include/caps -I../../../../dist/include/dom -I../../../../dist/include/xpconnect -I../../../../dist/include -I../../../../dist/include/nspr -I. -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/X11R6/include -D_GNU_SOURCE -D_REENTRANT -DOSTYPE="Linux2.6.11-1" -DOSARCH="Linux" -DBUILD_ID=2005040517 -DHAVE_DEPENDENT_LIBS -DJSFILE -DJS_THREADSAFE -DEXPORT_XPC_API -DDEBUG -D_DEBUG -DDEBUG_root -DTRACING -DMOZILLA_CLIENT -include ../../../../config/gcc_hidden.h -include ../../../../mozilla-config.h -MD .deps/xpcjsid.pp xpcjsid.cpp -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fPIC -fno-rtti -fno-exceptions -fshort-wchar -fno-inline -fworking-directory -fpch-preprocess -o xpcjsid.ii ignoring nonexistent directory "/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../i386-redhat-linux/include" ignoring duplicate directory "/usr/X11R6/include" ignoring duplicate directory "/usr/X11R6/include" #include "..." search starts here: #include <...> search starts here: ../../../../dist/include/system_wrappers ./../loader ../../../../dist/include/xpcom ../../../../dist/include/string ../../../../dist/include/js ../../../../dist/include/caps ../../../../dist/include/dom ../../../../dist/include/xpconnect ../../../../dist/include ../../../../dist/include/nspr . /usr/X11R6/include /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0 /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/i386-redhat-linux /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward /usr/local/include /usr/lib/gcc/i386-redhat-linux/4.0.0/include /usr/include End of search list. /usr/libexec/gcc/i386-redhat-linux/4.0.0/cc1plus -fpreprocessed xpcjsid.ii -quiet -dumpbase xpcjsid.cpp -auxbase-strip xpcjsid.o -g -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -version -fPIC -fno-rtti -fno-exceptions -fshort-wchar -fno-inline -o xpcjsid.s GNU C++ version 4.0.0 20050402 (Red Hat 4.0.0-0.39) (i386-redhat-linux) compiled by GNU C version 4.0.0 20050402 (Red Hat 4.0.0-0.39). GGC heuristics: --param ggc-min-expand=96 --param ggc-min-heapsize=125365 as -V -Qy -o xpcjsid.o xpcjsid.s GNU assembler version 2.15.94.0.2.2 (i386-redhat-linux) using BFD version 2.15.94.0.2.2 20041220 # gdb xpcjsid.o GNU gdb Red Hat Linux (6.3.0.0-1.10rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... ../../gdb-6.3/gdb/dwarf2read.c:5446: internal-error: could not find partial DIE in cache A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) -- Summary: Another debug info emitting bug Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: critical Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: greenrd at greenrd dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20805