public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35421]  New: ICE on Valid Code
@ 2008-03-02 22:57 mckelvey at maskull dot com
  2008-03-02 22:59 ` [Bug c++/35421] " mckelvey at maskull dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: mckelvey at maskull dot com @ 2008-03-02 22:57 UTC (permalink / raw)
  To: gcc-bugs

Recent SVN:

$ g++ -c -g -fno-elide-constructors      -DUSE_MUTEX=1  -pedantic-errors
-Werror -ansi -fno-common -Wall -Wold-style-cast -Wsign-promo -Wpointer-arith
-Wundef -Wwrite-strings -Winvalid-pch -Woverloaded-virtual -Wcast-qual -Wextra
-Wredundant-decls -Wshadow -Wcast-align -Wcomment -fstrict-aliasing -Winit-self
-Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wlogical-op -Wunused
-MMD      -fimplicit-templates -I. -I.. -save-temps  test049.cc
test049.cc: In function 'int main(int, const char* const*)':
test049.cc:185: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

uname -a
CYGWIN_NT-5.1 MCKELVEY-XP 1.5.25(0.156/4/2) 2007-12-14 19:21 i686 Cygwin

$ g++ -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /cygdrive/f/Home/cvsroot/gcc/configure --verbose
--enable-threads --disable-nls --disable-win32-registry
--enable-languages=c,c++
Thread model: posix
gcc version 4.4.0 20080229 (experimental) (GCC)

User@MCKELVEY-XP ~/PD/testsuite
$ alias CONFIGURECVS
alias CONFIGURECVS='/cygdrive/f/Home/cvsroot/gcc/configure     --verbose
--enable-threads --disable-nls     --disable-win32-registry
--enable-languages=c,c++'

User@MCKELVEY-XP ~/PD/testsuite
$ alias BUILD
alias BUILD='nice make CFLAGS='\'''\'' BOOT_CFLAGS='\'''\'' LIBCFLAGS='\''-g
-O'\''     CXXFLAGS='\''-O'\'' LIBCXXFLAGS='\''-g -O'\'' bootstrap'


-- 
           Summary: ICE on Valid Code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckelvey at maskull dot com
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
@ 2008-03-02 22:59 ` mckelvey at maskull dot com
  2008-03-02 23:21 ` brian at dessent dot net
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: mckelvey at maskull dot com @ 2008-03-02 22:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from mckelvey at maskull dot com  2008-03-02 22:59 -------
Created an attachment (id=15253)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15253&action=view)
Compressed preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
  2008-03-02 22:59 ` [Bug c++/35421] " mckelvey at maskull dot com
@ 2008-03-02 23:21 ` brian at dessent dot net
  2008-03-03  0:55 ` mckelvey at maskull dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: brian at dessent dot net @ 2008-03-02 23:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from brian at dessent dot net  2008-03-02 23:21 -------
Subject: Re:  ICE on Valid Code


A 65,000 line testcase?  Seriously?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
  2008-03-02 22:59 ` [Bug c++/35421] " mckelvey at maskull dot com
  2008-03-02 23:21 ` brian at dessent dot net
@ 2008-03-03  0:55 ` mckelvey at maskull dot com
  2008-03-03  1:43   ` Andrew Pinski
  2008-03-03  1:44 ` pinskia at gmail dot com
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 12+ messages in thread
From: mckelvey at maskull dot com @ 2008-03-03  0:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mckelvey at maskull dot com  2008-03-03 00:54 -------
(In reply to comment #2)
> Subject: Re:  ICE on Valid Code
> 
> 
> A 65,000 line testcase?  Seriously?
> 

I'll try to make a smaller one. But it most likely won't be small.
I think the bug is caused by a VERY large expression used with a constructor
within a try-catch.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* Re: [Bug c++/35421] ICE on Valid Code
  2008-03-03  0:55 ` mckelvey at maskull dot com
