tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: using backtrace(3) in libpthread



Christos Zoulas <christos%zoulas.com@localhost> wrote:

> It does one realloc. Why don't you make it use statically allocated space.

That helps! I get my first backtrace logged, but the process then
deadlocks somewhere else.

Here is what I got:
 *** pthread_key_create *** 
#0 0xbb7533e8 <__libc_thr_keycreate+250> at ./libpthread.so.1
#1 0xbb6d1ef1 <_strncasecmp+11709> at /lib/libc.so.12
#2 0xbb6d2ae7 <malloc+116> at /lib/libc.so.12
#3 0xbb6d5a28 <__learn_tree+171> at /lib/libc.so.12
#4 0xbb6d6765 <__learn_tree+3560> at /lib/libc.so.12
#5 0xbb6d6b23 <_sysctlgetmibinfo+80> at /lib/libc.so.12
#6 0xbb6c832d <sysctlbyname+77> at /lib/libc.so.12
#7 0xbb7db129 <nextafterl+553> at /lib/libm.so.0
#8 0xbb7cc898 <_init+2456> at /lib/libm.so.0
#9 0xbb7f2eeb

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index