[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#280886: prelink.bin fails on reading directory



tonight i encountered the "prelink.bin: cannot open ELF file: I/O error:
raw read", googling i found this bug, and did a quick strace.

strace reveals that prelink is trying to read a directory, but the error
message is so unintuitive no user would ever conclude that.

18910 open("/usr/lib/openoffice", O_RDONLY) = 3
18910 lseek(3, 0, SEEK_END)             = 4096
18910 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = -1
ENODEV
18910 lseek(3, 0, SEEK_SET)             = 0
18910 read(3, 0x80928b8, 4096)          = -1 EISDIR (Is a directory)
18910 write(2, "/usr/sbin/prelink.bin: ", 23) = 23
18910 write(2, "cannot open ELF file: I/O error:"..., 41) = 41
18910 write(2, "\n", 1)                 = 1
18910 close(3)                          = 0
18910 exit_group(1)                     = ?

i haven't look at the source for prelink yet, so maybe the patch is
easy.

btw, i quit prelinking because:
1. prelinking must be done after every apt-get upgrade invocation that
updates a library file openoffice.org depends upon, and when
synchronizing sarge on a daily basis, that's at least once manual
invocation a week.
2. prelinking appears to modify the signature (md5, sha1) of every
library openoffice.org depends upon (and that's just about every library
on my system), wreaking havoc with file integrity checkers (integrit,
aide).

corey-- 
undefined@pobox.com



Reply to: