This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

debug/5335: ICE when DWARF-1 debug info is generated



>Number:         5335
>Category:       debug
>Synopsis:       ICE when DWARF-1 debug info is generated
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 09 06:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Igor A. Goussarov
>Release:        Reading specs from /usr/lib/gcc-lib/i386-unknown-freebsd4.4/3.0.3/specs   Configured with: ./configure --prefix=/usr   Thread model: posix   gcc version 3.0.3
>Organization:
>Environment:
i386-FreeBSD-4.4-RELEASE
>Description:
The attached file compiles fine if no debug info is 
requested or if DWARF-2 debug info is requested.
However, compilation with -gdwarf+, -gdwarf+1, gdwarf+2 
or -gdwarf+3 switch results in ICE:

../IGusarov/Lists.h:821: Internal compiler error in dwarfout_finish, at
   dwarfout.c:6532
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

It looks like generating this debug info requires some 
more templated types (which were a member 'typedefs' in 
another templated type) to be instantiated and these
freshly instantiated types are left in pending_types_list
which violates the final assertion in dwarfout_finish
and thus lead to abort()...
>How-To-Repeat:
unpack an archived "TemplateElements_.i" file and run
g++ -c -gdwarf+3 TemplateElements_.i
>Fix:
Don't use dwarf-1 debug format. In fact, I've
toyed with various debug info formats and found that
4 out of approx. 120 source files in my current project 
fails with the same ICE if compiled with one of 
-gdwarf+[123]
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="TemplateElements_.i.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="TemplateElements_.i.gz"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]