Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135378

Summary: sys-devel/glibc-2.3.6-r3 triggers kernel panic in test phase (math tests)
Product: Gentoo Linux Reporter: schaedpq
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: log of 'ebuild /usr/portage/sys-libs/glibc/glibc-2.3.6-r3.ebuild test'

Description schaedpq 2006-06-03 05:33:47 UTC
In the test phase, the emerge breaks in /var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/math and the system hard-freezes. (please see attached partial log of the testphase). The filesystem was mounted with 'sync' to have it as complete as possible. :-/

On the console the kernel throws a kernel panic:
Unable to handle kernel NULL pointer dereference at virtual address 00000006.
printing eip: c012d628
*pgd = 0
*pmd = 0
Recursive die() failure
Kernel panic - not syncing: Fatal exception in interrupt.

Unfortunately, its quite difficult for me to get the complete messages, because I dont have a serial console and have to copy the error messages to plain old paper and back after reboot and part of the backtrace scrolls out. :-( If anybody has an idea about that, I would be grateful... ;-)

Of course I know, that the tests of glibc anyway fail, but I think, they should not lead to a kernel panic.

I am using the hardened profile and hardened kernel. If you think, its worth the effort I may try again with vanilla gcc and kernel. If you want to have the complete build log and not only the affected tests, just tell me.

# emerge --info
Portage 2.1_rc3-r3 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r3, 2.6.14-hardened-r8 i686)
=================================================================
System uname: 2.6.14-hardened-r8 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=athlon64 -march=athlon64 -O2 -pipe -Wall"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/postfix/sample /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=athlon64 -march=athlon64 -O2 -pipe -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror"
LINGUAS="de"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="3dnow 3dnowext X a52 acpi alsa ash-completion berkdb bitmap-fonts cdparanoia crypt cups dga dlloader dri dv dvd dvdr dvdread encode font-server glx gtk gtk2 hardened imap isdnlog jabber kde kdeenablefinal live lzo mad matrox mbox mime mjpeg mmx mmxext mozcalendar mozsvg mp3 mpeg mplayer musicbrainz network nls nodrm nptl nptlonly nsplugin offensive ogg opengl pam pam_timestamp pic png quicktime readline real sftplogging sse ssl tcpd theora truetype truetype-fonts type1 type1-fonts userlocales v4l v4l2 vorbis win32codecs x86 xmms xprint xv zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 schaedpq 2006-06-03 05:35:27 UTC
Created attachment 88248 [details]
log of 'ebuild /usr/portage/sys-libs/glibc/glibc-2.3.6-r3.ebuild test'
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2006-06-07 13:28:08 UTC
We had a similar report related to compiling glibc on 2.6.16. Can you reproduce this on the latest development kernel (currently 2.6.17_rc6)?
Comment 3 schaedpq 2006-06-07 13:47:59 UTC
Just now I am on the way to bed, but I will try 2.6.17_rc6 tomorrow after work and let you know the results. ;-)
Comment 4 schaedpq 2006-06-08 10:37:34 UTC
I just checked with sys-kernel/vanilla-sources-2.6.17_rc6 and was unable to reproduce the problem with it. The tests fail, of course, but no kernel panic occurred. Furthermore, it doest apparantly not break at the test which triggers the kernel panic with my usual kernel.
GCONV_PATH=/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/iconvdata LC_ALL=C   /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library
-path /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.3.6-r3/work/build-defau
lt-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/gl
ibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-np
tl/resolv:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/nptl /var/tmp/portage/glibc-2.3.6-r3/work/b
uild-default-i686-pc-linux-gnu-nptl/elf/resolvfail  > /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/resolvfail.out
make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/resolvfail.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/elf'
make[1]: *** [elf/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.3.6-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_test
  ebuild.sh, line 987:   Called src_test
  glibc-2.3.6-r3.ebuild, line 1258:   Called toolchain-glibc_src_test
  glibc-2.3.6-r3.ebuild, line 306:   Called die

!!! nptl glibc did not pass make check
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-06-09 15:04:34 UTC
Thanks for testing. I'm going to mark this as a duplicate of 131225 as they seem similar and have the same resolution. If you want to know how you can help further, see the 16th comment on that bug. However, this process is really time consuming and I wouldn't say theres any point now that 2.6.17 is right around the corner.

*** This bug has been marked as a duplicate of 131225 ***