public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51037] New: SIGSEGV -O3 C++ only
@ 2011-11-08 19:46 bin20111108.gcc.bugzilla at undecidable dot com
2011-11-09 9:59 ` [Bug c++/51037] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bin20111108.gcc.bugzilla at undecidable dot com @ 2011-11-08 19:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51037
Bug #: 51037
Summary: SIGSEGV -O3 C++ only
Classification: Unclassified
Product: gcc
Version: 4.6.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: bin20111108.gcc.bugzilla@undecidable.com
Created attachment 25756
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25756
cutdown testcase
Using -O3 with g++-4.6.2 yields SIGSEGV for the attached test case. gcc-4.6.2
successfully compiles this test case. This appears to have something to do
with inlining.
% g++-4.6.2 -O3 -c cutdown.c
cutdown.c: In function 'char crash(const S*)':
cutdown.c:25:6: internal compiler error: Segmentation fault
% g++-4.6.2 -v -save-temps -O3 -c cutdown.c
Using built-in specs.
COLLECT_GCC=/<path1 elided>/gcc/gcc-4.6.2/bin/g++-4.6.2
COLLECT_LTO_WRAPPER=/<path1
elided>/gcc/gcc-4.6.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.6.2/configure --prefix=/<path2
elided>/gcc-4.6/gcc_462_install2 --program-suffix=-4.6.2
Thread model: posix
gcc version 4.6.2 (GCC)
COLLECT_GCC_OPTIONS='-B' '/<path1 elided>/binutils/binutils-2.21/linux' '-v'
'-save-temps' '-O3' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/<path1
elided>/gcc/gcc-4.6.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1plus
-E -quiet -v -iprefix /<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/
-D_GNU_SOURCE cutdown.c -mtune=generic -march=x86-64 -O3 -fpch-preprocess -o
cutdown.ii
ignoring nonexistent directory "/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../x86_64-unknown-linux-gnu/include"
ignoring duplicate directory "/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2"
ignoring duplicate directory "/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu"
ignoring duplicate directory "/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward"
ignoring duplicate directory "/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/include"
ignoring nonexistent directory "/usr/local/include"
ignoring duplicate directory "/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/include-fixed"
ignoring nonexistent directory "/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2
/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/x86_64-unknown-linux-gnu
/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../include/c++/4.6.2/backward
/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/include
/<path1
elided>/gcc/gcc-4.6.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.2/include-fixed
/<path1 elided>/gcc/gcc-4.6.2/bin/../lib/gcc/../../include
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-B' '/<path1 elided>/binutils/binutils-2.21/linux' '-v'
'-save-temps' '-O3' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/<path1
elided>/gcc/gcc-4.6.2/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1plus
-fpreprocessed cutdown.ii -quiet -dumpbase cutdown.c -mtune=generic
-march=x86-64 -auxbase cutdown -O3 -version -o cutdown.s
GNU C++ (GCC) version 4.6.2 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.0.1,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.6.2 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.0.1,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 44ccbc803fa60baa0f85c76972fa817b
cutdown.c: In function 'char crash(const S*)':
cutdown.c:25:6: 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51037] SIGSEGV -O3 C++ only
2011-11-08 19:46 [Bug c++/51037] New: SIGSEGV -O3 C++ only bin20111108.gcc.bugzilla at undecidable dot com
@ 2011-11-09 9:59 ` rguenth at gcc dot gnu.org
2011-11-10 18:24 ` bin20111108.gcc.bugzilla at undecidable dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-11-09 9:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51037
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-unknown-linux-gnu
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011-11-09
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-11-09 09:51:53 UTC ---
I can't reproduce this. Can you attach cutdown.ii please?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51037] SIGSEGV -O3 C++ only
2011-11-08 19:46 [Bug c++/51037] New: SIGSEGV -O3 C++ only bin20111108.gcc.bugzilla at undecidable dot com
2011-11-09 9:59 ` [Bug c++/51037] " rguenth at gcc dot gnu.org
@ 2011-11-10 18:24 ` bin20111108.gcc.bugzilla at undecidable dot com
2011-12-19 23:24 ` paolo.carlini at oracle dot com
2011-12-20 17:13 ` marc.glisse at normalesup dot org
3 siblings, 0 replies; 5+ messages in thread
From: bin20111108.gcc.bugzilla at undecidable dot com @ 2011-11-10 18:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51037
bin20111108.gcc.bugzilla at undecidable dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #25756|0 |1
is obsolete| |
--- Comment #2 from bin20111108.gcc.bugzilla at undecidable dot com 2011-11-10 18:14:53 UTC ---
Created attachment 25791
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25791
testcase with no include files
I'm sorry, I should have cut out stdint.h before submitting the bug. I have
reworked the test case to eliminate all include files.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51037] SIGSEGV -O3 C++ only
2011-11-08 19:46 [Bug c++/51037] New: SIGSEGV -O3 C++ only bin20111108.gcc.bugzilla at undecidable dot com
2011-11-09 9:59 ` [Bug c++/51037] " rguenth at gcc dot gnu.org
2011-11-10 18:24 ` bin20111108.gcc.bugzilla at undecidable dot com
@ 2011-12-19 23:24 ` paolo.carlini at oracle dot com
2011-12-20 17:13 ` marc.glisse at normalesup dot org
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-19 23:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51037
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-19 23:16:20 UTC ---
Works for me too.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/51037] SIGSEGV -O3 C++ only
2011-11-08 19:46 [Bug c++/51037] New: SIGSEGV -O3 C++ only bin20111108.gcc.bugzilla at undecidable dot com
` (2 preceding siblings ...)
2011-12-19 23:24 ` paolo.carlini at oracle dot com
@ 2011-12-20 17:13 ` marc.glisse at normalesup dot org
3 siblings, 0 replies; 5+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-12-20 17:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51037
Marc Glisse <marc.glisse at normalesup dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marc.glisse at normalesup
| |dot org
--- Comment #4 from Marc Glisse <marc.glisse at normalesup dot org> 2011-12-20 17:07:54 UTC ---
It still happens on Debian, which has a version based on r182430 (Dec 17), but
not when I build today's (Dec 20) branch myself.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-12-20 17:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-08 19:46 [Bug c++/51037] New: SIGSEGV -O3 C++ only bin20111108.gcc.bugzilla at undecidable dot com
2011-11-09 9:59 ` [Bug c++/51037] " rguenth at gcc dot gnu.org
2011-11-10 18:24 ` bin20111108.gcc.bugzilla at undecidable dot com
2011-12-19 23:24 ` paolo.carlini at oracle dot com
2011-12-20 17:13 ` marc.glisse at normalesup 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).