public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
@ 2011-06-17 19:36 rjarrett at mathworks dot com
2011-06-17 19:41 ` [Bug c++/49460] " rjarrett at mathworks dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: rjarrett at mathworks dot com @ 2011-06-17 19:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
Summary: g++: Internal error: Segmentation fault (program
cc1plus) using -O2 or -O3
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rjarrett@mathworks.com
using GCC 4.5.3 one (and only one) file from our code base caused the compiler
to Segfault.
Set severity to normal because this only occurred in 1 file out of 10k+ and
workaround is available.
Workaround compile with -O1 or -O0
This issue does not occur when compiling with GCC4.4.5 or GCC 4.3.4
Version information:
GNU C++ (GCC) version 4.5.3 (i686-pc-linux-gnu)
compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.5.3 (i686-pc-linux-gnu)
compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: caed1e0856fbbe32553e2b8828f0c55c
g++: Internal error: Segmentation fault (program cc1plus)
System type:
Debian Linux 6.01 (glnx86 and glnxa64)
GCC build/configuration options: (glnx86 build shown)
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/mathworks/hub/3rdparty/internal/290712/glnx86/gcc-4.5.3/bin/../libexec/gcc/i686-pc-linux-gnu/4.5.3/lto-wrapper
Target: i686-pc-linux-gnu
Configured with:
/mathworks/devel/sandbox/greg/Amake.3p1/3p/sources/gcc-4.5/configure
--prefix=/hub/3rdparty/internal/290712/glnx86/gcc-4.5.3
--with-gmp=/mathworks/devel/sandbox/greg/Amake.3p1/3p/derived/glnx86/gcc-4.5/gmp
--with-mpfr=/mathworks/devel/sandbox/greg/Amake.3p1/3p/derived/glnx86/gcc-4.5/mpfr
--with-mpc=/mathworks/devel/sandbox/greg/Amake.3p1/3p/derived/glnx86/gcc-4.5/mpc
--enable-languages=c,c++,fortran
--with-as=/hub/3rdparty/internal/290712/glnx86/gcc-4.5.3/bin/as
--with-ld=/hub/3rdparty/internal/290712/glnx86/gcc-4.5.3/bin/ld
Thread model: posix
gcc version 4.5.3 (GCC)
gcc version 4.4.5 (Debian 4.4.5-8)
Compile line options/command line:
COLLECT_GCC_OPTIONS='-c' '-o' '/tmp/SM.o' '-I../../src/cgir_xform/include'
'-I../../src/include' '-I../../derived/glnx86/src/include'
'-I../../src/cgir_xform' '-I../include' '-I../../include'
'-I//mathworks/hub/3rdparty/R2012a/293758/glnx86/boost/include'
'-I//mathworks/hub/3rdparty/R2012a/287824/glnx86/unique_ptr'
'-I//mathworks/hub/3rdparty/R2012a/289443/glnx86/gmp/include'
'-I//mathworks/hub/3rdparty/R2012a/288615/glnx86/mpfr/include'
'-DMAKEHEADER_KEYWORDS' '-DMAKEHEADER_KEYWORDS'
'-DNEEDS_MX_ERRWARN_MSG_ID_AND_TXT' '-DSL_INTERNAL'
'-DCGIR_HANDWRITTEN_HEADERS' '-I../../simulink/include' '-DMODULE_CGIR'
'-DBUILDING_CGIR_XFORM' '-O2' '-D_POSIX_C_SOURCE=199506L' '-D_LARGEFILE_SOURCE'
'-D_FILE_OFFSET_BITS=64' '-v' '-save-temps' '-shared-libgcc' '-mtune=generic'
'-march=pentiumpro'
/mathworks/hub/3rdparty/internal/290712/glnx86/gcc-4.5.3/bin/../libexec/gcc/i686-pc-linux-gnu/4.5.3/cc1plus
-fpreprocessed SmartInliner.ii -quiet -dumpbase SmartInliner.cpp -mtune=generic
-march=pentiumpro -auxbase-strip /tmp/SM.o -O2 -version -o SmartInliner.s
---
SmartInliner.ii has attached to this file
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/49460] g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
@ 2011-06-17 19:41 ` rjarrett at mathworks dot com
2011-06-20 10:43 ` [Bug tree-optimization/49460] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rjarrett at mathworks dot com @ 2011-06-17 19:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
--- Comment #1 from Roger Jarrett <rjarrett at mathworks dot com> 2011-06-17 19:41:29 UTC ---
Created attachment 24555
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24555
preprocessed source file SmartInliner.ii (gzipped)
preprocessed file gzipped to allow upload
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/49460] g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
2011-06-17 19:41 ` [Bug c++/49460] " rjarrett at mathworks dot com
@ 2011-06-20 10:43 ` rguenth at gcc dot gnu.org
2011-06-20 12:54 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-20 10:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.06.20 10:42:56
Component|c++ |tree-optimization
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-20 10:42:56 UTC ---
Confirmed. Other workaround: -fno-tree-pre.
We are endlessly translating
{component_ref<fNextCell>,indirect_ref,D.126308_166}@.MEM_238
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/49460] g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
2011-06-17 19:41 ` [Bug c++/49460] " rjarrett at mathworks dot com
2011-06-20 10:43 ` [Bug tree-optimization/49460] " rguenth at gcc dot gnu.org
@ 2011-06-20 12:54 ` rguenth at gcc dot gnu.org
2011-06-29 21:14 ` rjarrett at mathworks dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-20 12:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-20 12:53:53 UTC ---
Created attachment 24565
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24565
autoreduced testcase
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/49460] g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
` (2 preceding siblings ...)
2011-06-20 12:54 ` rguenth at gcc dot gnu.org
@ 2011-06-29 21:14 ` rjarrett at mathworks dot com
2011-07-04 11:59 ` [Bug tree-optimization/49460] [4.5 Regression] " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rjarrett at mathworks dot com @ 2011-06-29 21:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
--- Comment #4 from Roger Jarrett <rjarrett at mathworks dot com> 2011-06-29 21:13:49 UTC ---
Confirmed -fno-tree-pre worked around the issue using the initial source
--Roger
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/49460] [4.5 Regression] g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
` (3 preceding siblings ...)
2011-06-29 21:14 ` rjarrett at mathworks dot com
@ 2011-07-04 11:59 ` rguenth at gcc dot gnu.org
2011-08-01 14:08 ` rguenth at gcc dot gnu.org
2012-07-02 10:07 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-07-04 11:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.4.6, 4.6.1
Target Milestone|--- |4.5.4
Summary|g++: Internal error: |[4.5 Regression] g++:
|Segmentation fault (program |Internal error:
|cc1plus) using -O2 or -O3 |Segmentation fault (program
| |cc1plus) using -O2 or -O3
Known to fail| |4.5.0, 4.5.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/49460] [4.5 Regression] g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
` (4 preceding siblings ...)
2011-07-04 11:59 ` [Bug tree-optimization/49460] [4.5 Regression] " rguenth at gcc dot gnu.org
@ 2011-08-01 14:08 ` rguenth at gcc dot gnu.org
2012-07-02 10:07 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-01 14:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/49460] [4.5 Regression] g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
` (5 preceding siblings ...)
2011-08-01 14:08 ` rguenth at gcc dot gnu.org
@ 2012-07-02 10:07 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49460
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.5.4 |4.6.1
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-02 10:06:56 UTC ---
Fixed for 4.6.1.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-07-02 10:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 19:36 [Bug c++/49460] New: g++: Internal error: Segmentation fault (program cc1plus) using -O2 or -O3 rjarrett at mathworks dot com
2011-06-17 19:41 ` [Bug c++/49460] " rjarrett at mathworks dot com
2011-06-20 10:43 ` [Bug tree-optimization/49460] " rguenth at gcc dot gnu.org
2011-06-20 12:54 ` rguenth at gcc dot gnu.org
2011-06-29 21:14 ` rjarrett at mathworks dot com
2011-07-04 11:59 ` [Bug tree-optimization/49460] [4.5 Regression] " rguenth at gcc dot gnu.org
2011-08-01 14:08 ` rguenth at gcc dot gnu.org
2012-07-02 10:07 ` rguenth 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).