@ 2008-03-03  1:43   ` Andrew Pinski
  0 siblings, 0 replies; 12+ messages in thread
From: Andrew Pinski @ 2008-03-03  1:43 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs



Sent from my iPhone

On Mar 2, 2008, at 16:54, "mckelvey at maskull dot com" <gcc-bugzilla@gcc.gnu.org 
 > wrote:

>
>
> ------- Comment #3 from mckelvey at maskull dot com  2008-03-03  
> 00:54 -------
> (In reply to comment #2)
>> Subject: Re:  ICE on Valid Code
>>
>>
>> A 65,000 line testcase?  Seriously?
>>
>
> I'll try to make a smaller one. But it most likely won't be small.
> I think the bug is caused by a VERY large expression used with a  
> constructor
> within a try-catch.
>


Most likely this is just a stack overflow so really not an interesting  
testcase.

Thanks,
Andrew Pinski

>


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
                   ` (2 preceding siblings ...)
  2008-03-03  0:55 ` mckelvey at maskull dot com
@ 2008-03-03  1:44 ` pinskia at gmail dot com
  2008-03-03  3:32 ` dannysmith at users dot sourceforge dot net
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gmail dot com @ 2008-03-03  1:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gmail dot com  2008-03-03 01:43 -------
Subject: Re:  ICE on Valid Code



Sent from my iPhone

On Mar 2, 2008, at 16:54, "mckelvey at maskull dot com"
<gcc-bugzilla@gcc.gnu.org 
 > wrote:

>
>
> ------- Comment #3 from mckelvey at maskull dot com  2008-03-03  
> 00:54 -------
> (In reply to comment #2)
>> Subject: Re:  ICE on Valid Code
>>
>>
>> A 65,000 line testcase?  Seriously?
>>
>
> I'll try to make a smaller one. But it most likely won't be small.
> I think the bug is caused by a VERY large expression used with a  
> constructor
> within a try-catch.
>


Most likely this is just a stack overflow so really not an interesting  
testcase.

Thanks,
Andrew Pinski

>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
                   ` (3 preceding siblings ...)
  2008-03-03  1:44 ` pinskia at gmail dot com
@ 2008-03-03  3:32 ` dannysmith at users dot sourceforge dot net
  2008-03-05  2:51 ` mckelvey at maskull dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-03-03  3:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dannysmith at users dot sourceforge dot net  2008-03-03 03:32 -------
(In reply to comment #4)

> >>
> >> A 65,000 line testcase?  Seriously?
> >>
> >
> > I'll try to make a smaller one. But it most likely won't be small.
> > I think the bug is caused by a VERY large expression used with a  
> > constructor
> > within a try-catch.
> >
> 
> 
> Most likely this is just a stack overflow so really not an interesting  
> testcase.
> 

Your testcase works for me if I make gcc with 
LDFLAGS="-Wl,--stack=0x2000000"

> Thanks,
> Andrew Pinski
> 
> >
> 


-- 

dannysmith at users dot sourceforge dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dannysmith at users dot
                   |                            |sourceforge dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
                   ` (4 preceding siblings ...)
  2008-03-03  3:32 ` dannysmith at users dot sourceforge dot net
@ 2008-03-05  2:51 ` mckelvey at maskull dot com
  2009-07-04 16:15 ` dave dot korn dot cygwin at gmail dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: mckelvey at maskull dot com @ 2008-03-05  2:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mckelvey at maskull dot com  2008-03-05 02:50 -------
(In reply to comment #5)
> (In reply to comment #4)
> 
> > >>
> > >> A 65,000 line testcase?  Seriously?
> > >>
> > >
> > > I'll try to make a smaller one. But it most likely won't be small.
> > > I think the bug is caused by a VERY large expression used with a  
> > > constructor
> > > within a try-catch.
> > >
> > 
> > 
> > Most likely this is just a stack overflow so really not an interesting  
> > testcase.
> > 
> 
> Your testcase works for me if I make gcc with 
> LDFLAGS="-Wl,--stack=0x2000000"
> 
> > Thanks,
> > Andrew Pinski
> > 
> > >
> > 
> 


OK, I will try that. Thanks!

Although that solves my immediate problem, the compiler should not ICE on a
stack overflow, right? It should give a stack overflow error or something
similar.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
                   ` (5 preceding siblings ...)
  2008-03-05  2:51 ` mckelvey at maskull dot com
@ 2009-07-04 16:15 ` dave dot korn dot cygwin at gmail dot com
  2009-12-25 22:11 ` paolo dot carlini at oracle dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 12+ messages in thread
From: dave dot korn dot cygwin at gmail dot com @ 2009-07-04 16:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dave dot korn dot cygwin at gmail dot com  2009-07-04 16:15 -------
You might like to test this again.  It was very likely fixed by the these
patches

http://gcc.gnu.org/viewcvs?view=rev&revision=146425
http://gcc.gnu.org/viewcvs?view=rev&revision=146515

I couldn't reproduce any problem building your testcase with a build of gcc
HEAD from a couple of days ago.


-- 

dave dot korn dot cygwin at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dave dot korn dot cygwin at
                   |                            |gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
                   ` (6 preceding siblings ...)
  2009-07-04 16:15 ` dave dot korn dot cygwin at gmail dot com
@ 2009-12-25 22:11 ` paolo dot carlini at oracle dot com
  2009-12-28  2:08 ` mckelvey at maskull dot com
  2009-12-28 10:35 ` paolo dot carlini at oracle dot com
  9 siblings, 0 replies; 12+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-25 22:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from paolo dot carlini at oracle dot com  2009-12-25 22:11 -------
Feedback not forthcoming.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
                   ` (7 preceding siblings ...)
  2009-12-25 22:11 ` paolo dot carlini at oracle dot com
@ 2009-12-28  2:08 ` mckelvey at maskull dot com
  2009-12-28 10:35 ` paolo dot carlini at oracle dot com
  9 siblings, 0 replies; 12+ messages in thread
From: mckelvey at maskull dot com @ 2009-12-28  2:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from mckelvey at maskull dot com  2009-12-28 02:07 -------
(In reply to comment #8)
> Feedback not forthcoming.
> 

Will try again as soon as I can build latest SVN.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

* [Bug c++/35421] ICE on Valid Code
  2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
                   ` (8 preceding siblings ...)
  2009-12-28  2:08 ` mckelvey at maskull dot com
@ 2009-12-28 10:35 ` paolo dot carlini at oracle dot com
  9 siblings, 0 replies; 12+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-12-28 10:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from paolo dot carlini at oracle dot com  2009-12-28 10:35 -------
Ok. If you are stumbling again on exactly the same issue, please re-open,
otherwise file a new one... But hopefully everything will be fine ;)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35421


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

end of thread, other threads:[~2009-12-28 10:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-02 22:57 [Bug c++/35421] New: ICE on Valid Code mckelvey at maskull dot com
2008-03-02 22:59 ` [Bug c++/35421] " mckelvey at maskull dot com
2008-03-02 23:21 ` brian at dessent dot net
2008-03-03  0:55 ` mckelvey at maskull dot com
2008-03-03  1:43   ` Andrew Pinski
2008-03-03  1:44 ` pinskia at gmail dot com
2008-03-03  3:32 ` dannysmith at users dot sourceforge dot net
2008-03-05  2:51 ` mckelvey at maskull dot com
2009-07-04 16:15 ` dave dot korn dot cygwin at gmail dot com
2009-12-25 22:11 ` paolo dot carlini at oracle dot com
2009-12-28  2:08 ` mckelvey at maskull dot com
2009-12-28 10:35 ` paolo dot carlini at oracle dot com

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).