public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/55491] New: Segmentation fault
@ 2012-11-27 16:04 tom.day at amlin dot co.uk
2012-11-27 16:14 ` [Bug target/55491] " redi at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: tom.day at amlin dot co.uk @ 2012-11-27 16:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
Bug #: 55491
Summary: Segmentation fault
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: tom.day@amlin.co.uk
Created attachment 28795
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28795
Preprocessed source required to reproduce error
Compilation of the attached produces segmentation fault error. GCC was invoked
using following command line:
gcc -O2 -mrtd conftest.c
Output is as follows:
conftest.c: In function 'e':
conftest.c:12:1: 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.
Output from gcc -v is as follows:
Using built-in specs.
COLLECT_GCC=C:\MinGW472\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw472/bin/../libexec/gcc/mingw32/4.7.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.7.2/configure
--enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions
--with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry
--enable-libstdcxx-debug --disable-build-poststage1-with-cxx
--enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.2 (GCC)
Preprocessed source is attached.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
@ 2012-11-27 16:14 ` redi at gcc dot gnu.org
2012-11-27 16:15 ` redi at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2012-11-27 16:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-27 16:13:51 UTC ---
The Obfuscated C Contest is this way: http://www.ioccc.org/
Why should anyone bother trying to work out what that does?
At least fix the warnings and see if the error goes away.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
2012-11-27 16:14 ` [Bug target/55491] " redi at gcc dot gnu.org
@ 2012-11-27 16:15 ` redi at gcc dot gnu.org
2012-11-27 16:22 ` ktietz at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2012-11-27 16:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-11-27 16:15:22 UTC ---
Oh sorry I missed it causes an ICE, I thought the segfault was from the program
- apologies.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
2012-11-27 16:14 ` [Bug target/55491] " redi at gcc dot gnu.org
2012-11-27 16:15 ` redi at gcc dot gnu.org
@ 2012-11-27 16:22 ` ktietz at gcc dot gnu.org
2012-11-27 17:38 ` mikpe at it dot uu.se
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-11-27 16:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu.org
Known to work| |4.8.0
--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-11-27 16:22:23 UTC ---
On 4.8.x testcase doesn't ICE.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
` (2 preceding siblings ...)
2012-11-27 16:22 ` ktietz at gcc dot gnu.org
@ 2012-11-27 17:38 ` mikpe at it dot uu.se
2012-11-27 18:20 ` tom.day at amlin dot co.uk
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mikpe at it dot uu.se @ 2012-11-27 17:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2012-11-27 17:38:01 UTC ---
I can't get it to ICE gcc-4.7.2 targeting x86_64-w64-mingw32 w/ -m32 -mrtd,
whether hosted on x86_64-linux or on i686-pc-cygwin.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
` (3 preceding siblings ...)
2012-11-27 17:38 ` mikpe at it dot uu.se
@ 2012-11-27 18:20 ` tom.day at amlin dot co.uk
2012-11-27 19:09 ` mikpe at it dot uu.se
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tom.day at amlin dot co.uk @ 2012-11-27 18:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
--- Comment #5 from tom.day at amlin dot co.uk 2012-11-27 18:20:09 UTC ---
Thanks for comments and sorry if original post was at all unclear. The error I
got was from gcc hosted on mingw32 and, as per Mikael's comment, I noticed that
omitting the -O2 option made it run correctly.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
` (4 preceding siblings ...)
2012-11-27 18:20 ` tom.day at amlin dot co.uk
@ 2012-11-27 19:09 ` mikpe at it dot uu.se
2012-11-28 10:30 ` tom.day at amlin dot co.uk
2013-09-10 11:26 ` ktietz at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: mikpe at it dot uu.se @ 2012-11-27 19:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
--- Comment #6 from Mikael Pettersson <mikpe at it dot uu.se> 2012-11-27 19:09:34 UTC ---
Actually my tests were with -O2 -m32 -mrtd; I only mentioned the "-m32 -mrtd"
part because the 64-bit target ignores -mrtd, one has to explicitly select the
32-bit target for -mrtd to have any effect.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
` (5 preceding siblings ...)
2012-11-27 19:09 ` mikpe at it dot uu.se
@ 2012-11-28 10:30 ` tom.day at amlin dot co.uk
2013-09-10 11:26 ` ktietz at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: tom.day at amlin dot co.uk @ 2012-11-28 10:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
--- Comment #7 from tom.day at amlin dot co.uk 2012-11-28 10:29:51 UTC ---
Sorry Mikael, I'm with you now. I also don't get this error message when
targeting i686-w64-mingw32 when hosted on i686-linux-gnu.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/55491] Segmentation fault
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
` (6 preceding siblings ...)
2012-11-28 10:30 ` tom.day at amlin dot co.uk
@ 2013-09-10 11:26 ` ktietz at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-09-10 11:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55491
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #8 from Kai Tietz <ktietz at gcc dot gnu.org> ---
hmm, can't reproduce this for i686-w64-mingw32 for gcc 4.7, or gcc 4.8 series.
I was using here cygwin-cross, and native compiler. So I assume it might be
related to the release of this compiler.
So I close this bug as not reproduce-able for me.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-09-10 11:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-27 16:04 [Bug c/55491] New: Segmentation fault tom.day at amlin dot co.uk
2012-11-27 16:14 ` [Bug target/55491] " redi at gcc dot gnu.org
2012-11-27 16:15 ` redi at gcc dot gnu.org
2012-11-27 16:22 ` ktietz at gcc dot gnu.org
2012-11-27 17:38 ` mikpe at it dot uu.se
2012-11-27 18:20 ` tom.day at amlin dot co.uk
2012-11-27 19:09 ` mikpe at it dot uu.se
2012-11-28 10:30 ` tom.day at amlin dot co.uk
2013-09-10 11:26 ` ktietz at gcc dot gnu.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).