public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers
@ 2003-07-09 14:17 lloyd at randombit dot net
2003-07-09 14:26 ` [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct pinskia at physics dot uc dot edu
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: lloyd at randombit dot net @ 2003-07-09 14:17 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
Summary: 3.3: ICE with -gstabs when including STL headers
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lloyd at randombit dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-linux
GCC host triplet: i686-linux
GCC target triplet: i686-linux
Including virtually any STL header and attempting to compile with -gstabs with
GCC 3.3 causes an ICE on x86/Linux. I'm using glibc 2.2.5 and binutils
2.11.93.0.2, though I doubt either is relevant here. Using other debug flags,
like -gstabs+, -gdwarf, -gdwarf-2, etc, seems to work fine.
$ cat stabsbug.cpp
#include <vector>
int main() { return 0; }
$ g++-3.3 -gstabs stabsbug.cpp -c -o /dev/null
In file included from /usr/local/gcc-3.3/include/c++/3.3/bits/stl_algobase.h:73,
from /usr/local/gcc-3.3/include/c++/3.3/vector:67,
from stabsbug.cpp:1:
/usr/local/gcc-3.3/include/c++/3.3/bits/stl_iterator_base_types.h:84: internal
compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$ g++-3.3 -v
Reading specs from /usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/usr/local/gcc-3.3 --enable-threads
Thread model: posix
gcc version 3.3
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
@ 2003-07-09 14:26 ` pinskia at physics dot uc dot edu
2003-07-09 14:31 ` bangerth at dealii dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-09 14:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c++ |debug
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-09 14:26:14
date| |
Summary|3.3: ICE with -gstabs when |[3.3/3.4 Regression] ICE
|including STL headers |with -gstabs when empty
| |struct inheits from an empty
| |struct
Target Milestone|3.4 |3.3.1
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-09 14:26 -------
Confirmed on 3.3.1 (20030707) and the mainline (20030708),
Simplified example:
struct t{};
struct g : public t{};
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
2003-07-09 14:26 ` [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct pinskia at physics dot uc dot edu
@ 2003-07-09 14:31 ` bangerth at dealii dot org
2003-07-09 14:33 ` lloyd at randombit dot net
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2003-07-09 14:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
------- Additional Comments From bangerth at dealii dot org 2003-07-09 14:31 -------
Indeed confirmed with Andrew's small testcase. This is a regression w.r.t.
3.2, where it worked.
A backtrace on mainline looks like this:
#0 host_integerp (t=0x0, pos=0) at ../../gcc/gcc/tree.c:3251
#1 0x08600ca0 in ?? ()
#2 0x083b7cb9 in tree_low_cst (t=0x0, pos=0) at ../../gcc/gcc/tree.c:3270
#3 0x081b7750 in dbxout_type (type=0x403d98dc, full=1)
at ../../gcc/gcc/dbxout.c:1659
#4 0x081b8ef5 in dbxout_symbol (decl=0x403d9a20, local=0)
at ../../gcc/gcc/dbxout.c:2124
#5 0x083a8635 in rest_of_type_compilation (type=0x403d98dc, toplev=1077778976)
at ../../gcc/gcc/toplev.c:2406
#6 0x080cf588 in finish_struct_1 (t=0x1) at ../../gcc/gcc/cp/class.c:5213
#7 0x080d0296 in finish_struct (t=0x403d98dc, attributes=0x0)
at ../../gcc/gcc/cp/class.c:5271
#8 0x0813dd8a in finish_class_definition (t=0x403d98dc, attributes=0x0,
semi=1, pop_scope_p=0) at ../../gcc/gcc/cp/semantics.c:2033
So it's really a problem in the debug backends, rather than the C++ front
end (of course).
W.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
2003-07-09 14:26 ` [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct pinskia at physics dot uc dot edu
2003-07-09 14:31 ` bangerth at dealii dot org
@ 2003-07-09 14:33 ` lloyd at randombit dot net
2003-07-12 12:20 ` steven at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lloyd at randombit dot net @ 2003-07-09 14:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
------- Additional Comments From lloyd at randombit dot net 2003-07-09 14:33 -------
In that case this is probably a dupe of bug 7083, though it's odd, because that
bug was for GCC 3.1, and I didn't run into this with 3.1 or 3.2. Hrm.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (2 preceding siblings ...)
2003-07-09 14:33 ` lloyd at randombit dot net
@ 2003-07-12 12:20 ` steven at gcc dot gnu dot org
2003-07-13 0:21 ` dhazeghi at yahoo dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-07-12 12:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
------- Additional Comments From steven at gcc dot gnu dot org 2003-07-12 12:20 -------
The problem is apparently in dbxout.c:dbxout_type:
print_wide_int (tree_low_cst (DECL_SIZE
(TYPE_NAME
(BINFO_TYPE (child))),
0)
* BITS_PER_UNIT);
But the tree for DECL_SIZE that is passed is NULL.
Is this really target specific?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (3 preceding siblings ...)
2003-07-12 12:20 ` steven at gcc dot gnu dot org
@ 2003-07-13 0:21 ` dhazeghi at yahoo dot com
2003-07-14 10:51 ` steven at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-13 0:21 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|i686-linux |
GCC host triplet|i686-linux |
GCC target triplet|i686-linux |
Keywords| |ice-on-valid-code
Last reconfirmed|2003-07-09 14:26:14 |2003-07-13 00:21:43
date| |
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-13 00:21 -------
Not target specific (occurs on powerpc darwin).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (4 preceding siblings ...)
2003-07-13 0:21 ` dhazeghi at yahoo dot com
@ 2003-07-14 10:51 ` steven at gcc dot gnu dot org
2003-07-15 16:53 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-07-14 10:51 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
------- Additional Comments From steven at gcc dot gnu dot org 2003-07-14 10:51 -------
: Search converges between 2002-09-29-trunk (#91) and 2002-10-02-trunk (#92).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (5 preceding siblings ...)
2003-07-14 10:51 ` steven at gcc dot gnu dot org
@ 2003-07-15 16:53 ` cvs-commit at gcc dot gnu dot org
2003-07-15 16:56 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-07-15 16:53 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-07-15 16:53 -------
Subject: Bug 11473
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: mmitchel@gcc.gnu.org 2003-07-15 16:53:31
Modified files:
gcc : ChangeLog dbxout.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/debug: debug8.C
Log message:
PR debug/11473
* dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
base classes.
PR debug/11473
* g++.dg/debug/debug8.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.661&r2=1.16114.2.662
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dbxout.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.130&r2=1.130.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.234&r2=1.2261.2.235
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/debug/debug8.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (6 preceding siblings ...)
2003-07-15 16:53 ` cvs-commit at gcc dot gnu dot org
@ 2003-07-15 16:56 ` cvs-commit at gcc dot gnu dot org
2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-07-15 16:56 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-07-15 16:56 -------
Subject: Bug 11473
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2003-07-15 16:56:50
Modified files:
gcc : ChangeLog dbxout.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/debug: debug8.C
Log message:
PR debug/11473
* dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
base classes.
PR debug/11473
* g++.dg/debug/debug8.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.515&r2=2.516
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dbxout.c.diff?cvsroot=gcc&r1=1.154&r2=1.155
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2880&r2=1.2881
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/debug/debug8.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (8 preceding siblings ...)
2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
@ 2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
2003-07-25 15:07 ` pinskia at physics dot uc dot edu
2003-10-30 17:31 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-07-15 17:00 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-07-15 17:00 -------
Fixed in GCC 3.3.1, GCC 3.4.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (7 preceding siblings ...)
2003-07-15 16:56 ` cvs-commit at gcc dot gnu dot org
@ 2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-07-15 17:00 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-07-15 17:00 -------
Fixed in GCC 3.3.1, GCC 3.4.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (9 preceding siblings ...)
2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
@ 2003-07-25 15:07 ` pinskia at physics dot uc dot edu
2003-10-30 17:31 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-25 15:07 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mboccafo at cs dot unibo dot
| |it
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-25 15:07 -------
*** Bug 11675 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
` (10 preceding siblings ...)
2003-07-25 15:07 ` pinskia at physics dot uc dot edu
@ 2003-10-30 17:31 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-30 17:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11473
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |casey dot liscum at isinet
| |dot com
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-30 17:31 -------
*** Bug 12844 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2003-10-30 17:31 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-09 14:17 [Bug c++/11473] New: 3.3: ICE with -gstabs when including STL headers lloyd at randombit dot net
2003-07-09 14:26 ` [Bug debug/11473] [3.3/3.4 Regression] ICE with -gstabs when empty struct inheits from an empty struct pinskia at physics dot uc dot edu
2003-07-09 14:31 ` bangerth at dealii dot org
2003-07-09 14:33 ` lloyd at randombit dot net
2003-07-12 12:20 ` steven at gcc dot gnu dot org
2003-07-13 0:21 ` dhazeghi at yahoo dot com
2003-07-14 10:51 ` steven at gcc dot gnu dot org
2003-07-15 16:53 ` cvs-commit at gcc dot gnu dot org
2003-07-15 16:56 ` cvs-commit at gcc dot gnu dot org
2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
2003-07-15 17:00 ` mmitchel at gcc dot gnu dot org
2003-07-25 15:07 ` pinskia at physics dot uc dot edu
2003-10-30 17:31 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).