Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136579 - sys-devel/prelink-20060213 aborts after laying out libraries
Summary: sys-devel/prelink-20060213 aborts after laying out libraries
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 134780
  Show dependency tree
 
Reported: 2006-06-12 13:52 UTC by Robin Johnson
Modified: 2006-10-04 01:06 UTC (History)
1 user (show)

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


Attachments
log of prelink -avn run (log,57.37 KB, text/plain)
2006-06-12 13:53 UTC, Robin Johnson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-12 13:52:56 UTC
I was testing the new prelink, and found that it aborted after laying out libraries.

Portage 2.1 (!/usr/portage/profiles/default-linux/ppc/ppc64/2006.0/32bit-userland/970/pmac, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-rc6-gd53e505b-dirty ppc64)
=================================================================
System uname: 2.6.17-rc6-gd53e505b-dirty ppc64 PPC970MP, altivec supported
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe"
DISTDIR="/home/gentoo/distfiles"
FEATURES="assume-digests autoaddcvs autoconfig buildpkg ccache collision-protect confcache cvs digest distlocks distlockss metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j7"
PKGDIR="/home/gentoo/packages/buck-int"
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="/dev/shm"
PORTDIR="/devel/gentoo-cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC=""
USE="ppc X a52 aac aalib acl aio alsa altivec amd apache2 apm ares async automount berkdb bitmap-fonts bluetooth bzip2 cairo calendar caps cdb cdda cdr cgi cjk clamav clearpasswd cli crypt cscope ctype cups curl curlwrappers daap divx4linux dri dts dv dvd dvdr dvdread dynagraph emboss encode ethereal examples exif expat f77 fam fame fastcgi ffmpeg fftw flac flash foomaticdb fortran fpx frxp gcc64 gd gdbm geoip gif glitz glx gmp gnokii gnults gnuplot gnutls gpm graphviz gs gstreamer gzip hpn ical ieee1394 imap imlib innodb insecure-savers ipalias ipod ipv6 irda isdnlog jbig joystick jpeg jpeg2k lcms ldap libwww lirc live logitech-mouse lzo mad maildir mbox mcal md5sum mikmod mjpeg mod motif mp3 mpeg mpm-prefork multicall musicbrainz mysql ncurses network nptl nptlonly numeric offensive ogg oggvorbis openexr opengl osd ospfapi pam pcap pcre pdf pdflib perl plotutils png pnp postgres ppds pppd python qmail quicktime quotas rdesktop readline reflection rtc ruby samba scanner screen sdl session shout skins slang slp sms snmp socks5 speex spell spl sqlite ssl stream svg swat syslog t1lib tcltk tetex theora tiff truetype truetype-fonts type1 type1-fonts udev ungif unicode usb userlocales utf8 v4l v4l2 vcd vhosts vidix vlm vorbis winbind wmf wxwindows xanim xcomposite xinerama xml xml2 xmms xorg xosd xprint xrandr xscreensaver xv xvid xvmc yv12 zeroconf zlib elibc_glibc input_devices_dmc input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_void kernel_linux userland_GNU video_cards_fbdev video_cards_nv video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS


# prelink -anv
(see attached log for full output)
/lib/libvolume_id.so.0                                       2cef0000-2cf06874
/usr/lib/libxosd.so.2                                        2cf10000-2cf25c08
/usr/lib/libzzipfseeko-0.so.13                               2cf30000-2cf433bc
Aborted
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-12 13:53:20 UTC
Created attachment 88998 [details]
log of prelink -avn run
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2006-06-15 06:19:15 UTC
Hi,

Not much information to go on here.

Sould you get a strace log of the run and also if you can a backtrace from gdb for the run please. ( I assume you know how to do that and they work on PPC64 )

