[asterisk-bugs] [Asterisk 0014920]: Segmentation fault after almost exactly ~ 500 finished SIP over TCP calls.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 21 11:15:06 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14920 
====================================================================== 
Reported By:                vrban
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   14920
Category:                   Channels/chan_sip/TCP-TLS
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 188895 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-04-16 20:35 CDT
Last Modified:              2010-07-21 11:15 CDT
====================================================================== 
Summary:                    Segmentation fault after almost exactly ~ 500
finished SIP over TCP calls.
Description: 
I reproducibility get a Segmentation fault after almost exactly ~ 500 SIP
over TCP calls.

To ensure this is TCP related i have done the same test with SIP over UDP
-> no crash.


The gdb output:

astmm.c line 132 (__ast_alloc_region): '&reglock' really deep reentrancy!

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb29ffb90 (LWP 13758)]
0x080852be in __ast_pthread_mutex_unlock (filename=0x81b846c "astmm.c",
lineno=135, func=0x81b8759 "__ast_alloc_region", mutex_name=0x81b84d1
"&reglock", 
    t=0x8215560) at
/home/systemvi/src/asterisk-trunk/include/asterisk/lock.h:685
685		if (lt->reentrancy && (lt->thread[lt->reentrancy-1] !=
pthread_self())) {
====================================================================== 

---------------------------------------------------------------------- 
 (0124792) svnbot (reporter) - 2010-07-21 11:15
 https://issues.asterisk.org/view.php?id=14920#c124792 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 278465

U   trunk/res/res_timing_pthread.c

------------------------------------------------------------------------
r278465 | russell | 2010-07-21 11:14:59 -0500 (Wed, 21 Jul 2010) | 41
lines

Use poll() instead of select() in res_timing_pthread to avoid stack
corruption.

This code did not properly check FD_SETSIZE to ensure that it did not try
to
select() on fds that were too large.  Switching to poll() removes the
limitation
on the maximum fd value.

(closes issue https://issues.asterisk.org/view.php?id=15915)
Reported by: keiron

(closes issue https://issues.asterisk.org/view.php?id=17187)
Reported by: Eddie Edwards

(closes issue https://issues.asterisk.org/view.php?id=16494)
Reported by: Hubguru

(closes issue https://issues.asterisk.org/view.php?id=15731)
Reported by: flop

(closes issue https://issues.asterisk.org/view.php?id=12917)
Reported by: falves11

(closes issue https://issues.asterisk.org/view.php?id=14920)
Reported by: vrban

(closes issue https://issues.asterisk.org/view.php?id=17199)
Reported by: aleksey2000

(closes issue https://issues.asterisk.org/view.php?id=15406)
Reported by: kowalma

(closes issue https://issues.asterisk.org/view.php?id=17438)
Reported by: dcabot

(closes issue https://issues.asterisk.org/view.php?id=17325)
Reported by: glwgoes

(closes issue https://issues.asterisk.org/view.php?id=17118)
Reported by: erikje

possibly other issues, too ...

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-21 11:15 svnbot         Checkin                                      
2010-07-21 11:15 svnbot         Note Added: 0124792                          
======================================================================




More information about the asterisk-bugs mailing list