Summary:ASTERISK-14913: Segfault in sip_send_mwi_to_peer
Reporter:fhackenberger (fhackenberger)Labels:
Date Opened:2009-09-30 04:38:52Date Closed:2011-06-07 14:01:02
Versions:Frequency of
Environment:Attachments:( 0) bt.txt
Description:#0  0x080804f6 in INTERNAL_OBJ (user_data=0x3a6d6f72) at astobj2.c:115
       in astobj2.c
#0  0x080804f6 in INTERNAL_OBJ (user_data=0x3a6d6f72) at astobj2.c:115
#1  0x08080755 in _ao2_ref (user_data=0x3a6d6f72, delta=1) at astobj2.c:246
#2  0xb5ed6efd in dialog_ref (p=0x3a6d6f72,
   tag=0xb5f4e674 "sip_send_mwi_to_peer: Setting dialog ptr p from peer->mwipvt-- should this be done?") at chan_sip.c:1439
#3  0xb5f2c452 in sip_send_mwi_to_peer (peer=0x8859b30, event=0xb3fb8018, cache_only=0) at chan_sip.c:20651
#4  0xb5f00dbf in mwi_event_cb (event=0xb3fb8018, userdata=0x8859b30) at chan_sip.c:11406
ASTERISK-1  0x080bbe6a in handle_event (data=0xb3f6e050) at event.c:1134
ASTERISK-2  0x0814048b in tps_processing_function (data=0x81dc5b8) at taskprocessor.c:310
ASTERISK-3  0x0814d51f in dummy_start (data=0x81dc658) at utils.c:968
ASTERISK-4  0xb7d854fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
ASTERISK-5  0xb6fa6e5e in clone () from /lib/tls/i686/cmov/libc.so.6


The asterisk version I'm using is r209515 from the 1.6.1 branch. I did not use the version (which was the newest when I set up the system), because I needed the T.38 fixes which went in just after was released. If necessary, I can recompile and try to reproduce. But that would be quite some effort on the production system, especially as the segfault is not reproducible every time.
Comments:By: Leif Madsen (lmadsen) 2009-09-30 09:02:01

I'll acknowledge this for now, although it may be beneficial to reproduce this on a newer version, but I have a feeling this is probably the same on a newer version as I don't remember any issues like this one. I'll take a look though and see if anything might be related.

By: Joshua C. Colp (jcolp) 2009-11-04 15:33:44.000-0600

It would still be nice to confirm this is an issue under the latest version. Can you please do so and report back?

By: fhackenberger (fhackenberger) 2009-11-05 02:50:08.000-0600

I'm sorry lmadsen, but I have not encountered this segfault again, although the asterisk version I'm using is still the same.

By: Leif Madsen (lmadsen) 2009-11-05 08:57:01.000-0600

I'm going to close this for now, but if you end up getting this again, please re-open the issue and we can take it from there. Ideally you'll have a backtrace on a newer version of Asterisk with DONT_OPTIMIZE enabled in menuselect.