Thanks
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-15 06:59:44 UTC
# CFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -ggdb" FEATURES='keepwork splitdebug nostrip' emerge prelink 
# prelink -anv
...
Aborted (core dumped)
# gdb_get_backtrace `which prelink` core
Using host libthread_db library "/lib/libthread_db.so.1".
Failed to read a valid object file image from memory.
Core was generated by `prelink -anv'.
Program terminated with signal 6, Aborted.
#0  0x100a6974 in raise ()
The directory where separate debug symbols are searched for is "/usr/lib/debug".

Thread 1 (process 12137):
#0  0x100a6974 in raise ()
No symbol table info available.
#1  0x1005001c in abort ()
No symbol table info available.
#2  0x1000f22c in layout_libs () at layout.c:634
	x = 18415513957772134299
	fd = <value optimized out>
	k = <value optimized out>
	mmap_base = <value optimized out>
	size = <value optimized out>
	fake = (struct prelink_entry *) 0x1168a450
	fakecnt = 3
	done = 1
	mmap_fin = 428081152
	list = (struct prelink_entry *) 0x1168a450
	m = <value optimized out>
	mmap_start = <value optimized out>
	mmap_end = <value optimized out>
	layout_libs_pre = (int (*)(struct layout_libs *)) 0x1002cb30 <ppc_layout_libs_pre>
	plarch = (struct PLArch *) 0x10118e80
	i = <value optimized out>
	max_page_size = 65536
	fakeent = {filename = 0x41e8 <Address 0x41e8 out of bounds>, canon_filename = 0x1011d3a8 "\020\021
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-06-15 06:59:44 UTC
# CFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -maltivec -pipe -ggdb" FEATURES='keepwork splitdebug nostrip' emerge prelink 
# prelink -anv
...
Aborted (core dumped)
# gdb_get_backtrace `which prelink` core
Using host libthread_db library "/lib/libthread_db.so.1".
Failed to read a valid object file image from memory.
Core was generated by `prelink -anv'.
Program terminated with signal 6, Aborted.
#0  0x100a6974 in raise ()
The directory where separate debug symbols are searched for is "/usr/lib/debug".

Thread 1 (process 12137):
#0  0x100a6974 in raise ()
No symbol table info available.
#1  0x1005001c in abort ()
No symbol table info available.
#2  0x1000f22c in layout_libs () at layout.c:634
	x = 18415513957772134299
	fd = <value optimized out>
	k = <value optimized out>
	mmap_base = <value optimized out>
	size = <value optimized out>
	fake = (struct prelink_entry *) 0x1168a450
	fakecnt = 3
	done = 1
	mmap_fin = 428081152
	list = (struct prelink_entry *) 0x1168a450
	m = <value optimized out>
	mmap_start = <value optimized out>
	mmap_end = <value optimized out>
	layout_libs_pre = (int (*)(struct layout_libs *)) 0x1002cb30 <ppc_layout_libs_pre>
	plarch = (struct PLArch *) 0x10118e80
	i = <value optimized out>
	max_page_size = 65536
	fakeent = {filename = 0x41e8 <Address 0x41e8 out of bounds>, canon_filename = 0x1011d3a8 "\020\021¨\020\021fÌp", soname = 0x100e0000 "N\200", 
  hardlink = 0x0, timestamp = 269361280, checksum = 269352960, base = 0, end = 0, layend = 0, pltgot = 1157939297988486640, dev = 18415514095458962476, 
  ino = 1156897889616659490, type = 0, done = 269361280, ndepends = 269598720, refs = 269603752, flags = -7271248, u = {explicit = 268888024, 
    tmp = 268888024}, ctime = 269604120, mtime = 269592048, depends = 0xff910cb0, prev = 0x1007cc2c, next = 0x1011d3a8, opd = 0x0}
	j = <value optimized out>
	class = 1
	base = <value optimized out>
	e = <value optimized out>
	deps = (struct prelink_entry **) 0xff9051b0
	layout_libs_post = (int (*)(struct layout_libs *)) 0x1002a994 <ppc_layout_libs_post>
	l = {libs = 0xff90b4b0, binlibs = 0xff905d80, list = 0x1168a450, fake = 0x1168a450, mmap_base = 262144, mmap_start = 262144, 
  mmap_fin = 428081152, mmap_end = 428081152, arch_data = 0x1168a448, flags = 20, nlibs = 741, nbinlibs = 4263, fakecnt = 3}
	arch = 0
	arches = (int *) 0xff905d60
	narches = 1
	plibs = (struct prelink_entry **) 0xff90b4b0
	pbinlibs = (struct prelink_entry **) 0xff905d80
#3  0x1000fd54 in main (argc=2, argv=0xff9111a4) at main.c:433
	remaining = 2
	failures = <value optimized out>


prelink appears extremely slow when under strace, so I'll post that output later.
Comment 5 Pacho Ramos gentoo-dev 2006-07-18 15:16:02 UTC
Have you tried to merge the latest zziplib?
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-04 01:06:01 UTC
cretin: problem no longer occurs with 20060712 snapshot, closing as an upstream bug.
pacho: changing zziplib had no effect.