1 |
Caleb Shay <caleb@××××××××.com> writes: |
2 |
|
3 |
> On Sun, 2003-01-05 at 00:27, Terje Kvernes wrote: |
4 |
> |
5 |
> > run "strace -f prelink -famv". and please tell me that mmap or |
6 |
> > one of his brothers isn't the last thing there. |
7 |
> |
8 |
> Well, not quite the last thing... |
9 |
> |
10 |
> munmap(0x40654000, 274432) = 0 |
11 |
> munmap(0x406c5000, 188416) = 0 |
12 |
> close(4) = 0 |
13 |
> munmap(0x40697000, 188416) = 0 |
14 |
> brk(0x8cf1000) = 0x8cf1000 |
15 |
> munmap(0x40611000, 274432) = 0 |
16 |
> brk(0x8cc7000) = 0x8cc7000 |
17 |
> munmap(0x405a9000, 212992) = 0 |
18 |
> munmap(0x40167000, 2232320) = 0 |
19 |
> munmap(0x400f3000, 237568) = 0 |
20 |
> brk(0x8ca2000) = 0x8ca2000 |
21 |
> brk(0x8c72000) = 0x8c72000 |
22 |
> munmap(0x40027000, 417792) = 0 |
23 |
> close(3) = 0 |
24 |
> time(NULL) = 1041747716 |
25 |
> utime("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2.#prelink#.UofgUB", [2003/01/05-01:21:56, 2003/01/04-23:28:30]) = 0 |
26 |
> rename("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2.#prelink#.UofgUB", "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2") = 0 |
27 |
> stat64("/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2", |
28 |
> {st_mode=S_IFREG|0755, st_size=4233762, ...}) = 0 |
29 |
> --- SIGSEGV (Segmentation fault) --- |
30 |
> +++ killed by SIGSEGV +++ |
31 |
|
32 |
this is weird. okay, so prelink correctly renames the prelink |
33 |
mktemp'ed file to the original. then it does a stat, which returns |
34 |
properly, _then_ it segfaults. I peeked a quick peek at the source |
35 |
code, but I'm too tired to dig up anything overly useful from C. it |
36 |
does however look very buggy. :-/ |
37 |
|
38 |
but it does work fine if you do |
39 |
|
40 |
prelink -v /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.so.5.0.2 |
41 |
|
42 |
right? |
43 |
|
44 |
-- |
45 |
Terje |
46 |
|
47 |
-- |
48 |
gentoo-dev@g.o mailing list |