public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
@ 2003-11-07 8:15 ` dave at boost-consulting dot com
2003-11-07 15:30 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dave at boost-consulting dot com @ 2003-11-07 8:15 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=12938
------- Additional Comments From dave at boost-consulting dot com 2003-11-07 08:15 -------
Created an attachment (id=5083)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5083&action=view)
test case
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] New: segmentation fault
@ 2003-11-07 8:15 dave at boost-consulting dot com
2003-11-07 8:15 ` [Bug c++/12938] " dave at boost-consulting dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: dave at boost-consulting dot com @ 2003-11-07 8:15 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=12938
Summary: segmentation fault
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dave at boost-consulting dot com
CC: gcc-bugs at gcc dot gnu dot org
G++ first reports an internal compiler error and segfault and then appears to
go into an infinite loop when I try to compile the enclosed under Cygwin
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
2003-11-07 8:15 ` [Bug c++/12938] " dave at boost-consulting dot com
@ 2003-11-07 15:30 ` pinskia at gcc dot gnu dot org
2003-11-07 17:14 ` dave at boost-consulting dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-07 15:30 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=12938
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Keywords| |ice-on-valid-code
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-07 15:30 -------
I cannot reproduce this problem on i686-pc-linux-gnu with 3.4 (20031107), 3.2.3, or 3.3.1
(20030707), 3.3.3 (20031105), or 3.3 (20021216). Can you provide the exact comand you invoke
to get the seg fault? Also provide the exact version of gcc, by giving the output of gcc -v?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
2003-11-07 8:15 ` [Bug c++/12938] " dave at boost-consulting dot com
2003-11-07 15:30 ` pinskia at gcc dot gnu dot org
@ 2003-11-07 17:14 ` dave at boost-consulting dot com
2003-11-07 17:20 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dave at boost-consulting dot com @ 2003-11-07 17:14 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=12938
------- Additional Comments From dave at boost-consulting dot com 2003-11-07 17:14 -------
Subject: Re: segmentation fault
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline -v -I "c:\boost" -o "bix.test\gcc\debug\bix.obj" "bix.cpp"
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /netrel/src/gcc-3.3.1-2/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.3.1 (cygming special)
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/cc1plus.exe -quiet -v -I c:\boost -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../include/w32api -idirafter /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/lib/../../include/w32api bix.cpp -D__GNUG__=3 -quiet -dumpbase bix.cpp -auxbase-strip bix.test\gcc\debug\bix.obj -g -O0 -Wall -version -ftemplate-depth-100 -fno-inline -o /cygdrive/c/DOCUME~1/dave/LOCALS~1/Temp/ccl4SuA3.s
GNU C++ version 3.3.1 (cygming special) (i686-pc-cygwin)
compiled by GNU C version 3.3.1 (cygming special).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=65467
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
c:/boost
/usr/include/c++/3.3.1
/usr/include/c++/3.3.1/i686-pc-cygwin
/usr/include/c++/3.3.1/backward
/usr/local/include
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include
/usr/include
/usr/include/w32api
End of search list.
bix.cpp: In function `int main()':
bix.cpp:14: internal compiler error: Segmentation fault
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (2 preceding siblings ...)
2003-11-07 17:14 ` dave at boost-consulting dot com
@ 2003-11-07 17:20 ` pinskia at gcc dot gnu dot org
2003-11-07 19:18 ` dave at boost-consulting dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-07 17: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=12938
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |i686-pc-cygwin
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-07 17:20 -------
What happens if you remove the "-g" from the command line?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (3 preceding siblings ...)
2003-11-07 17:20 ` pinskia at gcc dot gnu dot org
@ 2003-11-07 19:18 ` dave at boost-consulting dot com
2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dave at boost-consulting dot com @ 2003-11-07 19:18 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=12938
------- Additional Comments From dave at boost-consulting dot com 2003-11-07 19:18 -------
Subject: Re: segmentation fault
g++ -c -Wall -ftemplate-depth-100 -O0 -fno-inline -v -I "c:\boost" -o "bix.test\gcc\debug\bix.obj" "her.cpp"
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Configured with: /netrel/src/gcc-3.3.1-2/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.3.1 (cygming special)
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/cc1plus.exe -quiet -v -I c:\boost -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../include/w32api -idirafter /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/lib/../../include/w32api her.cpp -D__GNUG__=3 -quiet -dumpbase her.cpp -auxbase-strip bix.test\gcc\debug\bix.obj -O0 -Wall -version -ftemplate-depth-100 -fno-inline -o /cygdrive/c/DOCUME~1/dave/LOCALS~1/Temp/ccFXHAz8.s
GNU C++ version 3.3.1 (cygming special) (i686-pc-cygwin)
compiled by GNU C version 3.3.1 (cygming special).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=65467
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
c:/boost
/usr/include/c++/3.3.1
/usr/include/c++/3.3.1/i686-pc-cygwin
/usr/include/c++/3.3.1/backward
/usr/local/include
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/include
/usr/include
/usr/include/w32api
End of search list.
her.cpp: In function `int main()':
her.cpp:14: internal compiler error: Segmentation fault
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (5 preceding siblings ...)
2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
@ 2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
2003-11-10 16:47 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-09 2:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-09 02:46 -------
change to unconfirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12938
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (4 preceding siblings ...)
2003-11-07 19:18 ` dave at boost-consulting dot com
@ 2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-09 2:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-09 02:46 -------
Changing this to invalid to ...
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12938
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (6 preceding siblings ...)
2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
@ 2003-11-10 16:47 ` pinskia at gcc dot gnu dot org
2003-11-23 5:40 ` dhazeghi at yahoo dot com
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-10 16:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-10 16:47 -------
3.3.1 is getting old at this point and your compiler is not a FSF compiler, can you test
3.3.2 and maybe also report this to cygwin?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12938
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (7 preceding siblings ...)
2003-11-10 16:47 ` pinskia at gcc dot gnu dot org
@ 2003-11-23 5:40 ` dhazeghi at yahoo dot com
2003-11-23 6:30 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-11-23 5:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2003-11-23 05:40 -------
I can't reproduce this with either 3.3.1 or 3.3 branch (20031122) cross-compilers to i686-pc-
cygwin.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12938
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (8 preceding siblings ...)
2003-11-23 5:40 ` dhazeghi at yahoo dot com
@ 2003-11-23 6:30 ` pinskia at gcc dot gnu dot org
2003-11-23 7:27 ` geoffk at gcc dot gnu dot org
2003-11-23 7:33 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-23 6:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-23 06:30 -------
The stack size on cygwin is too low, you have to compile GCC with a raised stack size
(look at man ld or info ld for the option to pass to gcc to recompile gcc).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12938
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (9 preceding siblings ...)
2003-11-23 6:30 ` pinskia at gcc dot gnu dot org
@ 2003-11-23 7:27 ` geoffk at gcc dot gnu dot org
2003-11-23 7:33 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2003-11-23 7:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From geoffk at gcc dot gnu dot org 2003-11-23 07:27 -------
Is it not possible to print a better error message than 'segmentation error' in this case? For
example, on Darwin GCC prints:
Out of stack space.
Try running `ulimit -S -s unlimited' in the shell to raise its limit.
(See config/rs6000/host-darwin.c.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12938
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/12938] segmentation fault
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
` (10 preceding siblings ...)
2003-11-23 7:27 ` geoffk at gcc dot gnu dot org
@ 2003-11-23 7:33 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-23 7:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-23 07:33 -------
Yes it is but this is a known issue with cygwin and that you cannot change the stack size by using
limit/ulimit on cygwin at all so you have to recompile GCC anyway.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12938
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2003-11-23 7:33 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-07 8:15 [Bug c++/12938] New: segmentation fault dave at boost-consulting dot com
2003-11-07 8:15 ` [Bug c++/12938] " dave at boost-consulting dot com
2003-11-07 15:30 ` pinskia at gcc dot gnu dot org
2003-11-07 17:14 ` dave at boost-consulting dot com
2003-11-07 17:20 ` pinskia at gcc dot gnu dot org
2003-11-07 19:18 ` dave at boost-consulting dot com
2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
2003-11-09 2:46 ` pinskia at gcc dot gnu dot org
2003-11-10 16:47 ` pinskia at gcc dot gnu dot org
2003-11-23 5:40 ` dhazeghi at yahoo dot com
2003-11-23 6:30 ` pinskia at gcc dot gnu dot org
2003-11-23 7:27 ` geoffk at gcc dot gnu dot org
2003-11-23 7:33 ` 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).