[asterisk-bugs] [Asterisk 0011082]: Asterisk 1.4.13 stock segfault on pthread_mutex_lock
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Oct 25 09:09:54 CDT 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11082
======================================================================
Reported By: ljackson
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 11082
Category: Core-General
Reproducibility: sometimes
Severity: crash
Priority: normal
Status: assigned
Asterisk Version: 1.4.13
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 10-24-2007 16:48 CDT
Last Modified: 10-25-2007 09:09 CDT
======================================================================
Summary: Asterisk 1.4.13 stock segfault on pthread_mutex_lock
Description:
after doing some config changes and issuing a iax2 reload and extensions
reload, it happend on the 3rd iax2 reload, asterisk segfaulted I ran gdb on
the core and this is the BT:
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
http://bugs.digium.com/view.php?id=0 0x003ca2a0 in pthread_mutex_lock () from
/lib/libpthread.so.0
(gdb) where
http://bugs.digium.com/view.php?id=0 0x003ca2a0 in pthread_mutex_lock () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=1 0x0376c01b in iax2_poke_peer
(peer=0x9d296d8, heldcall=0)
at /root/asterisk-dist/asterisk-1.4.13/include/asterisk/lock.h:610
http://bugs.digium.com/view.php?id=2 0x0378042c in iax2_process_thread
(data=0x9ce6150) at
chan_iax2.c:8259
http://bugs.digium.com/view.php?id=3 0x080f643b in dummy_start (data=0x9cde360)
at utils.c:806
http://bugs.digium.com/view.php?id=4 0x003c82db in start_thread () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=5 0x0032212e in clone () from /lib/libc.so.6
======================================================================
----------------------------------------------------------------------
ljackson - 10-25-07 09:09
----------------------------------------------------------------------
the options DEBUG_THREADS and MALLOC_DEBUG made the audio sound very bad I
had to take them back out. I will still post a backtrace if I get a crash.
I personally believe this issue might be with how the thread mutexs are
handled or a race condition between when a iax reload is issued and the
iax2_peer_poke happens I believe that due to these both happening at the
same time, I think this caused the crash I saw.
Thanks,
Leif
Issue History
Date Modified Username Field Change
======================================================================
10-25-07 09:09 ljackson Note Added: 0072499
======================================================================
More information about the asterisk-bugs
mailing list