Summary: | ASTERISK-17370: [patch] FD 32767 exceeds the maximum size of ast_fdset | ||
Reporter: | Maciej Krajewski (jamicque) | Labels: | |
Date Opened: | 2011-02-09 02:56:45.000-0600 | Date Closed: | 2011-04-26 14:38:43 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20110423__issue18773.diff.txt | |
Description: | When i try to run asterisk with changed ulimit, I have an error message during the start, here is the example: root@HOME:~# ulimit -n 32768 -c unlimited root@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@HOME:~# | ||
Comments: | By: Eugene M. Zheganin (drookie) 2011-03-02 08:35:28.000-0600 Same here, on 1.6.2.16.2, FreeBSD 8.2/i386. Can be easilly corrected by running asterisk as root (still complains but runs). By: Maciej Krajewski (jamicque) 2011-03-02 08:45:08.000-0600 I'm running it as a root, it works, however this info is annoying By: Chris Maciejewski (chris-mac) 2011-04-08 09:12:28 Hi, I am getting the same error on Ubuntu 8.04 with Asterisk 1.8.3.2 It runs, but every time I connect to the console it throws: FD 32767 exceeds the maximum size of ast_fdset! Asterisk is started by root with the following command: asterisk -U asterisk -G asterisk Is this error message something to worry about? By: Igor Olhovskiy (samael28) 2011-04-20 08:02:40 Confirmed on 1.4.40 and 1.6.2.17.2. Asterisk runs as root. By: Sergey Dremlyuzhenko (sergeykrd) 2011-04-22 02:07:32 This error happens for me on 32bit Linux system and does not happens on 64bit systems By: Chris Maciejewski (chris-mac) 2011-04-24 07:39:56 On Ubuntu 8.0.4 32bit patched 1.8.3.3 fails to compile with the following error: [CC] asterisk.c -> asterisk.o asterisk.c: In function ‘main’: asterisk.c:3403: error: ‘ast_FDMAX’ undeclared (first use in this function) asterisk.c:3403: error: (Each undeclared identifier is reported only once asterisk.c:3403: error: for each function it appears in.) make[1]: *** [asterisk.o] Error 1 make: *** [main] Error 2 By: Chris Maciejewski (chris-mac) 2011-04-24 10:46:41 On Ubuntu 8.0.4 32bit patched trunk compiles OK and there is no more "FD 32767 exceeds the maximum size of ast_fdset!" error. By: Maciej Krajewski (jamicque) 2011-04-26 08:20:34 I have the same error as chris-mac on 1.6.16.2, asterisk.c: In function 'main': asterisk.c:3374: error: 'ast_FDMAX' undeclared (first use in this function) asterisk.c:3374: error: (Each undeclared identifier is reported only once asterisk.c:3374: error: for each function it appears in.) make[1]: *** [asterisk.o] B??d 1 make: *** [main] B??d 2 By: Digium Subversion (svnbot) 2011-04-26 14:18:47 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 ASTERISK-17370) 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 By: Digium Subversion (svnbot) 2011-04-26 14:22:53 Repository: asterisk Revision: 315502 _U branches/1.6.2/ U branches/1.6.2/include/asterisk/select.h ------------------------------------------------------------------------ r315502 | tilghman | 2011-04-26 14:22:53 -0500 (Tue, 26 Apr 2011) | 21 lines Merged revisions 315501 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ 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 ASTERISK-17370) 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=315502 By: Digium Subversion (svnbot) 2011-04-26 14:32:51 Repository: asterisk Revision: 315503 _U branches/1.8/ U branches/1.8/include/asterisk/select.h ------------------------------------------------------------------------ r315503 | tilghman | 2011-04-26 14:32:51 -0500 (Tue, 26 Apr 2011) | 28 lines Merged revisions 315502 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ................ r315502 | tilghman | 2011-04-26 14:22:52 -0500 (Tue, 26 Apr 2011) | 21 lines Merged revisions 315501 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ 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 ASTERISK-17370) 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=315503 By: Digium Subversion (svnbot) 2011-04-26 14:38:42 Repository: asterisk Revision: 315504 _U trunk/ U trunk/include/asterisk/select.h ------------------------------------------------------------------------ r315504 | tilghman | 2011-04-26 14:38:42 -0500 (Tue, 26 Apr 2011) | 35 lines Merged revisions 315503 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ................ r315503 | tilghman | 2011-04-26 14:32:50 -0500 (Tue, 26 Apr 2011) | 28 lines Merged revisions 315502 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ................ r315502 | tilghman | 2011-04-26 14:22:52 -0500 (Tue, 26 Apr 2011) | 21 lines Merged revisions 315501 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ 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 ASTERISK-17370) 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=315504 |