[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: updating a shared lib crashes running programs
- From: Alexander Boström <abo kth se>
- To: For users of Fedora Core releases <fedora-list redhat com>
- Subject: Re: updating a shared lib crashes running programs
- Date: Fri, 22 Oct 2004 11:52:29 +0200
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]