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

Bug 148370

Summary: metalog will not start
Product: Gentoo Linux Reporter: Gene Imes <gene>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED NEEDINFO    
Severity: major    
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gene Imes 2006-09-20 06:57:23 UTC
Metalog will not start. This is what I get when trying metalog.

root@go:/etc/init.d# /etc/init.d/metalog start
 * Starting metalog ...
*** glibc detected *** /usr/sbin/metalog: realloc(): invalid next size: 0x0804ebf8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7e59cb0]
/lib/libc.so.6[0xb7e5c976]
/lib/libc.so.6(__libc_realloc+0xf5)[0xb7e5dab5]
/usr/sbin/metalog[0x804bcd4]
/lib/libc.so.6(__libc_start_main+0xd8)[0xb7e0c878]
/usr/sbin/metalog[0x8049441]
======= Memory map: ========
08048000-0804d000 r-xp 00000000 03:03 3867628    /usr/sbin/metalog
0804d000-0804e000 rw-p 00005000 03:03 3867628    /usr/sbin/metalog
0804e000-0806f000 rw-p 0804e000 00:00 0          [heap]
b7c00000-b7c21000 rw-p b7c00000 00:00 0
b7c21000-b7d00000 ---p b7c21000 00:00 0
b7df6000-b7df7000 rw-p b7df6000 00:00 0
b7df7000-b7f0e000 r-xp 00000000 03:03 595337     /lib/libc-2.4.so
b7f0e000-b7f10000 r--p 00116000 03:03 595337     /lib/libc-2.4.so
b7f10000-b7f12000 rw-p 00118000 03:03 595337     /lib/libc-2.4.so
b7f12000-b7f15000 rw-p b7f12000 00:00 0
b7f15000-b7f30000 r-xp 00000000 03:03 393629     /usr/lib/libpcre.so.0.0.1
b7f30000-b7f31000 rw-p 0001a000 03:03 393629     /usr/lib/libpcre.so.0.0.1
b7f3d000-b7f47000 r-xp 00000000 03:03 2752597    /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1
b7f47000-b7f48000 rw-p 00009000 03:03 2752597    /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/libgcc_s.so.1
b7f48000-b7f4a000 rw-p b7f48000 00:00 0
b7f4a000-b7f64000 r-xp 00000000 03:03 595158     /lib/ld-2.4.so
b7f64000-b7f65000 r--p 00019000 03:03 595158     /lib/ld-2.4.so
b7f65000-b7f66000 rw-p 0001a000 03:03 595158     /lib/ld-2.4.so
bffc1000-bffd6000 rw-p bffc1000 00:00 0          [stack]
ffffe000-fffff000 ---p 00000000 00:00 0          [vdso]
/etc/init.d/metalog: line 15:  5361 Aborted                 /usr/sbin/metalog --daemonize --pidfile=${PIDFILE} ${METALOG_OPTS}                            [ !! ]

I tried to recompile glibc to no avail.

I can supply any more information necessary.

Thanks,

Gene Imes
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-20 07:04:03 UTC
emerge --info, please.
Comment 2 Gene Imes 2006-09-21 07:07:09 UTC
Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-rc1 i686)
=================================================================
System uname: 2.6.17-rc1 i686 Intel(R) Pentium(R) M processor 1.30GHz
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 14:00:06 +0000
app-admin/eselect-compiler: 2.0.0_rc1-r5
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fPIC"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.seren.com/gentoo http://cudlug.cudenver.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.phy.olemiss.edu/mirror/gentoo "
LINGUAS=""
PKGDIR="/usr/portage/packages"
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="/opt/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi alsa apache2 audiofile avi berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli crypt ctype cups dba dbus dga dlloader dri dv dvb dvd dvdr dvdread eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild firefox foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp glut gmp gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hal idn imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog java jpeg kernel_linux lcms ldap libg++ libwww mad memlimit mikmod mng motif mozilla mozsvg mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl oss pam pcre pdflib perl png posix ppds pppd python qt qt3 qt4 quicktime readline real reflection samba scanner sdl session simplexml slang soap sockets spell spl ssl svg tcltk tcpd tga tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 video_cards_i810 video_cards_vesa vorbis win32codecs wmf wxwindows xml xml2 xmms xorg xsl xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Gene Imes 2006-10-17 13:34:52 UTC
No one know what is causing this. I can not do an emerge world without this being fixed.

Thanks,

Gene
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-17 13:37:24 UTC
For starters, remove -fPIC from your flags and never put it back.
Comment 5 Gene Imes 2006-10-19 12:56:15 UTC
Thanks, Jakub. That worked. Can you explain why not to use -fPIC?

Thanks,

Gene Imes
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-10-19 13:22:30 UTC
(In reply to comment #5)
> Thanks, Jakub. That worked. Can you explain why not to use -fPIC?

See http://www.gentoo.org/proj/en/hardened/pic-internals.xml