Hi,

What do you think that the problem might be if a program has a segmentation fault at the same library call? The library call is from libpthread.so.0 and the call itself is "pthread_mutex_locl ( )". I have enclosed the core dump information below. The program comes up and then does the segmentation fault.



(gdb) bt
#0 0x40035944 in pthread_mutex_lock () from /lib/tls/libpthread.so.0
#1 0x419ede1e in register_verify (p=3D0x8163890, sin=3D0x41bfc0d0, req=3D0x41bfc0e0, uri=3D0x41bfc2fd "sip:10.0.0.5", ignore=3D0) at chan_sip.c:5032
#2 0x419f4495 in handle_request (p=3D0x8163890, req=3D0x41bfc0e0, sin=3D0x41bfc0d0, recount=3D0x0, nounlock=3D0x41bfbf48) at chan_sip.c:7861
#3 0x419f6194 in sipsock_read (id=3D0x81413f8, fd=3D20, events=3D1, ignore=3D0x0) at chan_sip.c:7959
#4 0x0805317c in ast_io_wait (ioc=3D0x813fe08, howlong=3D0) at io.c:267
#5 0x419e27db in do_monitor (data=3D0x0) at chan_sip.c:8106
#6 0x400347f3 in start_thread () from /lib/tls/libpthread.so.0
#7 0x401a462a in clone () from /lib/tls/libc.so.6



(gdb) x/5i $eip
0x40035944 <pthread_mutex_lock+36>: mov 0xc(%esi),%ecx
0x40035947 <pthread_mutex_lock+39>: cmp $0x1,%ecx
0x4003594a <pthread_mutex_lock+42>: je 0x40035974 <pthread_mutex_lock+84>
0x4003594c <pthread_mutex_lock+44>: jg 0x4003598e <pthread_mutex_lock+110>
0x4003594e <pthread_mutex_lock+46>: xor %eax,%eax



(gdb) info registers eax 0x0 0 ecx 0x0 0 edx 0x0 0 ebx 0x4003dff4 1073995764 esp 0x41bf01f4 0x41bf01f4 ebp 0x41bf0208 0x41bf0208 esi 0x0 0 edi 0x32da 13018 eip 0x40035944 0x40035944 eflags 0x210212 2163218 cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51


(gdb) info threads
15 process 13005 0xffffe410 in ?? ()
14 process 13007 0xffffe410 in ?? ()
13 process 13008 0xffffe410 in ?? ()
12 process 13009 0xffffe410 in ?? ()
11 process 13010 0xffffe410 in ?? ()
10 process 13012 0xffffe410 in ?? ()
9 process 13013 0xffffe410 in ?? ()
8 process 13014 0xffffe410 in ?? ()
7 process 13015 0xffffe410 in ?? ()
6 process 13016 0xffffe410 in ?? ()
5 process 13017 0xffffe410 in ?? ()
4 process 13019 0xffffe410 in ?? ()
3 process 13020 0xffffe410 in ?? ()
2 process 13021 0xffffe410 in ?? ()
* 1 process 13018 0x40035944 in pthread_mutex_lock () from /lib/tls/libpthread.so.0



asterisk:~ # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 10
cpu MHz : 996.859
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1978.36


Thanks,
Charles


_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to