updating a shared lib crashes running programs
Alexander Boström
abo at kth.se
Fri Oct 22 09:52:29 UTC 2004
fre 2004-10-22 klockan 10:04 +0200 skrev Dimitri Tombroff:
> I really cannot understand what could go wrong when replacing a library,
> the running programs are not supposed to reload it.
It does. The library isn't copied to the memory space of the process.
Instead, it's "mapped" into the process. If you overwrite the file, the
old library is wiped from the system (disk and ram) completely.
Try this instead:
$ mv /home/nxuser/pp/lib/libstack.so /home/nxuser/pp/lib/libstack.so.old
$ cp libstack.so /home/nxuser/pp/lib/libstack.so
$ rm /home/nxuser/pp/lib/libstack.so.old
Or use the "install" command.
/abo
More information about the fedora-list
mailing list