lkml.org 
[lkml]   [1999]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Possible ld-so bug.
Date
From
> You mean you changed the contents of a shared library while it was being
> used? It's not surprising that this broke things! FWIW, I suspect it
> would have worked if it unlinked/renamed the old libs and then placed the
> new, but it's hard to make this an atomic operation.

Isn't /usr/bin/install expected to do exactly this?
If I try to "cp" a new version over a running binary, I get an error,
but the same with "install" works.

> This isn't an ld.so bug. If you modified the image of any program while it
> was running (say, by moving the entry point to fputs 16 bytes earlier)
> you would expect it to run erratically. Or just limp. If it ran at all.

No. You can't do that at all - ETXTBSY.

Olaf


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:2.002 / U:1.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site