No subject


Sun Jul 19 19:54:31 CDT 2009


(dialog=0x378ef268, t=1272709274) at
asterisk/channels/chan_sip.c:20395
20395                                   ast_log(LOG_NOTICE, "Disconnecting
call '%s' for lack of RTP activity in %ld seconds\n",
(gdb) bt
https://issues.asterisk.org/view.php?id=0  0x2b233d07 in check_rtp_timeout
(dialog=0x378ef268, t=1272709274) at
asterisk/channels/chan_sip.c:20395
https://issues.asterisk.org/view.php?id=1  0x2b2340f5 in do_monitor (data=0x0)
at
asterisk/channels/chan_sip.c:20469
https://issues.asterisk.org/view.php?id=2  0x0816e142 in dummy_start
(data=0x294e96e8) at
asterisk/main/utils.c:861
https://issues.asterisk.org/view.php?id=3  0x282176ff in pthread_getprio () from
/lib/libthr.so.3
https://issues.asterisk.org/view.php?id=4  0x00000000 in ?? ()
(gdb) fr 0
https://issues.asterisk.org/view.php?id=0  0x2b233d07 in check_rtp_timeout
(dialog=0x378ef268, t=1272709274) at
asterisk/channels/chan_sip.c:20395
20395                                   ast_log(LOG_NOTICE, "Disconnecting
call '%s' for lack of RTP activity in %ld seconds\n",
(gdb) p dialog
$2 = (struct sip_pvt *) 0x378ef268
(gdb) p dialog->owner    
$4 = (struct ast_channel *) 0x0
(gdb) p dialog->owner->name
Cannot access memory at address 0xc

====================================================================== 

---------------------------------------------------------------------- 
 (0122185) svnbot (reporter) - 2010-05-19 14:21
 https://issues.asterisk.org/view.php?id=17271#c122185 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 264331

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r264331 | dvossel | 2010-05-19 14:21:04 -0500 (Wed, 19 May 2010) | 13
lines

fixes crash in check_rtp_timeout

During deadlock avoidance the sip dialog pvt is locked and
unlocked.  When this occurs we have no guarantee the pvt's owner
is still valid.  We were trying to access the pvt's owner after
this without checking to see if it still existed first. 

(closes issue https://issues.asterisk.org/view.php?id=17271)
Reported by: under
Patches:
      check_rtp_timeout.diff uploaded by under (license 914)
Tested by: dvossel

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=264331 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-19 14:21 svnbot         Checkin                                      
2010-05-19 14:21 svnbot         Note Added: 0122185                          
======================================================================




More information about the asterisk-bugs mailing list