Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67647 - emerge sys-libs/glibc-2.3.4.20040808-r1 failed with gcc: Internal error: Segmentation fault (program cc1) at Function src_compile, Line 587, Exitcode 2
Summary: emerge sys-libs/glibc-2.3.4.20040808-r1 failed with gcc: Internal error: Segm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-15 05:18 UTC by Aksel Filipovic
Modified: 2005-07-15 08:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aksel Filipovic 2004-10-15 05:18:36 UTC
I can't emerge new version of glibc (2.3.4.20040808-r1), so it is also no possible to upgrade any other package that depends on it.

Reproducible: Always
Steps to Reproduce:
1. emerge -u glibc
2.
3.
Actual Results:  
emerge fails on segmentation error of gcc

Expected Results:  
emerged glibc

gcc getwchar_u.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-
blocks -mcpu=athlon-tbird -mpreferred-stack-boundary=2     -I../include -I. -I/var/tmp/portage/
glibc-2.3.4.20040808-r1/work/build/libio -I.. -I../libio  -I/var/tmp/portage/glibc-2.3.4.20040808-
r1/work/build -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/
sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/
sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../
linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../
sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/
unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix 
-I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../
sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic 
-nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include -isystem //usr/include 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -D_IO_MTSAFE_IO -o /var/tmp/portage/
glibc-2.3.4.20040808-r1/work/build/libio/getwchar_u.o -MD -MP -MF /var/tmp/portage/glibc
-2.3.4.20040808-r1/work/build/libio/getwchar_u.o.dt -MT /var/tmp/portage/glibc-2.3.4.20040808-
r1/work/build/libio/getwchar_u.o
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/libio/getwchar_u.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3/libio'
make[1]: *** [libio/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20040808-r1 failed.
!!! Function src_compile, Line 587, Exitcode 2
!!! (no error message)

Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.6.7-gentoo-r11)
===============================================================
==
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon-tbird -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon-tbird -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo ftp://gd.tuwien.ac.at/opsys/linux/
gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups dvdr encode f77 foomaticdb gdbm gif 
gpm gtk2 imlib jpeg ldap libg++ libwww mad mikmod mpeg ncurses nls oggvorbis opengl oss pam 
pdflib perl png python quicktime readline sals sdl slang spell ssl tcpd truetype usb x86 xml2 xmms 
xprint xv zlib"


