[asterisk-bugs] [Asterisk 0018773]: [patch] FD 32767 exceeds the maximum size of ast_fdset

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 26 14:18:48 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18773 
====================================================================== 
Reported By:                jamicque
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18773
Category:                   Core/General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.2.16.1 
JIRA:                       SWP-3084 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-09 02:56 CST
Last Modified:              2011-04-26 14:18 CDT
====================================================================== 
Summary:                    [patch] FD 32767 exceeds the maximum size of
ast_fdset
Description: 
When i try to run asterisk with changed ulimit, I have an error message
during the start, here is the example:
root at HOME:~# ulimit -n 32768 -c unlimited
root at HOME:~# asterisk
FD 32767 exceeds the maximum size of ast_fdset!
Asterisk already running on /var/run/asterisk.ctl.  Use 'asterisk -r' to
connect.
root at HOME:~#
====================================================================== 

---------------------------------------------------------------------- 
 (0134146) svnbot (reporter) - 2011-04-26 14:18
 https://issues.asterisk.org/view.php?id=18773#c134146 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 315501

U   branches/1.4/include/asterisk/select.h

------------------------------------------------------------------------
r315501 | tilghman | 2011-04-26 14:18:46 -0500 (Tue, 26 Apr 2011) | 14
lines

Fix the bounds-checking code.

The code that set the bit within the select bitfield was correct, but the
bounds-checking code was not.  The change to that line uses the new
_bitsize
macro for clarity.  Also, FD_ZERO macro did not zero-out anything but the
first word of the bitfield, so this could have caused problems with
modules
using that macro with the expanded bitfield.

(closes issue https://issues.asterisk.org/view.php?id=18773)
 Reported by: jamicque
 Patches: 
       20110423__issue18773.diff.txt uploaded by tilghman (license 14)
 Tested by: chris-mac

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-26 14:18 svnbot         Checkin                                      
2011-04-26 14:18 svnbot         Note Added: 0134146                          
======================================================================




More information about the asterisk-bugs mailing list