[asterisk-bugs] [Asterisk 0017128]: [patch] endless cycle in ast_waitfor_nandfds() for big timeouts

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 4 18:55:43 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17128 
====================================================================== 
Reported By:                under
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17128
Category:                   Core/Channels
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Target Version:             1.4.33
Asterisk Version:           1.6.0.26 
JIRA:                       SWP-1251 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-04-02 03:10 CDT
Last Modified:              2010-05-04 18:55 CDT
====================================================================== 
Summary:                    [patch] endless cycle in ast_waitfor_nandfds() for
big timeouts
Description: 
Subj. happens when we call Dial() with really large answer timeout.
After this we see that asterisk eats all CPU.
Problem seems to happen due to multiplication (by 1000) overflow. 
====================================================================== 

---------------------------------------------------------------------- 
 (0121389) svnbot (reporter) - 2010-05-04 18:55
 https://issues.asterisk.org/view.php?id=17128#c121389 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 261096

_U  branches/1.6.0/
U   branches/1.6.0/main/channel.c

------------------------------------------------------------------------
r261096 | tilghman | 2010-05-04 18:55:42 -0500 (Tue, 04 May 2010) | 25
lines

Merged revisions 261095 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r261095 | tilghman | 2010-05-04 18:51:52 -0500 (Tue, 04 May 2010) | 18
lines
  
  Merged revisions 261093-261094 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r261093 | tilghman | 2010-05-04 18:36:53 -0500 (Tue, 04 May 2010) | 7
lines
    
    Protect against overflow, when calculating how long to wait for a
frame.
    
    (closes issue https://issues.asterisk.org/view.php?id=17128)
     Reported by: under
     Patches: 
           d.diff uploaded by under (license 914)
  ........
    r261094 | tilghman | 2010-05-04 18:47:08 -0500 (Tue, 04 May 2010) | 2
lines
    
    Add a tiny corner case to the previous commit
  ........
................

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-04 18:55 svnbot         Checkin                                      
2010-05-04 18:55 svnbot         Note Added: 0121389                          
======================================================================




More information about the asterisk-bugs mailing list