public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds
@ 2003-07-27  4:09 harinath at cs dot umn dot edu
  2003-07-27  4:10 ` [Bug c++/11679] " harinath at cs dot umn dot edu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: harinath at cs dot umn dot edu @ 2003-07-27  4:09 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=11679

           Summary: ICE in finish_file, at cp/decl2.c:2727: varray out of
                    bounds
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: harinath at cs dot umn dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

Compiling the attached file causes an ICE in finish_file().

/home/grad04/harinath/z/z/foo.cc: At global scope:
/home/grad04/harinath/z/z/foo.cc:18526: internal compiler error: virtual array 
   RTTI decls[10]: element 10 out of bounds in finish_file, at cp/decl2.c:2727
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Since the ICE is at global scope, and I have a simple fix, I gave up on getting
a smaller testcase.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
@ 2003-07-27  4:10 ` harinath at cs dot umn dot edu
  2003-07-27  4:13 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode harinath at cs dot umn dot edu
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harinath at cs dot umn dot edu @ 2003-07-27  4:10 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=11679



------- Additional Comments From harinath at cs dot umn dot edu  2003-07-27 04:10 -------
Created an attachment (id=4484)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4484&action=view)
test case

Sorry about the large testcase.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
  2003-07-27  4:10 ` [Bug c++/11679] " harinath at cs dot umn dot edu
  2003-07-27  4:13 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode harinath at cs dot umn dot edu
@ 2003-07-27  4:13 ` harinath at cs dot umn dot edu
  2003-07-27  5:08 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode harinath at cs dot umn dot edu
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harinath at cs dot umn dot edu @ 2003-07-27  4:13 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=11679



------- Additional Comments From harinath at cs dot umn dot edu  2003-07-27 04:13 -------
Created an attachment (id=4485)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4485&action=view)
possible fix

And here's a possible fix, that covers up the symptoms.  I'm not sure about the
semantics of VARRAY_TREE (..).	If the index allowed to be one-past-the-end,
then the checking code has to be fixed instead.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
  2003-07-27  4:10 ` [Bug c++/11679] " harinath at cs dot umn dot edu
@ 2003-07-27  4:13 ` harinath at cs dot umn dot edu
  2003-07-27  4:13 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harinath at cs dot umn dot edu @ 2003-07-27  4:13 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=11679


harinath at cs dot umn dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE in finish_file, at      |ICE in finish_file, at
                   |cp/decl2.c:2727: varray out |cp/decl2.c:2727: varray out
                   |of bounds                   |of bounds in --enable-
                   |                            |checking mode


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (2 preceding siblings ...)
  2003-07-27  4:13 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
@ 2003-07-27  5:08 ` harinath at cs dot umn dot edu
  2003-07-27  5:51 ` pinskia at physics dot uc dot edu
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harinath at cs dot umn dot edu @ 2003-07-27  5:08 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=11679


harinath at cs dot umn dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4485 is|0                           |1
           obsolete|                            |


------- Additional Comments From harinath at cs dot umn dot edu  2003-07-27 05:08 -------
Created an attachment (id=4486)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4486&action=view)
slightly more paranoid version of patch


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (3 preceding siblings ...)
  2003-07-27  5:08 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode harinath at cs dot umn dot edu
@ 2003-07-27  5:51 ` pinskia at physics dot uc dot edu
  2003-07-29 22:12 ` harinath at cs dot umn dot edu
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-27  5: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=11679


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-27 05:51 -------
I can confirm this on the mainline (20030726) but I have not reduced the sources.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (4 preceding siblings ...)
  2003-07-27  5:51 ` pinskia at physics dot uc dot edu
@ 2003-07-29 22:12 ` harinath at cs dot umn dot edu
  2003-07-29 23:28 ` pinskia at physics dot uc dot edu
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: harinath at cs dot umn dot edu @ 2003-07-29 22:12 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=11679


harinath at cs dot umn dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4484 is|0                           |1
           obsolete|                            |


------- Additional Comments From harinath at cs dot umn dot edu  2003-07-29 22:12 -------
Created an attachment (id=4512)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4512&action=view)
reduced testcase

This is a pretty minimal testcase.  Minor variants don't exhibit the ICE.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (5 preceding siblings ...)
  2003-07-29 22:12 ` harinath at cs dot umn dot edu
@ 2003-07-29 23:28 ` pinskia at physics dot uc dot edu
  2003-08-23  0:59 ` dhazeghi at yahoo dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 23:28 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=11679


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-07-29 23:28:38
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-29 23:28 -------
Thanks for the reduced test case, it easier to be able to put into the testsuite.
I can confirm this on the mainline (20030729).


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (6 preceding siblings ...)
  2003-07-29 23:28 ` pinskia at physics dot uc dot edu
@ 2003-08-23  0:59 ` dhazeghi at yahoo dot com
  2003-09-10 15:01 ` pinskia at gcc dot gnu dot org
  2003-10-17 17:51 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  0:59 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=11679


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (7 preceding siblings ...)
  2003-08-23  0:59 ` dhazeghi at yahoo dot com
@ 2003-09-10 15:01 ` pinskia at gcc dot gnu dot org
  2003-10-17 17:51 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-10 15:01 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=11679


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-10 15:01 -------
Fixed for 3.4 by:
2003-09-09  Richard Henderson  <rth@redhat.com>

        * decl2.c (finish_file): Avoid out-of-bounds array reference
        during memmove.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode
  2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
                   ` (8 preceding siblings ...)
  2003-09-10 15:01 ` pinskia at gcc dot gnu dot org
@ 2003-10-17 17:51 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 17: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=11679


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-10-17 17:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-27  4:09 [Bug c++/11679] New: ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
2003-07-27  4:10 ` [Bug c++/11679] " harinath at cs dot umn dot edu
2003-07-27  4:13 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode harinath at cs dot umn dot edu
2003-07-27  4:13 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds harinath at cs dot umn dot edu
2003-07-27  5:08 ` [Bug c++/11679] ICE in finish_file, at cp/decl2.c:2727: varray out of bounds in --enable-checking mode harinath at cs dot umn dot edu
2003-07-27  5:51 ` pinskia at physics dot uc dot edu
2003-07-29 22:12 ` harinath at cs dot umn dot edu
2003-07-29 23:28 ` pinskia at physics dot uc dot edu
2003-08-23  0:59 ` dhazeghi at yahoo dot com
2003-09-10 15:01 ` pinskia at gcc dot gnu dot org
2003-10-17 17:51 ` 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).