Summary: | ASTERISK-00976: segfault or deadlock when doing a few reloads | ||
Reporter: | geertn (geertn) | Labels: | |
Date Opened: | 2004-02-02 11:21:53.000-0600 | Date Closed: | 2004-09-25 02:56:59 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) debug_info_new_bt.txt ( 1) debug_info_new_cli.txt ( 2) debug_info.txt | |
Description: | See-ing messages to 0.0.0.0 (I thought that was fixed with the patch from OEJ to chan_sip?? When I did a few reloads I see the following at the CLI: -- Setting default indication country to 'nl' -- Reloading module 'res_adsi.so' (ADSI Resource) == Parsing '/etc/asterisk/adsi.conf': Found *CLI> Feb 2 18:06:58 WARNING[6151]: chan_sip.c:448 __sip_xmit: sip_xmit of 0x8117dcc (len 530) to 0.0.0.0 returned -1: Invalid argument Feb 2 18:06:59 WARNING[6151]: chan_sip.c:448 __sip_xmit: sip_xmit of 0x8118004 (len 591) to 0.0.0.0 returned -1: Invalid argument Ouch ... error while writing audio data: : Broken pipe Segmentation fault I reproduced this twice. The messages to 0.0.0.0 did not appear but only after the reload. I tried to reproduce this a third time, but then I came into a deadlock. The fourth time also a deadlock. The problems started after the latest cvs update (maybe the 0.0.0.0 messages patch from oej & ww?) I have a backtrace attached (debug_info.txt). | ||
Comments: | By: Brian West (bkw918) 2004-02-02 12:40:44.000-0600 Ok can recreate this one: (gdb) bt full #0 0x40165f4e in malloc_consolidate () from /lib/libc.so.6 No symbol table info available. #1 0x40165e5b in _int_free () from /lib/libc.so.6 No symbol table info available. #2 0x40164bec in free () from /lib/libc.so.6 No symbol table info available. #3 0x408306bc in __sip_destroy (p=0x121b0, lockowner=1) at chan_sip.c:1083 cur = (struct sip_pvt *) 0xb2670800 prev = (struct sip_pvt *) 0x40b42448 cp = (struct sip_pkt *) 0x40b42448 #4 0x40838b5a in do_monitor (data=0x0) at chan_sip.c:5710 res = 1085604032 sip = (struct sip_pvt *) 0x40b500c0 peer = (struct sip_peer *) 0x40b500c0 t = 1075746354 fastrestart = 0 lastpeernum = -1 curpeernum = 1 ASTERISK-1 0x40023bd0 in pthread_start_thread () from /lib/libpthread.so.0 No symbol table info available. By: Brian West (bkw918) 2004-02-02 14:47:05.000-0600 fixed in cvs... I have tested it on my system it no longer crashes. By: geertn (geertn) 2004-02-02 16:01:26.000-0600 I get still crashes. Will attach backtrace and CLI output. By: geertn (geertn) 2004-02-02 18:04:31.000-0600 Solved after kram making patches to chan_sip. Thanks kram! Please resolve this bug.. By: Brian West (bkw918) 2004-02-02 18:22:28.000-0600 Finally fixed in cvs :P |