I guess, I found the solution for my system (ubuntu 12.04 / 64bit) You have to change __FD_SETSIZE in /usr/include/linux/posix_types.h because it overwrites the one set in bits/typesizes.h
Or if you just want to suppress the error: Comment out the following line in sys/selects.h //# include <bits/select2.h> => does the sanity checking Subrata On Tue, Oct 28, 2014 at 4:23 PM, Subrata Mitra <[email protected]> wrote: > Hi, > After further debugging I found it is having buffer overflow when trying > to insert 1025th fd. But as mentioned in my previous email, my FD_SETSIZE > is set to 65536. Any idea what is going wrong? > ...... > #6 0x00000000004c6c27 in select_modwatch (req=0x7fffe4025630, which=1) at > ev.cpp:188 > 188 FD_SET(req->er_handle, &sReadSet); > (gdb) p req->er_handle > $1 = 1024 > > > Regards, > Subrata > > On Mon, Oct 27, 2014 at 8:49 PM, Subrata Mitra <[email protected]> > wrote: > >> Based on the suggestion from previous threads related to this error, I >> also compiled with -E and found that FD size was indeed increased: #define >> FD_SETSIZE __FD_SETSIZE and #define __FD_SETSIZE 65536 >> Therefore previous suggestions present in the mail archive did not solve >> my issue. >> >> >> On Mon, Oct 27, 2014 at 6:53 PM, Subrata Mitra <[email protected]> >> wrote: >> >>> Hi, >>> >>> While running Media streaming benchmark using the following command >>> line, I am getting the buffer overflow error: >>> /usr/local/sbin/DarwinStreamingServer -dDS 1 >>> >>> I am running on a Ubuntu 12.04. >>> I have followed all the steps in your instructions. Applied the patches >>> and set the FD size in /usr/include/x86_64-linux-gnu/bits/typesizes.h >>> >>> Can you please let me know how to fix this? >>> >>> >>> *** buffer overflow detected ***: /usr/local/sbin/DarwinStreamingServer >>> terminated >>> ======= Backtrace: ========= >>> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f3fac040e67] >>> /lib/x86_64-linux-gnu/libc.so.6(+0x109d60)[0x7f3fac03fd60] >>> /lib/x86_64-linux-gnu/libc.so.6(+0x10ae1e)[0x7f3fac040e1e] >>> /usr/local/sbin/DarwinStreamingServer[0x4a0967] >>> /usr/local/sbin/DarwinStreamingServer[0x4961b1] >>> /usr/local/sbin/DarwinStreamingServer[0x49e50e] >>> /usr/local/sbin/DarwinStreamingServer[0x495cd7] >>> >>> /usr/local/sbin/DarwinStreamingServer(_ZN8OSThread6_EntryEPv+0x2f)[0x49a49f] >>> /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f3fac512e9a] >>> /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f3fac02a31d] >>> ======= Memory map: ======== >>> 00400000-004db000 r-xp 00000000 fd:01 673466 >>> /usr/local/sbin/DarwinStreamingServer >>> 006db000-006e0000 r--p 000db000 fd:01 673466 >>> /usr/local/sbin/DarwinStreamingServer >>> 006e0000-006eb000 rw-p 000e0000 fd:01 673466 >>> /usr/local/sbin/DarwinStreamingServer >>> 006eb000-00735000 rw-p 00000000 00:00 0 >>> 01708000-017a4000 rw-p 00000000 00:00 0 >>> [heap] >>> 7f3f8c000000-7f3f8c056000 rw-p 00000000 00:00 0 >>> 7f3f8c056000-7f3f90000000 ---p 00000000 00:00 0 >>> 7f3f94000000-7f3f941bb000 rw-p 00000000 00:00 0 >>> 7f3f941bb000-7f3f98000000 ---p 00000000 00:00 0 >>> 7f3f98000000-7f3f98223000 rw-p 00000000 00:00 0 >>> 7f3f98223000-7f3f9c000000 ---p 00000000 00:00 0 >>> 7f3f9c000000-7f3f9c021000 rw-p 00000000 00:00 0 >>> 7f3f9c021000-7f3fa0000000 ---p 00000000 00:00 0 >>> 7f3fa37ff000-7f3fa3800000 ---p 00000000 00:00 0 >>> 7f3fa3800000-7f3fa4000000 rw-p 00000000 00:00 0 >>> 7f3fa4000000-7f3fa4176000 rw-p 00000000 00:00 0 >>> 7f3fa4176000-7f3fa8000000 ---p 00000000 00:00 0 >>> 7f3fa96f6000-7f3fa9702000 r-xp 00000000 fd:01 2756645 >>> /lib/x86_64-linux-gnu/libnss_files-2.15.so >>> 7f3fa9702000-7f3fa9901000 ---p 0000c000 fd:01 2756645 >>> /lib/x86_64-linux-gnu/libnss_files-2.15.so >>> 7f3fa9901000-7f3fa9902000 r--p 0000b000 fd:01 2756645 >>> /lib/x86_64-linux-gnu/libnss_files-2.15.so >>> 7f3fa9902000-7f3fa9903000 rw-p 0000c000 fd:01 2756645 >>> /lib/x86_64-linux-gnu/libnss_files-2.15.so >>> 7f3fa9903000-7f3fa990d000 r-xp 00000000 fd:01 2756649 >>> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >>> 7f3fa990d000-7f3fa9b0d000 ---p 0000a000 fd:01 2756649 >>> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >>> 7f3fa9b0d000-7f3fa9b0e000 r--p 0000a000 fd:01 2756649 >>> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >>> 7f3fa9b0e000-7f3fa9b0f000 rw-p 0000b000 fd:01 2756649 >>> /lib/x86_64-linux-gnu/libnss_nis-2.15.so >>> 7f3fa9b0f000-7f3fa9b26000 r-xp 00000000 fd:01 2756661 >>> /lib/x86_64-linux-gnu/libnsl-2.15.so >>> 7f3fa9b26000-7f3fa9d25000 ---p 00017000 fd:01 2756661 >>> /lib/x86_64-linux-gnu/libnsl-2.15.so >>> 7f3fa9d25000-7f3fa9d26000 r--p 00016000 fd:01 2756661 >>> /lib/x86_64-linux-gnu/libnsl-2.15.so >>> 7f3fa9d26000-7f3fa9d27000 rw-p 00017000 fd:01 2756661 >>> /lib/x86_64-linux-gnu/libnsl-2.15.so >>> 7f3fa9d27000-7f3fa9d29000 rw-p 00000000 00:00 0 >>> 7f3fa9d29000-7f3fa9d31000 r-xp 00000000 fd:01 2756643 >>> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >>> 7f3fa9d31000-7f3fa9f30000 ---p 00008000 fd:01 2756643 >>> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >>> 7f3fa9f30000-7f3fa9f31000 r--p 00007000 fd:01 2756643 >>> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >>> 7f3fa9f31000-7f3fa9f32000 rw-p 00008000 fd:01 2756643 >>> /lib/x86_64-linux-gnu/libnss_compat-2.15.so >>> 7f3fa9f32000-7f3fa9f33000 ---p 00000000 00:00 0 >>> 7f3fa9f33000-7f3faa733000 rw-p 00000000 00:00 0 >>> 7f3faa733000-7f3faa734000 ---p 00000000 00:00 0 >>> 7f3faa734000-7f3faaf34000 rw-p 00000000 00:00 0 >>> 7f3faaf34000-7f3faaf35000 ---p 00000000 00:00 0 >>> 7f3faaf35000-7f3fab735000 rw-p 00000000 00:00 0 >>> 7f3fab735000-7f3fab736000 ---p 00000000 00:00 0 >>> 7f3fab736000-7f3fabf36000 rw-p 00000000 00:00 0 >>> 7f3fabf36000-7f3fac0eb000 r-xp 00000000 fd:01 2756641 >>> /lib/x86_64-linux-gnu/libc-2.15.so >>> 7f3fac0eb000-7f3fac2ea000 ---p 001b5000 fd:01 2756641 >>> /lib/x86_64-linux-gnu/libc-2.15.so >>> 7f3fac2ea000-7f3fac2ee000 r--p 001b4000 fd:01 2756641 >>> /lib/x86_64-linux-gnu/libc-2.15.so >>> 7f3fac2ee000-7f3fac2f0000 rw-p 001b8000 fd:01 2756641 >>> /lib/x86_64-linux-gnu/libc-2.15.so >>> 7f3fac2f0000-7f3fac2f5000 rw-p 00000000 00:00 0 >>> 7f3fac2f5000-7f3fac30a000 r-xp 00000000 fd:01 2752564 >>> /lib/x86_64-linux-gnu/libgcc_s.so.1 >>> 7f3fac30a000-7f3fac509000 ---p 00015000 fd:01 2752564 >>> /lib/x86_64-linux-gnu/libgcc_s.so.1 >>> 7f3fac509000-7f3fac50a000 r--p 00014000 fd:01 2752564 >>> /lib/x86_64-linux-gnu/libgcc_s.so.1 >>> 7f3fac50a000-7f3fac50b000 rw-p 00015000 fd:01 2752564 >>> /lib/x86_64-linux-gnu/libgcc_s.so.1 >>> 7f3fac50b000-7f3fac523000 r-xp 00000000 fd:01 2756650 >>> /lib/x86_64-linux-gnu/libpthread-2.15.so >>> 7f3fac523000-7f3fac722000 ---p 00018000 fd:01 2756650 >>> /lib/x86_64-linux-gnu/libpthread-2.15.so >>> 7f3fac722000-7f3fac723000 r--p 00017000 fd:01 2756650 >>> /lib/x86_64-linux-gnu/libpthread-2.15.so >>> 7f3fac723000-7f3fac724000 rw-p 00018000 fd:01 2756650 >>> /lib/x86_64-linux-gnu/libpthread-2.15.so >>> 7f3fac724000-7f3fac728000 rw-p 00000000 00:00 0 >>> 7f3fac728000-7f3fac731000 r-xp 00000000 fd:01 2756642 >>> /lib/x86_64-linux-gnu/libcrypt-2.15.so >>> 7f3fac731000-7f3fac931000 ---p 00009000 fd:01 2756642 >>> /lib/x86_64-linux-gnu/libcrypt-2.15.so >>> 7f3fac931000-7f3fac932000 r--p 00009000 fd:01 2756642 >>> /lib/x86_64-linux-gnu/libcrypt-2.15.so >>> 7f3fac932000-7f3fac933000 rw-p 0000a000 fd:01 2756642 >>> /lib/x86_64-linux-gnu/libcrypt-2.15.so >>> 7f3fac933000-7f3fac961000 rw-p 00000000 00:00 0 >>> 7f3fac961000-7f3faca5c000 r-xp 00000000 fd:01 2756652 >>> /lib/x86_64-linux-gnu/libm-2.15.so >>> 7f3faca5c000-7f3facc5b000 ---p 000fb000 fd:01 2756652 >>> /lib/x86_64-linux-gnu/libm-2.15.so >>> 7f3facc5b000-7f3facc5c000 r--p 000fa000 fd:01 2756652 >>> /lib/x86_64-linux-gnu/libm-2.15.so >>> 7f3facc5c000-7f3facc5d000 rw-p 000fb000 fd:01 2756652 >>> /lib/x86_64-linux-gnu/libm-2.15.so >>> 7f3facc5d000-7f3facd3f000 r-xp 00000000 fd:01 529407 >>> /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 >>> 7f3facd3f000-7f3facf3e000 ---p 000e2000 fd:01 529407 >>> /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 >>> 7f3facf3e000-7f3facf46000 r--p 000e1000 fd:01 529407 >>> /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 >>> 7f3facf46000-7f3facf48000 rw-p 000e9000 fd:01 529407 >>> /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 >>> 7f3facf48000-7f3facf5d000 rw-p 00000000 00:00 0 >>> 7f3facf5d000-7f3facf5f000 r-xp 00000000 fd:01 2756656 >>> /lib/x86_64-linux-gnu/libdl-2.15.so >>> 7f3facf5f000-7f3fad15f000 ---p 00002000 fd:01 2756656 >>> /lib/x86_64-linux-gnu/libdl-2.15.so >>> 7f3fad15f000-7f3fad160000 r--p 00002000 fd:01 2756656 >>> /lib/x86_64-linux-gnu/libdl-2.15.so >>> 7f3fad160000-7f3fad161000 rw-p 00003000 fd:01 2756656 >>> /lib/x86_64-linux-gnu/libdl-2.15.so >>> 7f3fad161000-7f3fad183000 r-xp 00000000 fd:01 2756653 >>> /lib/x86_64-linux-gnu/ld-2.15.so >>> 7f3fad362000-7f3fad368000 rw-p 00000000 00:00 0 >>> 7f3fad37c000-7f3fad383000 rw-p 00000000 00:00 0 >>> 7f3fad383000-7f3fad384000 r--p 00022000 fd:01 2756653 >>> /lib/x86_64-linux-gnu/ld-2.15.so >>> 7f3fad384000-7f3fad386000 rw-p 00023000 fd:01 2756653 >>> /lib/x86_64-linux-gnu/ld-2.15.so >>> 7fff9120e000-7fff9122f000 rw-p 00000000 00:00 0 >>> [stack] >>> 7fff91367000-7fff91368000 r-xp 00000000 00:00 0 >>> [vdso] >>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 >>> [vsyscall] >>> Aborted >>> >>> -- >>> Best Regards, >>> Subrata >>> >> >> >> >> -- >> Best Regards, >> Subrata >> > > > > -- > Best Regards, > Subrata > -- Best Regards, Subrata
