This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
debug/7360: g++ generates incorrect debug info that crashes gdb on Solaris
- From: torsten dot rohlfing at stanford dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Cc: drow at mvista dot com
- Date: Fri, 19 Jul 2002 13:13:02 -0700 (PDT)
- Subject: debug/7360: g++ generates incorrect debug info that crashes gdb on Solaris
- Reply-to: rohlfing at stanford dot edu
>Number: 7360
>Category: debug
>Synopsis: g++ generates illegal debug info on Solaris that crashes gdb
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 19 13:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Torsten Rohlfing
>Release: 3.1 and pre3.1.1 (CVS snapshot 15-Jul-2002)
>Organization:
>Environment:
Solaris 2.7, gdb 5.2 and gdb CVS snapshot 17-Jul-2002
System: SunOS IGL.Stanford.EDU 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-250
Architecture: sun4
host: sparc-sun-solaris2.7
build: sparc-sun-solaris2.7
target: sparc-sun-solaris2.7
configured with: ./configure --prefix=/usr/local --verbose --x-includes=/usr/openwin/include --x-libraries=/usr/openwin/lib --with-libiconv-path=/usr/local/lib --enable-libgcj --with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld
>Description:
g++ generates debug information that crashes GDB when trying to
inspect source files. Analysis by GDB maintainer has shown that
g++ puts N_FUN markers without matching markers at the beginning
of a function. See GDB bug report 610 for details.
>How-To-Repeat:
Attached is a tgz archive with four files: test.cxx,
classes.cxx, and classes.h contain example source code
(for minimal classes). The file "build" will run g++ and
generate a binary file called "test".
If "test" is read into gdb up to and including the
latest snapshot of version 5.2, issuing "list D" to
inspect source for class "D" will crash gdb.
Note that if inheritance of class D from class C is
changed to non-virtual, gdb does not crash anymore but is
still unable to show the correct source file.
begin 644 gxxbug.tgz
M'XL( ,!N.#T ^V7R6Z#,!"&.?LI1NDE2Y/:8$"BZB'+6U0]$ <1) (52QHI
M2I^]9@N.U#0G2-7.=[$]F<4P^<',GK3.H913VS3EJ-N&9<F1,MNDQ=B@20=F
M4<O6;5NCC!K4TL#L?FN:EJ>9FP!H69RDF1==]0O\L(_M],TZ#\)-QS5D/ZG%
M^=7^,VZT_:?2CS%F<@UHQ_LJ^>?]]R<3F/HZ3 6(T$U3+YV)PP&F\7D9$\4G
M\]*L<2CGRJ^5I38KX?>^1.0'E*9W5N.6_BEGK?Z9G#.]?/ZC_KOG(8A$F&\\
M_A.V D)7CK(8C<B0G5._?YMSU#FO<TK_!+47_1O'^M[F)^N^#LO\PAR-Y
MS]=A(!P",!^.X'AZ)G*Z#Y(L=T/X;&R%N8I9@ -5C PG:ORB]+T(;TQM^+(-
M7UQ47T)="M0$9ZN28B53- YUJN5%*OD,JW9\[[O\>VD.=%W6N'W^5[[_6/']
MQRP#W_^]0+X_ 11!CLWB(8@XD@>ZHNUF_CBL5Z+K9N,I6'_^@;%.:&0[7@?
GA_G.@Q>(O(]:>Z@\!$$0!$$0!$$0!$$0!$$0!+D#7U;/W<T *
end
>Fix:
No workaround or fix known.
>Release-Note:
>Audit-Trail:
>Unformatted: