public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2
@ 2013-06-15 16:48 je.suis.bon at googlemail dot com
  2013-06-15 17:57 ` [Bug middle-end/57625] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: je.suis.bon at googlemail dot com @ 2013-06-15 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57625
           Summary: internal compiler error: seg fault when building gcc
                    4.7.2
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: je.suis.bon at googlemail dot com

Created attachment 30308
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30308&action=edit
libgcc2.c

I was attempting to build gcc 4.7.2 using gcc 4.8.1.

to reproduce:
mkdir build-gcc
cd build-gcc
../gcc-4.7.2/configure --disable-nls --enable-languages=c
echo "MAKEINFO = :" >> Makefile # otherwise compile fails!
make all-gcc
make all-target-libgcc

The following error occurs:
../../../../originalsrc/gcc-4.7.2/libgcc/libgcc2.c: In function '__absvdi2':
../../../../originalsrc/gcc-4.7.2/libgcc/libgcc2.c:273: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.
make[3]: *** [_absvdi2.o] Error 1


In compliance with gcc's dying wishes, I have submitted a bug report. Although
I'm sure you already have it, for rapid perusal, I have attached the source
file that caused the seg fault.

extra information:
$gcc --version: gcc (GCC) 4.8.1
system: archlinux amd64, using the gcc package "gcc-4.8.1-1"

If any further information is required, please ask.


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
@ 2013-06-15 17:57 ` pinskia at gcc dot gnu.org
  2013-06-15 20:20 ` mikpe at it dot uu.se
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-06-15 17:57 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end
           Severity|major                       |normal


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
  2013-06-15 17:57 ` [Bug middle-end/57625] " pinskia at gcc dot gnu.org
@ 2013-06-15 20:20 ` mikpe at it dot uu.se
  2013-11-05 23:21 ` arapov at gmail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mikpe at it dot uu.se @ 2013-06-15 20:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> ---
I can't reproduce with FSF gcc 4.8.1 and 4.7.2 on Fedora 17 x86_64.  Your
archlinux system compiler is presumably somewhat modified; can you try again
with an FSF 4.8.1?  Also please make sure the 4.7.2 you're building is
unmodified.


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
  2013-06-15 17:57 ` [Bug middle-end/57625] " pinskia at gcc dot gnu.org
  2013-06-15 20:20 ` mikpe at it dot uu.se
@ 2013-11-05 23:21 ` arapov at gmail dot com
  2014-05-21 12:33 ` redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: arapov at gmail dot com @ 2013-11-05 23:21 UTC (permalink / raw)
  To: gcc-bugs

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

Anton Arapov <arapov at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arapov at gmail dot com

--- Comment #2 from Anton Arapov <arapov at gmail dot com> ---
build-cross/gcc-4.7.2/libgcc/libgcc2.c:111: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.
make[3]: *** [_addvdi3.o] Error 1
make[3]: *** Waiting for unfinished jobs....


I've got this on Fedora 20:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-isl=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.2-20131017/obj-x86_64-redhat-linux/cloog-install
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 20131017 (Red Hat 4.8.2-1) (GCC)


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
                   ` (2 preceding siblings ...)
  2013-11-05 23:21 ` arapov at gmail dot com
@ 2014-05-21 12:33 ` redi at gcc dot gnu.org
  2014-05-21 21:52 ` mikpelinux at gmail dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: redi at gcc dot gnu.org @ 2014-05-21 12:33 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4078 bytes --]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57625

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.8.1                       |4.7.2

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I can reproduce this with Fedora 20's system compiler:

gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC) 

Only when configured with --disable-bootstrap:

../gcc-4.7.2/configure --disable-bootstrap --enable-languages=c,c++
MAKEINFO=missing


/home/jwakely/tmp/b/build/./gcc/xgcc -B/home/jwakely/tmp/b/build/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -g -O2 -m32 -O2  -g -O2
-DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  
-fpic -I. -I. -I../../.././gcc -I../../../../gcc-4.7.2/libgcc
-I../../../../gcc-4.7.2/libgcc/. -I../../../../gcc-4.7.2/libgcc/../gcc
-I../../../../gcc-4.7.2/libgcc/../include
-I../../../../gcc-4.7.2/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
-DHAVE_CC_TLS  -DUSE_TLS -o _absvdi2.o -MT _absvdi2.o -MD -MP -MF _absvdi2.dep
-DL_absvdi2 -c ../../../../gcc-4.7.2/libgcc/libgcc2.c -fvisibility=hidden
-DHIDE_EXPORTS
../../../../gcc-4.7.2/libgcc/libgcc2.c: In function ‘__absvdi2’:
../../../../gcc-4.7.2/libgcc/libgcc2.c:273:1: internal compiler error:
Segmentation fault


