"Jackie Yeh [葉龍泉]" <[email protected]> writes:

> Hi Petr,
>
> I applied your patch, and attached the log with -D77 option.
>
> :: fetch_rd32: couldn't read 20 bytes from (nil)
> It's strange that 'addr' is a NULL pointer!

Indeed.  It loads 0 from DT_DEBUG.  What libc are you using?  It seems
like uClibc doesn't set DT_DEBUG so as not to dirty pages.
It's libuClibc-0.9.32.so
-rwxrwxr-x    1 root     root        725164 Sep 25 18:38 
/lib/libuClibc-0.9.32.so



Several backup plans are possible: we could look for _r_debug (which
seems to be named _dl_debug_addr in uClibc land) in the binary of
dynamic linker.  Failing that, the brute force solution is to watch mmap
ad munmap system calls and re-parse /proc/pid/maps on any of these.

Thanks,
PM



_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to