Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19285 - prelink bug
Summary: prelink bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-14 05:28 UTC by Heinrich Wendel (RETIRED)
Modified: 2009-01-26 12:26 UTC (History)
2 users (show)

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


Attachments
gdb session (prelink-debug-output,4.53 KB, text/plain)
2003-04-15 13:02 UTC, Patrick Kursawe (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heinrich Wendel (RETIRED) gentoo-dev 2003-04-14 05:28:04 UTC
K3b should be build with the -fPIC flag, otherwise prelinking will fail completly and not continue with other programs.
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-14 05:55:17 UTC
Of which version are you talking, what is the output of prelink and what is the output of "emerge info"?
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-04-14 06:08:44 UTC
This error occurs on two systems here, both 
 
k3b version 0.81 
prelink version 20021002-r1 
 
(the new prelink umasked today cannot prelink anything here) 
 
 
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20 i686 AMD Athlon(tm) MP 2400+ 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
http://gentoo.oregonstate.edu/ http://www.i	biblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/usr/local/portage" 
USE="x86 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib 
png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java guile X 
sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gnome gtk qt kde motif opengl -oss acpi 
alsa cdr dvd emacs ethereal flash gd gphoto2 gtk2 imap ldap lcms leim lirc maildir mbox mozilla 
mysql oav perl ruby samba sasl scanner snmp sse tetex tiff usb wmf pic" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -msse -mmmx -mfpmath=sse 
-fforce-addr" 
CXXFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -msse -mmmx -mfpmath=sse 
-fforce-addr" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache 
 
the second is 
 
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.20 i686 AMD Athlon(tm) MP 2400+ 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/usr/local/portage" 
USE="x86 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib 
png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java guile X 
sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gnome gtk qt kde motif opengl -oss acpi 
alsa cdr dvd emacs ethereal flash gd gphoto2 gtk2 imap ldap lcms leim lirc maildir mbox mozilla 
mysql oav perl ruby samba sasl scanner snmp sse tetex tiff usb wmf pic" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -msse -mmmx -mfpmath=sse 
-fforce-addr" 
CXXFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -msse -mmmx -mfpmath=sse 
-fforce-addr" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache" 
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-14 06:12:54 UTC
Sorry to bother you again, but I still think the output of prelink would be helpful :-)
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-04-14 06:47:42 UTC
prelink: exec.c:778: prelink_exec: Zusicherung 
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2003-04-14 06:47:42 UTC
prelink: exec.c:778: prelink_exec: Zusicherung »data->d_size == dso->shdr[new_dynbss].sh_size 
+ dso->shdr[new_dynbss + 1].sh_size« nicht erfüllt. 
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-14 06:49:52 UTC
for our english speakers: zusicherung .... nicht erf
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-14 06:49:52 UTC
for our english speakers: zusicherung .... nicht erfüllt means assertion .... failed.
Comment 8 Stefan Jones (RETIRED) gentoo-dev 2003-04-14 07:01:43 UTC
Have you tried the newest version of prelink in portage,

sys-devel/prelink-20021213 ?

Comment 9 Heinrich Wendel (RETIRED) gentoo-dev 2003-04-14 07:03:13 UTC
see the third post ;D 
 
>> (the new prelink umasked today cannot prelink anything here) 
 
and it's masked again now ;D 
Comment 10 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-14 07:08:33 UTC
When force-prelinking k3b I can reproduce the problem. Cretin? I think this is one for you, not for the KDE team.
Comment 11 Stefan Jones (RETIRED) gentoo-dev 2003-04-14 07:21:49 UTC
drat, time to install KDE, not happy!
If I can reporoduce the bug on my system I will take the bug off the kde team.

Stefan
Comment 12 Heinrich Wendel (RETIRED) gentoo-dev 2003-04-14 16:34:09 UTC
prelink-20030217 (which was umasked today) shows the following error:

prelink: Could not write /lib/ld-2.3.1.so: invalid section entry size
Comment 13 Stefan Jones (RETIRED) gentoo-dev 2003-04-14 16:47:51 UTC
prelink -uaf /lib/ld-2.3.1.so

