This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch+7.5.1] Work around PR libc/13097 "linux-vdso.so.1" #3


On Fri, 23 Nov 2012 17:12:33 +0100, Mark Kettenis wrote:
> > My favorite is opening a DSO symlink like we /proc/PID/exe.
> 
> That doesn't really help.  If you replace the DSO the symlink will
> point at the new one, not the one loaded by the executable.

With Linux kernel it will work:

$ md5sum /tmp/sleep;/tmp/sleep 1h &p=$!;rm /tmp/sleep;ls -l /proc/$p/exe;md5sum /proc/$p/exe
85bde4e40576d0fd8172dd3b91822cff  /tmp/sleep
[1] 25677
lrwxrwxrwx 1 jkratoch jkratoch 0 Nov 23 17:17 /proc/25677/exe -> /tmp/sleep\ (deleted)
85bde4e40576d0fd8172dd3b91822cff  /proc/25677/exe


Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]