[asterisk-dev] Asterisk 1.4.12 __ast_pthread_mutex_lock Deadlock

Gregory Nietsky gregnietsky at gmail.com
Tue Oct 9 06:46:02 CDT 2007


Hendrik Visage wrote:

Hendrik (AKA chicken push ??)  i was getting segfaults in libc in odd 
places upgrading libc and NOT using
gcc-4.1.0 the problems have mostly gone away. im curently using libc 
2.6.1/gcc-1.4.2 i used the new gcc to build
libc as gcc-4.1.0 is known to be buggy (dit is opgefo....).

the backtrace shows a problem in libc more than * as the libc functions 
when you load the libs do not strip them
to maintain debug info this will be far more usefull

> with DETECT_DEADLOCKS and DEBUG_THREADS:
> [Oct  9 12:57:41] ERROR[32313]:
> /home/hvisage/ast/asterisk-1.4.12/include/asterisk/lock.h:284
> __ast_pthread_mutex_lock: channel.c line 1587 (queue_frame_to_spies):
> Deadlock? waited 5 sec for mutex '&spy->lock'?
> Segmentation fault (core dumped)
>
> ie. I did NOT have DO_CRASH enabled. This appears to be a problem in
> some string:
>
> #0  0xb7dcbb6b in strlen () from /lib/libc.so.6
> (gdb) bt full
> #0  0xb7dcbb6b in strlen () from /lib/libc.so.6
> No symbol table info available.
> #1  0xb7d9edab in vfprintf () from /lib/libc.so.6
> No symbol table info available.
> #2  0xb7dbe524 in vsnprintf () from /lib/libc.so.6
> No symbol table info available.
> #3  0x0813613b in ?? ()
> No symbol table info available.
>
>
>
>   




More information about the asterisk-dev mailing list