Hi Tri. In case you haven't solved the problem yet, here is one suggestion.
There might be several files that define FD_SETSIZE and gcc might be using the one that is not edited. To check if it is indeed the case, please find the line that outputs ev.o, while you are building the server. Replace -c in the corresponding gcc command with -E (to preprocess and not to compile) and open ev.o with a text editor. Then, search for FD_SETSIZE and check its value (my guess is, it will be 1024). A few lines above FD_SETSIZE, you should be able to see the actual header file included, where FD_SETSIZE comes from. And you should edit the FD_SETSIZE parameter in that header file. Of course, you need to rebuild the server from scratch after you do that. Please let me know if this works. -- Cansu ________________________________ From: Tri M. Nguyen [[email protected]] Sent: Saturday, June 22, 2013 5:50 AM To: Leonardo Piga Cc: [email protected] Subject: RE: Streaming benchmark: file limit exceeded I did, double checked that several times in fact. The error does strongly hint at that however, that perhaps the program is trying to access the array at location >1024 and gets a buffer overflow error. I'll try reducing the limit to something like 500 and see if it crashes there. Thanks, Tri ________________________________ From: Leonardo Piga [[email protected]] Sent: Friday, June 21, 2013 11:46 PM To: Tri M. Nguyen Cc: [email protected] Subject: Re: Streaming benchmark: file limit exceeded Hi Tri, Have you tried this? http://www.mail-archive.com/[email protected]/msg00048.html Best, -- Leonardo Leonardo On Sat, Jun 22, 2013 at 12:41 AM, Tri M. Nguyen <[email protected]<mailto:[email protected]>> wrote: Hi guys, I'm having trouble running the server beyond the 1024 FD limit. Somehow the server is crashing at that point: http://i.imgur.com/6a1V1i9.png (detail log below) I followed this guide to increase the FD limit http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/. Before I did this the program would complains and exits (instead of crashing like in the screenshot). Help? Tri Detail log: RTP-Conns RTSP-Conns HTTP-Conns kBits/Sec Pkts/Sec RTP-Playing AvgDelay CurMaxDelay MaxDelay AvgQuality NumThinned Time 426 426 0 35053 9968 426 -5 11 11 0 0 2013-06-22 03:00:10 466 466 0 37731 10891 466 -6 11 11 0 0 2013-06-22 03:00:11 506 506 0 42282 12023 506 -6 11 11 0 0 2013-06-22 03:00:12 546 546 0 47014 13139 546 -5 11 11 0 0 2013-06-22 03:00:13 586 586 0 50896 14159 585 -5 11 11 0 0 2013-06-22 03:00:14 626 626 0 54496 15166 626 -5 11 11 0 0 2013-06-22 03:00:15 666 666 0 57635 16133 666 -5 11 11 0 0 2013-06-22 03:00:16 702 703 0 60482 17227 702 -5 11 11 0 0 2013-06-22 03:00:17 746 746 0 64138 18283 745 -5 11 11 0 0 2013-06-22 03:00:18 786 786 0 70951 19609 785 -5 11 11 0 0 2013-06-22 03:00:19 RTP-Conns RTSP-Conns HTTP-Conns kBits/Sec Pkts/Sec RTP-Playing AvgDelay CurMaxDelay MaxDelay AvgQuality NumThinned Time 826 826 0 76213 20746 825 -5 11 11 0 0 2013-06-22 03:00:20 866 866 0 79782 21742 865 -5 11 11 0 0 2013-06-22 03:00:21 906 906 0 82981 22732 905 -5 11 11 0 0 2013-06-22 03:00:22 *** buffer overflow detected ***: /usr/local/sbin/DarwinStreamingServer terminated ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7ffff6cb683c] /lib/x86_64-linux-gnu/libc.so.6(+0x109710)[0x7ffff6cb5710] /lib/x86_64-linux-gnu/libc.so.6(+0x10a7ce)[0x7ffff6cb67ce] /usr/local/sbin/DarwinStreamingServer[0x496a27] /usr/local/sbin/DarwinStreamingServer[0x48c1ae] /usr/local/sbin/DarwinStreamingServer[0x494738] /usr/local/sbin/DarwinStreamingServer[0x48bcd4] /usr/local/sbin/DarwinStreamingServer[0x4904ff] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7ffff6f72e9a] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ffff6c9fccd] ======= Memory map: ======== 00400000-004d1000 r-xp 00000000 07:00 201 /usr/local/sbin/DarwinStreamingServer 004d2000-004d7000 r--p 000d1000 07:00 201 /usr/local/sbin/DarwinStreamingServer 004d7000-004e2000 rw-p 000d6000 07:00 201 /usr/local/sbin/DarwinStreamingServer 004e2000-005d9000 rw-p 00000000 00:00 0 [heap] 7fffd8000000-7fffdb641000 rw-p 00000000 00:00 0 7fffdb641000-7fffdc000000 ---p 00000000 00:00 0 7fffe0000000-7fffe0021000 rw-p 00000000 00:00 0 7fffe0021000-7fffe4000000 ---p 00000000 00:00 0 7fffe4000000-7fffe447c000 rw-p 00000000 00:00 0 7fffe447c000-7fffe8000000 ---p 00000000 00:00 0 7fffe8000000-7fffe8c08000 rw-p 00000000 00:00 0 7fffe8c08000-7fffec000000 ---p 00000000 00:00 0 7fffef9cd000-7fffef9d9000 r-xp 00000000 07:00 1655 /lib/x86_64-linux-gnu/libnss_files-2.15.so<http://libnss_files-2.15.so> 7fffef9d9000-7fffefbd8000 ---p 0000c000 07:00 1655 /lib/x86_64-linux-gnu/libnss_files-2.15.so<http://libnss_files-2.15.so> 7fffefbd8000-7fffefbd9000 r--p 0000b000 07:00 1655 /lib/x86_64-linux-gnu/libnss_files-2.15.so<http://libnss_files-2.15.so> 7fffefbd9000-7fffefbda000 rw-p 0000c000 07:00 1655 /lib/x86_64-linux-gnu/libnss_files-2.15.so<http://libnss_files-2.15.so> 7fffefbda000-7fffefbe4000 r-xp 00000000 07:00 1648 /lib/x86_64-linux-gnu/libnss_nis-2.15.so<http://libnss_nis-2.15.so> 7fffefbe4000-7fffefde4000 ---p 0000a000 07:00 1648 /lib/x86_64-linux-gnu/libnss_nis-2.15.so<http://libnss_nis-2.15.so> 7fffefde4000-7fffefde5000 r--p 0000a000 07:00 1648 /lib/x86_64-linux-gnu/libnss_nis-2.15.so<http://libnss_nis-2.15.so> 7fffefde5000-7fffefde6000 rw-p 0000b000 07:00 1648 /lib/x86_64-linux-gnu/libnss_nis-2.15.so<http://libnss_nis-2.15.so> 7fffefde6000-7fffefdfd000 r-xp 00000000 07:00 4181 /lib/x86_64-linux-gnu/libnsl-2.15.so<http://libnsl-2.15.so> 7fffefdfd000-7fffefffc000 ---p 00017000 07:00 4181 /lib/x86_64-linux-gnu/libnsl-2.15.so<http://libnsl-2.15.so> 7fffefffc000-7fffefffd000 r--p 00016000 07:00 4181 /lib/x86_64-linux-gnu/libnsl-2.15.so<http://libnsl-2.15.so> 7fffefffd000-7fffefffe000 rw-p 00017000 07:00 4181 /lib/x86_64-linux-gnu/libnsl-2.15.so<http://libnsl-2.15.so> 7fffefffe000-7ffff0000000 rw-p 00000000 00:00 0 7ffff0000000-7ffff0898000 rw-p 00000000 00:00 0 7ffff0898000-7ffff4000000 ---p 00000000 00:00 0 7ffff419e000-7ffff41a6000 r-xp 00000000 07:00 4190 /lib/x86_64-linux-gnu/libnss_compat-2.15.so<http://libnss_compat-2.15.so> 7ffff41a6000-7ffff43a5000 ---p 00008000 07:00 4190 /lib/x86_64-linux-gnu/libnss_compat-2.15.so<http://libnss_compat-2.15.so> 7ffff43a5000-7ffff43a6000 r--p 00007000 07:00 4190 /lib/x86_64-linux-gnu/libnss_compat-2.15.so<http://libnss_compat-2.15.so> 7ffff43a6000-7ffff43a7000 rw-p 00008000 07:00 4190 /lib/x86_64-linux-gnu/libnss_compat-2.15.so<http://libnss_compat-2.15.so> 7ffff43a7000-7ffff43a8000 ---p 00000000 00:00 0 7ffff43a8000-7ffff4ba8000 rw-p 00000000 00:00 0 [stack:48775] 7ffff4ba8000-7ffff4ba9000 ---p 00000000 00:00 0 7ffff4ba9000-7ffff53a9000 rw-p 00000000 00:00 0 [stack:48774] 7ffff53a9000-7ffff53aa000 ---p 00000000 00:00 0 7ffff53aa000-7ffff5baa000 rw-p 00000000 00:00 0 [stack:48773] 7ffff5baa000-7ffff5bab000 ---p 00000000 00:00 0 7ffff5bab000-7ffff63ab000 rw-p 00000000 00:00 0 [stack:48772] 7ffff63ab000-7ffff63ac000 ---p 00000000 00:00 0 7ffff63ac000-7ffff6bac000 rw-p 00000000 00:00 0 [stack:48771] 7ffff6bac000-7ffff6d61000 r-xp 00000000 07:00 4191 /lib/x86_64-linux-gnu/libc-2.15.so<http://libc-2.15.so> 7ffff6d61000-7ffff6f60000 ---p 001b5000 07:00 4191 /lib/x86_64-linux-gnu/libc-2.15.so<http://libc-2.15.so> 7ffff6f60000-7ffff6f64000 r--p 001b4000 07:00 4191 /lib/x86_64-linux-gnu/libc-2.15.so<http://libc-2.15.so> 7ffff6f64000-7ffff6f66000 rw-p 001b8000 07:00 4191 /lib/x86_64-linux-gnu/libc-2.15.so<http://libc-2.15.so> 7ffff6f66000-7ffff6f6b000 rw-p 00000000 00:00 0 7ffff6f6b000-7ffff6f83000 r-xp 00000000 07:00 1653 /lib/x86_64-linux-gnu/libpthread-2.15.so<http://libpthread-2.15.so> 7ffff6f83000-7ffff7182000 ---p 00018000 07:00 1653 /lib/x86_64-linux-gnu/libpthread-2.15.so<http://libpthread-2.15.so> 7ffff7182000-7ffff7183000 r--p 00017000 07:00 1653 /lib/x86_64-linux-gnu/libpthread-2.15.so<http://libpthread-2.15.so> 7ffff7183000-7ffff7184000 rw-p 00018000 07:00 1653 /lib/x86_64-linux-gnu/libpthread-2.15.so<http://libpthread-2.15.so> 7ffff7184000-7ffff7188000 rw-p 00000000 00:00 0 7ffff7188000-7ffff719d000 r-xp 00000000 07:00 2049 /lib/x86_64-linux-gnu/libgcc_s.so.1 7ffff719d000-7ffff739c000 ---p 00015000 07:00 2049 /lib/x86_64-linux-gnu/libgcc_s.so.1 7ffff739c000-7ffff739d000 r--p 00014000 07:00 2049 /lib/x86_64-linux-gnu/libgcc_s.so.1 7ffff739d000-7ffff739e000 rw-p 00015000 07:00 2049 /lib/x86_64-linux-gnu/libgcc_s.so.1 7ffff739e000-7ffff73a7000 r-xp 00000000 07:00 4187 /lib/x86_64-linux-gnu/libcrypt-2.15.so<http://libcrypt-2.15.so> 7ffff73a7000-7ffff75a7000 ---p 00009000 07:00 4187 /lib/x86_64-linux-gnu/libcrypt-2.15.so<http://libcrypt-2.15.so> 7ffff75a7000-7ffff75a8000 r--p 00009000 07:00 4187 /lib/x86_64-linux-gnu/libcrypt-2.15.so<http://libcrypt-2.15.so> 7ffff75a8000-7ffff75a9000 rw-p 0000a000 07:00 4187 /lib/x86_64-linux-gnu/libcrypt-2.15.so<http://libcrypt-2.15.so> 7ffff75a9000-7ffff75d7000 rw-p 00000000 00:00 0 7ffff75d7000-7ffff76d2000 r-xp 00000000 07:00 4184 /lib/x86_64-linux-gnu/libm-2.15.so<http://libm-2.15.so> 7ffff76d2000-7ffff78d1000 ---p 000fb000 07:00 4184 /lib/x86_64-linux-gnu/libm-2.15.so<http://libm-2.15.so> 7ffff78d1000-7ffff78d2000 r--p 000fa000 07:00 4184 /lib/x86_64-linux-gnu/libm-2.15.so<http://libm-2.15.so> 7ffff78d2000-7ffff78d3000 rw-p 000fb000 07:00 4184 /lib/x86_64-linux-gnu/libm-2.15.so<http://libm-2.15.so> 7ffff78d3000-7ffff79b8000 r-xp 00000000 07:00 7242 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17 7ffff79b8000-7ffff7bb7000 ---p 000e5000 07:00 7242 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17 7ffff7bb7000-7ffff7bbf000 r--p 000e4000 07:00 7242 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17 7ffff7bbf000-7ffff7bc1000 rw-p 000ec000 07:00 7242 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17 7ffff7bc1000-7ffff7bd6000 rw-p 00000000 00:00 0 7ffff7bd6000-7ffff7bd8000 r-xp 00000000 07:00 4189 /lib/x86_64-linux-gnu/libdl-2.15.so<http://libdl-2.15.so> 7ffff7bd8000-7ffff7dd8000 ---p 00002000 07:00 4189 /lib/x86_64-linux-gnu/libdl-2.15.so<http://libdl-2.15.so> 7ffff7dd8000-7ffff7dd9000 r--p 00002000 07:00 4189 /lib/x86_64-linux-gnu/libdl-2.15.so<http://libdl-2.15.so> 7ffff7dd9000-7ffff7dda000 rw-p 00003000 07:00 4189 /lib/x86_64-linux-gnu/libdl-2.15.so<http://libdl-2.15.so> 7ffff7dda000-7ffff7dfc000 r-xp 00000000 07:00 1659 /lib/x86_64-linux-gnu/ld-2.15.so<http://ld-2.15.so> 7ffff7f2c000-7ffff7ff6000 rw-p 00000000 00:00 0 7ffff7ff6000-7ffff7ffb000 rw-p 00000000 00:00 0 7ffff7ffb000-7ffff7ffc000 r-xp 00000000 00:00 0 [vdso] 7ffff7ffc000-7ffff7ffd000 r--p 00022000 07:00 1659 /lib/x86_64-linux-gnu/ld-2.15.so<http://ld-2.15.so> 7ffff7ffd000-7ffff7fff000 rw-p 00023000 07:00 1659 /lib/x86_64-linux-gnu/ld-2.15.so<http://ld-2.15.so> 7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0 [stack] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted
