prelink should not mess with running executables

Adam Jackson ajax at redhat.com
Mon Jul 16 14:03:27 UTC 2012


On Sun, 2012-07-15 at 15:45 +0200, Jan Kratochvil wrote:
> On Sat, 14 Jul 2012 16:19:23 +0200, Sam Varshavchik wrote:
> > It took me a while to figure out why my daemon kept breaking all the
> > time, when it couldn't stat its /proc/self/exe any more.
> 
> This is a bug of the daemon.  While it is already suspicious it needs to mess
> with "/proc/self/exe" stat works for it even when it is already deleted:
> 	cp /usr/bin/perl /tmp/perlcopy;/tmp/perlcopy -MData::Dumper -le 'unlink "/tmp/perlcopy";print Dumper stat,readlink for "/proc/self/exe"'
> 	$VAR1 = 18;
> 	[...]
> 	$VAR13 = 32;
> 	$VAR14 = '/tmp/perlcopy (deleted)';
> 
> 
> On Sat, 14 Jul 2012 16:43:13 +0200, Reindl Harald wrote:
> > it should be generally considered if prelink is useful at
> > all on a distribution with high frequently updates
> 
> This is a bug of yum, it should run prelink for any updated software.

I'd be more inclined to say it's a bug in our rpm setup, in that we're
not using collections yet to get rid of boilerplate crap like

%post -p /sbin/ldconfig

The feature's been there since rpm 4.9.0 (F15).  Why aren't we using it
yet?

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20120716/9c9b63b9/attachment.sig>


More information about the devel mailing list