and then try again.
Comment 14 Felix Kurth 2003-04-14 19:35:30 UTC
I tried the new prelink today !!!!fuck!!! 
After a while solving the problem with ld-2.3.1 (reverting back to old prelink, then  
doing prelink -aufv)  
manualy removed libelf (the ! operator line doesnt seem to work in portage ?!?), 
remerged prelink, 
The following happend: 
prelink -avmRf 
 
Prelinking /sbin/vgextend 
Prelinking /usr/bin/k3b 
prelink: exec.c:516: prelink_exec: Assertion `new_reloc == -1 || rinfo.first == 
new[new_reloc]' failed. 
Aborted 
 
Going back to the old version.- 
Comment 15 Stefan Jones (RETIRED) gentoo-dev 2003-04-15 09:15:08 UTC
I have emerged (after a few hours ) K3b on 15-4-2003

It all prelinked fine, so I cannot help here, 
my guess it is some weird system borkage due to something
unexpected, cannot help.
Comment 16 Heinrich Wendel (RETIRED) gentoo-dev 2003-04-15 09:47:40 UTC
which version of prelink did u use? 
Comment 17 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-15 09:57:53 UTC
I just tried 20030217 - prelink -u solved the "section size" problem, but I still have the failed assertion when trying to prelink -f /usr/bin/k3b
Comment 18 Stefan Jones (RETIRED) gentoo-dev 2003-04-15 10:15:17 UTC
Update dev-libs/elfutils-0.76 please, I bet this is
the source of the error.
Then remerge prelink (as it is statically compiled)
What version of elfutils do you have?

Stefan
Comment 19 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-15 13:02:04 UTC
Created attachment 10694 [details]
gdb session

hth
Comment 20 Heinrich Wendel (RETIRED) gentoo-dev 2003-04-16 08:09:11 UTC
same happens with ksimus and kvim here.
Comment 21 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-16 10:03:55 UTC
Looks like a different problem.
Prelinking /usr/bin/ksimus
prelink: exec.c:516: prelink_exec: Assertion `new_reloc == -1 || rinfo.first == new[new_reloc]' failed.

(gdb) print new_reloc
$1 = -1
(gdb) print rinfo.first
$2 = 5
(gdb) print new[new_reloc]
$3 = 139693152
Comment 22 Patrick Kursawe (RETIRED) gentoo-dev 2003-04-16 10:39:35 UTC
last one was nonsense, of course...

#3  0x08096902 in __assert_fail ()
(gdb) up
#4  0x08059f3e in prelink_exec (info=0xbfffe9b0) at exec.c:516
516       assert (new_reloc == -1 || rinfo.first == new[new_reloc]);
(gdb) print new_reloc
$2 = 0
(gdb) print rinfo.first
$3 = 5
(gdb) print new[new_reloc]
$4 = 4
(gdb) print dso->soname
$5 = 0x8337630 "/usr/bin/ksimus"
Comment 23 Caleb Tennis (RETIRED) gentoo-dev 2003-05-28 11:30:10 UTC
Is this still a valid bug? 
Comment 24 Heinrich Wendel (RETIRED) gentoo-dev 2003-05-28 16:32:03 UTC
there is neither a new k3b version nor a new prelink version, thus this bug is still valid. 
Comment 25 Patrick Kursawe (RETIRED) gentoo-dev 2003-06-10 03:12:43 UTC
Please notice that this is not only a k3b problem.
Comment 26 Stefan Jones (RETIRED) gentoo-dev 2003-08-26 23:13:36 UTC
New version of prelink is out, does it fix the error?
Comment 27 Patrick Kursawe (RETIRED) gentoo-dev 2003-08-27 02:10:05 UTC
At least on my system it seems to work now.
Comment 28 Heinrich Wendel (RETIRED) gentoo-dev 2003-08-27 08:17:06 UTC
yeah, fixes all three errors i had, please mark stable and close :)
Comment 29 Stefan Jones (RETIRED) gentoo-dev 2003-08-27 10:05:44 UTC
Ok, marked stable. Closing bug. 

Solution: Use prelink-20030811 ( or later)

I hope the dependancies hold up ...