Re: Possible ld-so bug.

Olaf Titz (olaf@bigred.inka.de)
Tue, 16 Feb 1999 12:31:47 +0100


> 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/