[Home]

Summary:ASTERISK-15682: IAX2 crash's randomly
Reporter:Chris G (potsboy)Labels:
Date Opened:2010-02-24 07:04:28.000-0600Date Closed:2011-06-07 14:00:26
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) gdb.txt
( 1) log.txt
Description:Asterisk crashes, last info in the logs are realtime related. Time's appear totally random. Possibly related to issue 0015241.

****** ADDITIONAL INFORMATION ******

CentOS release 5.4 (Final) x64
version - 1.4.26.2



Comments:By: Chris G (potsboy) 2010-02-25 01:26:37.000-0600

[Feb 24 18:04:18] ERROR[32550]: /usr/local/src/asterisk-1.4.26.2/include/asterisk/lock.h:319 __ast_pthread_mutex_destroy: astobj2.c line 231 (ao2_ref): Error: attempt to destroy invalid mutex '&obj->priv_data.lock'.

I start getting this after running for 24 hours odd. And a lot of noise from valgrind.

==32525== Invalid write of size 4
==32525==    at 0xA958283: iax2_poke_peer (chan_iax2.c:10249)
==32525==    by 0xA947154: __iax2_poke_peer_s (chan_iax2.c:7740)
==32525==    by 0xA955F4C: iax2_process_thread (chan_iax2.c:9944)
==32525==    by 0x4E434B: dummy_start (utils.c:856)
==32525==    by 0x3EBDE064A6: start_thread (in /lib64/libpthread-2.5.so)
==32525==    by 0x3EBD6D3C2C: clone (in /lib64/libc-2.5.so)
==32525==  Address 0x10542E44 is 708 bytes inside a block of size 760 free'd
==32525==    at 0x4A0541E: free (vg_replace_malloc.c:233)
==32525==    by 0x430AF8: ao2_ref (astobj2.c:240)
==32525==    by 0xA928309: peer_unref (chan_iax2.c:1285)
==32525==    by 0xA9503AF: socket_process (chan_iax2.c:9245)
==32525==    by 0xA955F13: iax2_process_thread (chan_iax2.c:9937)
==32525==    by 0x4E434B: dummy_start (utils.c:856)
==32525==    by 0x3EBDE064A6: start_thread (in /lib64/libpthread-2.5.so)
==32525==    by 0x3EBD6D3C2C: clone (in /lib64/libc-2.5.so)
==32525==
==32525== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==32525==  General Protection Fault
==32525==    at 0xA959970: peer_destructor (chan_iax2.c:10636)
==32525==    by 0x430ABC: ao2_ref (astobj2.c:229)
==32525==    by 0xA928309: peer_unref (chan_iax2.c:1285)
==32525==    by 0xA9503AF: socket_process (chan_iax2.c:9245)
==32525==    by 0xA955F13: iax2_process_thread (chan_iax2.c:9937)
==32525==    by 0x4E434B: dummy_start (utils.c:856)
==32525==    by 0x3EBDE064A6: start_thread (in /lib64/libpthread-2.5.so)
==32525==    by 0x3EBD6D3C2C: clone (in /lib64/libc-2.5.so)
==32525==
==32525== ERROR SUMMARY: 16038 errors from 126 contexts (suppressed: 469 from 1)
==32525== malloc/free: in use at exit: 16,881,129 bytes in 73,175 blocks.
==32525== malloc/free: 1,064,950 allocs, 991,801 frees, 512,672,863 bytes allocated.
==32525== For counts of detected errors, rerun with: -v
==32525== searching for pointers to 73,175 not-freed blocks.
==32525== checked 47,858,960 bytes.

By: Russell Bryant (russell) 2010-03-01 14:30:34.000-0600

Please test with a newer version of Asterisk, as we think this may already be fixed.

By: Leif Madsen (lmadsen) 2010-03-17 10:47:08

Suspending this issue due to lack of feedback from the reporter. If the reporter still has an issue on the latest release, please file a new issue.