In this time in /var/log/messages:
Oct 15 12:22:29 strauss sshd[6712]: Accepted password for axel from 128.131.167.241 port 50619 
ssh2
Oct 15 12:22:39 strauss su(pam_unix)[6719]: session opened for user root by axel(uid=1003)
Oct 15 12:30:00 strauss CRON[19712]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-
crons )
Oct 15 12:34:48 strauss Unable to handle kernel paging request at virtual address 081da000
Oct 15 12:34:48 strauss printing eip:
Oct 15 12:34:48 strauss c0133300
Oct 15 12:34:48 strauss *pde = 14e19067
Oct 15 12:34:48 strauss *pte = 00000000
Oct 15 12:34:48 strauss Oops: 0002 [#1]
Oct 15 12:34:48 strauss Modules linked in: uhci_hcd ohci_hcd 3c59x sis_agp agpgart sbp2 ohci1394 
ieee1394 usb_storage ehci_hcd usbcore
Oct 15 12:34:48 strauss CPU:    0
Oct 15 12:34:48 strauss EIP:    0060:[<c0133300>]    Not tainted
Oct 15 12:34:48 strauss EFLAGS: 00010206   (2.6.7-gentoo-r11) 
Oct 15 12:34:48 strauss EIP is at filemap_nopage+0x0/0x330
Oct 15 12:34:48 strauss eax: 081da000   ebx: c15d1804   ecx: 081dab13   edx: c04250e0
Oct 15 12:34:48 strauss esi: 00000000   edi: dea81ce0   ebp: c15d1804   esp: d06dfeb0
Oct 15 12:34:48 strauss ds: 007b   es: 007b   ss: 0068
Oct 15 12:34:48 strauss Process cc1 (pid: 20906, threadinfo=d06de000 task=c20f2850)
Oct 15 12:34:48 strauss Stack: c013fb1e c15d1804 081da000 d06dfecc c1158840 00000000 
c30c4f64 00000001 
Oct 15 12:34:48 strauss c15d1804 081dab13 dea81ce0 00000000 c013fecf dea81ce0 
c15d1804 081dab13 
Oct 15 12:34:48 strauss 00000000 d4e19768 d6cc5080 dea81ce0 dea81d00 c15d1804 c20f2850 
c0119540 
Oct 15 12:34:48 strauss Call Trace:
Oct 15 12:34:48 strauss [<c013fb1e>] do_no_page+0x8e/0x2a0
Oct 15 12:34:48 strauss [<c013fecf>] handle_mm_fault+0xbf/0x130
Oct 15 12:34:48 strauss [<c0119540>] do_page_fault+0x110/0x524
Oct 15 12:34:48 strauss [<c0140b00>] vma_link+0x20/0x80
Oct 15 12:34:48 strauss [<c0141508>] do_mmap_pgoff+0x378/0x620
Oct 15 12:34:48 strauss [<c010b014>] sys_mmap2+0x64/0xa0
Oct 15 12:34:48 strauss [<c0119430>] do_page_fault+0x0/0x524
Oct 15 12:34:48 strauss [<c0105fed>] error_code+0x2d/0x40
Comment 1 Benjamin Tremoulheac 2004-10-17 04:55:25 UTC
I've exactly the same problem.


Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)
=================================================================
System uname: 2.4.26-gentoo-r9 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mir.zyrianes.net/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="apache2 apm arts avi bitmap-fonts crypt cups encode f77 foomaticdb gif gtk2 imlib libg++ libwww mad mikmod motif mpeg mysql ncurses oggvorbis opengl oss perl python quicktime sdl slang svga tcpd x86 xmms xprint xv zlib"
Comment 2 tklauser 2004-10-18 11:15:20 UTC
Please give us your _full_ output of "gcc -v" and "/lib/libc.so*" (Yeah, it's executable ;)
Comment 3 Benjamin Tremoulheac 2004-10-18 11:47:56 UTC
mmh, I'm sorry but I've just upgraded from glibc.2.3.4.20040808-r1 to glibc.2.3.4.20041006 and it has worked.
Comment 4 Alan Jackson 2004-10-25 19:06:30 UTC
Same problem

Portage 2.0.51_pre17 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.4.25 i586 Pentium 75 - 200)
=================================================================
System uname: 2.4.25 i586 Pentium 75 - 200
Gentoo Base System version 1.4.16
distcc 2.16 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i586 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i586 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://earthman/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xprint xv zlib"
-----------------------------
gcc -v
Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/specs
Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info --enable-shared --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu --with-system-zlib --enable-languages=c,c++ --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=generic
Thread model: posix
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
---------------------
gcc printf_fp.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks -mcpu=i586 -mpreferred-stack-boundary=2  -fPIC    -I../include -I. -I/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/stdio-common -I.. -I../libio  -I/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include -isystem //usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED     -D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/stdio-common/printf_fp.os -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/stdio-common/printf_fp.os.dt -MT /var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/stdio-common/printf_fp.os
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20040808-r1/work/build/stdio-common/printf_fp.os] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20040808-r1 failed.
!!! Function src_compile, Line 587, Exitcode 2

----------------------------
# /lib/libc.so*
GNU C Library stable release version 2.3.3, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6).
Compiled on a Linux 2.4.21 system on 2004-10-01.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@gnu.org>.
Comment 5 Aksel Filipovic 2004-12-01 06:12:32 UTC
OK people.
In my case it was not a fault of gentoo or glibc package.
I found out that the problem was with my system disk, so moved the data to another and the problem was solved.

But, thanks anyway for your help
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2005-07-15 08:02:28 UTC
Assuming fixed in latest versions.