However it doesn't happen with 4.7.3 using the same configuration and same host
compiler.
>From gcc-bugs-return-452153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 21 12:44:01 2014
Return-Path: <gcc-bugs-return-452153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14514 invoked by alias); 21 May 2014 12:44:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14482 invoked by uid 48); 21 May 2014 12:43:57 -0000
From: "charlet at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/9535] Datagram socket semantics are wrong
Date: Wed, 21 May 2014 12:44:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ada
X-Bugzilla-Version: 3.4.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: charlet at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: charlet at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc assigned_to
Message-ID: <bug-9535-4-Po1PUcR744@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-9535-4@http.gcc.gnu.org/bugzilla/>
References: <bug-9535-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-05/txt/msg01845.txt.bz2
Content-length: 495

https://gcc.gnu.org/bugzilla/show_bug.cgi?id•35

Arnaud Charlet <charlet at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |charlet at gcc dot gnu.org
           Assignee|sam at gcc dot gnu.org             |charlet at gcc dot gnu.org

--- Comment #8 from Arnaud Charlet <charlet at gcc dot gnu.org> ---
Will commit a change shortly


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
                   ` (3 preceding siblings ...)
  2014-05-21 12:33 ` redi at gcc dot gnu.org
@ 2014-05-21 21:52 ` mikpelinux at gmail dot com
  2014-05-24 19:28 ` mikpelinux at gmail dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mikpelinux at gmail dot com @ 2014-05-21 21:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57625

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #4 from Mikael Pettersson <mikpelinux at gmail dot com> ---
I can reproduce on x86_64-linux (Fedora 18) with gcc-4.8.1, gcc-4.8-20140515,
and gcc-4.9-20140514 as host compilers, and gcc-4.7.2 as the target compiler.


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
                   ` (4 preceding siblings ...)
  2014-05-21 21:52 ` mikpelinux at gmail dot com
@ 2014-05-24 19:28 ` mikpelinux at gmail dot com
  2014-05-25 10:30 ` mikpelinux at gmail dot com
  2015-09-21 13:38 ` mpolacek at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: mikpelinux at gmail dot com @ 2014-05-24 19:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57625

--- Comment #5 from Mikael Pettersson <mikpelinux at gmail dot com> ---
The failure of gcc-4.8.0 and later to build gcc-4.7.2 w/ --disable-bootstrap
started with r186592.  I'm getting loads of errors from glibc stating that
malloc detects memory corruption in cc1.


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
                   ` (5 preceding siblings ...)
  2014-05-24 19:28 ` mikpelinux at gmail dot com
@ 2014-05-25 10:30 ` mikpelinux at gmail dot com
  2015-09-21 13:38 ` mpolacek at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: mikpelinux at gmail dot com @ 2014-05-25 10:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57625

--- Comment #6 from Mikael Pettersson <mikpelinux at gmail dot com> ---
The failure of 4.7 being built w/ --disable-bootstrap by 4.8+ stopped with the
PR54638 fix in r191605.  It's clear that the problem was undefined behaviour in
4.7.2, not a wrong-code error in 4.8+.


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

* [Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2
  2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
                   ` (6 preceding siblings ...)
  2014-05-25 10:30 ` mikpelinux at gmail dot com
@ 2015-09-21 13:38 ` mpolacek at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-09-21 13:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57625

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Looks resolved then.


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

end of thread, other threads:[~2015-09-21 13:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-15 16:48 [Bug c/57625] New: internal compiler error: seg fault when building gcc 4.7.2 je.suis.bon at googlemail dot com
2013-06-15 17:57 ` [Bug middle-end/57625] " pinskia at gcc dot gnu.org
2013-06-15 20:20 ` mikpe at it dot uu.se
2013-11-05 23:21 ` arapov at gmail dot com
2014-05-21 12:33 ` redi at gcc dot gnu.org
2014-05-21 21:52 ` mikpelinux at gmail dot com
2014-05-24 19:28 ` mikpelinux at gmail dot com
2014-05-25 10:30 ` mikpelinux at gmail dot com
2015-09-21 13:38 ` mpolacek 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).