Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49821 - prelink 20040317 will segfault when prelinking musepack-tools-1.15r
Summary: prelink 20040317 will segfault when prelinking musepack-tools-1.15r
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 57921 (view as bug list)
Depends on: 52148
Blocks:
  Show dependency tree
 
Reported: 2004-05-03 03:15 UTC by Joël
Modified: 2004-07-22 02:16 UTC (History)
3 users (show)

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


Attachments
attached: output of emerge info (emergeinfo.txt,2.18 KB, text/plain)
2004-05-03 03:17 UTC, Joël
Details
Output of readelf as requested (readelf.txt,13.52 KB, text/plain)
2004-05-05 00:13 UTC, Joël
Details
ebuild patch (temp.patch,898 bytes, patch)
2004-06-01 12:08 UTC, 4nykey
Details | Diff
musepack-tools-1.15r-Makefile.patch (musepack-tools-1.15r-Makefile.patch,3.66 KB, patch)
2004-06-18 14:49 UTC, 4nykey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joël 2004-05-03 03:15:54 UTC
while trying to prelink /usr/bin/mppenc, it segfaults with the following message:

=========================
Prelinking /usr/bin/mppenc
prelink: /usr/bin/mppenc: Symbol section index outside of section numbers
./do-prelink: line 2: 16273 Segmentation fault      prelink -vafmR
=========================
Comment 1 Joël 2004-05-03 03:17:01 UTC
Created attachment 30583 [details]
attached: output of emerge info
Comment 2 solar (RETIRED) gentoo-dev 2004-05-04 12:21:05 UTC
Please add the output from 'readelf -a /usr/bin/mppenc' to this bug.

/usr/bin/mppenc is probably not PIC aware.
Comment 3 Joël 2004-05-05 00:13:58 UTC
Created attachment 30770 [details]
Output of readelf as requested
Comment 4 Joël 2004-05-05 03:28:59 UTC
Is there a way to configure prelink for skipping specific files such as this one ?  When it segfaults, it lets the system in a partially prelinked state..

Thanks,
Joel
Comment 5 solar (RETIRED) gentoo-dev 2004-05-26 21:04:29 UTC
Jo
Comment 6 solar (RETIRED) gentoo-dev 2004-05-26 21:04:29 UTC
Joël,
I don't have any idea about this one as I don't actually use either one of these software pkgs. The readelf did not really provide me with any insight as I hoped it would. None the less I wish you good luck.
Comment 7 4nykey 2004-06-01 12:03:43 UTC
Workaround would be moving musepack-tools to /opt for good, I think.
Comment 8 4nykey 2004-06-01 12:08:03 UTC
Created attachment 32483 [details, diff]
ebuild patch

Removes RESTRICT="nomirror", as sources seem to be at mirrors now (#52148)
adds nasm to dependancies
installs to /opt, which prelink doesn't process
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-15 14:08:03 UTC
solar: could you takea look at this again?  I'd prefer to find out what is wrong with the prelinking rather than just work around it by installing to /opt.
Comment 10 solar (RETIRED) gentoo-dev 2004-06-15 15:15:52 UTC
Jeremy,
Is this happening for all users that attempt to prelink or is just a few isolated cases?
Comment 11 solar (RETIRED) gentoo-dev 2004-06-15 15:33:41 UTC
Also does this happen with a newer snapshot of prelink?
None of the libraries that get prelinked have any text relocations in them do they?
Comment 12 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-15 15:50:21 UTC
solar: It appears to be just with prelink.  I can't verify it as I don't use prelink.  Works fine for me otherwise.
Comment 13 4nykey 2004-06-18 14:45:18 UTC
Seems like stripping done by original Makefile has something to do with segfaults, removing it allowed prelink to finish its job.
Comment 14 4nykey 2004-06-18 14:49:13 UTC
Created attachment 33534 [details, diff]
musepack-tools-1.15r-Makefile.patch

Patch with non-trivial strip-options commented out.
Comment 15 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-07 02:49:30 UTC
in portage.  thanks.
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-22 02:16:42 UTC
*** Bug 57921 has been marked as a duplicate of this bug. ***