Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45225 - prelink core dumps if you use the -f flag
Summary: prelink core dumps if you use the -f flag
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-20 11:25 UTC by Gareth Bult
Modified: 2004-04-07 02:06 UTC (History)
1 user (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 Gareth Bult 2004-03-20 11:25:04 UTC
I've had one other person verify this.

If I try prelink -amvR , it works.
If I try prelink -amvRf , it fails.

prelink -au works, so I'm presently doing;

prelink -au && prelink -amR

(!)

Reproducible: Always
Steps to Reproduce:
1. prelink -amRf
2.
3.
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2004-04-05 02:14:56 UTC
Is this an AMD64 only bug?

I have tested sys-devel/prelink-20040216 with prelink -amvRf and it works fine here on a x86.

Could you run gdb on the core file:

ulimit -c unlimited
prelink -amvRf
gdb prelink core
gdb>backtrace

Many thanks.
Comment 2 Gareth Bult 2004-04-05 04:10:58 UTC
Yes, AMD64 only.

GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".
 
Core was generated by `prelink -amvRf'.
Program terminated with signal 6, Aborted.
#0  0x0000000000437dc9 in ?? ()
(gdb) backtrace
#0  0x0000000000437dc9 in ?? ()
#1  0x0000000000459ce1 in ?? ()
#2  0x000000000043807b in ?? ()
#3  0x000000000040ba6e in ?? ()
#4  0x000000000040c26f in ?? ()
#5  0x0000000000431d39 in ?? ()
#6  0x00000000004001ea in ?? ()
(gdb)
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2004-04-05 04:34:31 UTC
Thanks,

the gdb backtrace was not too useful :-(

Could you attach the last 10 or so lines from the prelink output to the bug, it might say why it aborted.
Comment 4 Stefan Jones (RETIRED) gentoo-dev 2004-04-05 04:49:16 UTC
I have found a new version of prelink in fedora development.

* Wed Mar 17 2004 Jakub Jelinek <jakub@redhat.com> 0.3.1-2
- unlink temporary files if renaming to the destination or setting of
  security context failed (#118251)
- fix bi-architecture prelinking (#118226)
- if prelink called from the cron script fails, note the exit status
  into /var/log/prelink.log
 
is in the changelog ... so it may fix it.

Added prelink-20040317 to portage, please test when it apprears on rsync.
Comment 5 Gareth Bult 2004-04-05 05:41:12 UTC
/usr/lib/fltk-1.1/libfltk.so.1.1                             0000003701600000-0000003701795d00
/usr/lib/libgtkhtml-3.0.so.4                                 0000003709100000-00000037092b9f20
/usr/X11R6/lib/libMrm.so.2                                   0000003700600000-0000003700722f80
/usr/lib/libgstinterfaces-0.8.so.0                           0000003704f00000-0000003705007b48
/usr/kde/3.2/lib/libkdeinit_kaccess.so                       0000003701e00000-0000003701f09c78
/usr/kde/3.2/lib/libkdeinit_kio_http_cache_cleaner.so        0000003701e00000-0000003701f06a48
/usr/kde/3.2/lib/libkdeinit_dcopserver.so                    0000003701e00000-0000003701f1a840
Laying out 422 libraries in virtual address space 41000000-50000000
Random base 0x48c0b000
Aborted (core dumped)
Comment 6 Stefan Jones (RETIRED) gentoo-dev 2004-04-07 02:06:06 UTC
Please could you test the latest version of prelink and report.
"sys-devel/prelink-20040317"

many thanks for your time.