Hi guys, i been running a little ruby program lately and this is what
happens after a while:

-note (did set ulimit -n 20000 and also done more modifications to
increase opened files limit)



*** buffer overflow detected ***: ruby terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7eff910d3807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7eff910d2700]
/lib/x86_64-linux-gnu/libc.so.6(+0x10a7be)[0x7eff910d37be]
/usr/lib/libruby-1.9.1.so.1.9(rb_fd_set+0x20)[0x7eff914e1b90]
/usr/lib/libruby-1.9.1.so.1.9(+0x778ee)[0x7eff913ff8ee]
/usr/lib/libruby-1.9.1.so.1.9(rb_ensure+0xbb)[0x7eff913e444b]
/usr/lib/libruby-1.9.1.so.1.9(+0x75077)[0x7eff913fd077]
/usr/lib/libruby-1.9.1.so.1.9(+0x14ebe1)[0x7eff914d6be1]
/usr/lib/libruby-1.9.1.so.1.9(+0x145b52)[0x7eff914cdb52]
/usr/lib/libruby-1.9.1.so.1.9(+0x14b55d)[0x7eff914d355d]
/usr/lib/libruby-1.9.1.so.1.9(+0x15083b)[0x7eff914d883b]
/usr/lib/libruby-1.9.1.so.1.9(rb_catch_obj+0xbe)[0x7eff914cb89e]
/usr/lib/libruby-1.9.1.so.1.9(+0x14394e)[0x7eff914cb94e]
/usr/lib/libruby-1.9.1.so.1.9(+0x14ebe1)[0x7eff914d6be1]
/usr/lib/libruby-1.9.1.so.1.9(+0x145b52)[0x7eff914cdb52]
/usr/lib/libruby-1.9.1.so.1.9(+0x14b55d)[0x7eff914d355d]
/usr/lib/libruby-1.9.1.so.1.9(+0x15083b)[0x7eff914d883b]
/usr/lib/libruby-1.9.1.so.1.9(rb_catch_obj+0xbe)[0x7eff914cb89e]
/usr/lib/libruby-1.9.1.so.1.9(+0x14394e)[0x7eff914cb94e]
/usr/lib/libruby-1.9.1.so.1.9(+0x14ebe1)[0x7eff914d6be1]
/usr/lib/libruby-1.9.1.so.1.9(+0x145b52)[0x7eff914cdb52]
/usr/lib/libruby-1.9.1.so.1.9(+0x14b55d)[0x7eff914d355d]
/usr/lib/libruby-1.9.1.so.1.9(+0x14c2b2)[0x7eff914d42b2]
/usr/lib/libruby-1.9.1.so.1.9(+0x15c80e)[0x7eff914e480e]
/usr/lib/libruby-1.9.1.so.1.9(+0x15c8f7)[0x7eff914e48f7]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7eff90db3e9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7eff910bccbd]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:01 1315294
/usr/bin/ruby1.9.1
00600000-00601000 r--p 00000000 08:01 1315294
/usr/bin/ruby1.9.1
00601000-00602000 rw-p 00001000 08:01 1315294
/usr/bin/ruby1.9.1
00ceb000-0494e000 rw-p 00000000 00:00 0
[heap]
7efe12b91000-7efe12ba6000 r-xp 00000000 08:01 528143
/lib/x86_64-linux-gnu/libgcc_s.so.1
7efe12ba6000-7efe12da5000 ---p 00015000 08:01 528143
/lib/x86_64-linux-gnu/libgcc_s.so.1
7efe12da5000-7efe12da6000 r--p 00014000 08:01 528143
/lib/x86_64-linux-gnu/libgcc_s.so.1
7efe12da6000-7efe12da7000 rw-p 00015000 08:01 528143
/lib/x86_64-linux-gnu/libgcc_s.so.1
7efe12dbe000-7efe12dbf000 rw-p 00000000 00:00 0
7efe12dbf000-7efe12dc0000 ---p 00000000 00:00 0
7efe12dc0000-7efe12f41000 rw-p 00000000 00:00 0
7efe12f41000-7efe12f42000 ---p 00000000 00:00 0
7efe12f42000-7efe130c3000 rw-p 00000000 00:00 0
7efe130c3000-7efe130c4000 ---p 00000000 00:00 0
7efe130c4000-7efe13245000 rw-p 00000000 00:00 0
7efe13245000-7efe13246000 ---p 00000000 00:00 0
7efe13246000-7efe133c7000 rw-p 00000000 00:00 0
7efe133c7000-7efe133c8000 ---p 00000000 00:00 0
7efe133c8000-7efe13549000 rw-p 00000000 00:00 0
7efe13549000-7efe1354a000 ---p 00000000 00:00 0
7efe1354a000-7efe136cb000 rw-p 00000000 00:00 0
7efe136cb000-7efe136cc000 ---p 00000000 00:00 0
7efe136cc000-7efe1384d000 rw-p 00000000 00:00 0
7efe1384d000-7efe1384e000 ---p 00000000 00:00 0
7efe1384e000-7efe139cf000 rw-p 00000000 00:00 0
7efe139cf000-7efe139d0000 ---p 00000000 00:00 0
7efe139d0000-7efe13b51000 rw-p 00000000 00:00 0
7efe13b51000-7efe13b52000 ---p 00000000 00:00 0
7efe13b52000-7efe13cd3000 rw-p 00000000 00:00 0
7efe13cd3000-7efe13cd4000 ---p 00000000 00:00 0
7efe13cd4000-7efe13e55000 rw-p 00000000 00:00 0
7efe13e55000-7efe13e56000 ---p 00000000 00:00 0
7efe13e56000-7efe13fd7000 rw-p 00000000 00:00 0
7efe13fd7000-7efe13fd8000 ---p 00000000 00:00 0
7efe13fd8000-7efe14159000 rw-p 00000000 00:00 0
7efe14159000-7efe1415a000 ---p 00000000 00:00 0
7efe1415a000-7efe142db000 rw-p 00000000 00:00 0
7efe142db000-7efe142dc000 ---p 00000000 00:00 0
7efe142dc000-7efe1445d000 rw-p 00000000 00:00 0
7efe1445d000-7efe1445e000 ---p 00000000 00:00 0
7efe1445e000-7efe145df000 rw-p 00000000 00:00 0
7efe145df000-7efe145e0000 ---p 00000000 00:00 0
7efe145e0000-7efe14761000 rw-p 00000000 00:00 0
7efe14761000-7efe14762000 ---p 00000000 00:00 0
7efe14762000-7efe148e3000 rw-p 00000000 00:00 0
7efe148e3000-7efe148e4000 ---p 00000000 00:00 0
7efe148e4000-7efe14a65000 rw-p 00000000 00:00 0
7efe14a65000-7efe14a66000 ---p 00000000 00:00 0
7efe14a66000-7efe14be7000 rw-p 00000000 00:00 0
7efe14be7000-7efe14be8000 ---p 00000000 00:00 0
7efe14be8000-7efe14d69000 rw-p 00000000 00:00 0
7efe14d69000-7efe14d6a000 ---p 00000000 00:00 0
7efe14d6a000-7efe14eeb000 rw-p 00000000 00:00 0
7efe14eeb000-7efe14eec000 ---p 00000000 00:00 0
7efe14eec000-7efe1506d000 rw-p 00000000 00:00 0
7efe1506d000-7efe1506e000 ---p 00000000 00:00 0
7efe1506e000-7efe151ef000 rw-p 00000000 00:00 0
7efe151ef000-7efe151f0000 ---p 00000000 00:00 0
7efe151f0000-7efe15371000 rw-p 00000000 00:00 0
7efe15371000-7efe15372000 ---p 00000000 00:00 0
7efe15372000-7efe154f3000 rw-p 00000000 00:00 0
7efe154f3000-7efe154f4000 ---p 00000000 00:00 0
7efe154f4000-7efe15675000 rw-p 00000000 00:00 0
7efe15675000-7efe15676000 ---p 00000000 00:00 0
7efe15676000-7efe157f7000 rw-p 00000000 00:00 0
7efe157f7000-7efe157f8000 ---p 00000000 00:00 0
7efe157f8000-7efe15979000 rw-p 00000000 00:00 0
7efe15979000-7efe1597a000 ---p 00000000 00:00 0
7efe1597a000-7efe15afb000 rw-p 00000000 00:00 0
7efe15afb000-7efe15afc000 ---p 00000000 00:00 0
7efe15afc000-7efe15c7d000 rw-p 00000000 00:00 0
7efe15c7d000-7efe15c7e000 ---p 00000000 00:00 0
7efe15c7e000-7efe15dff000 rw-p 00000000 00:00 0
7efe15dff000-7efe15e00000 ---p 00000000 00:00 0
7efe15e00000-7efe15f81000 rw-p 00000000 00:00 0
7efe15f81000-7efe15f82000 ---p 00000000 00:00 0
7efe15f82000-7efe16103000 rw-p 00000000 00:00 0
7efe16103000-7efe16104000 ---p 00000000 00:00 0
7efe16104000-7efe16285000 rw-p 00000000 00:00 0
7efe16285000-7efe16286000 ---p 00000000 00:00 0
7efe16286000-7efe16407000 rw-p 00000000 00:00 0
7efe16407000-7efe16408000 ---p 00000000 00:00 0
7efe16408000-7efe16589000 rw-p 00000000 00:00 0
7efe16589000-7efe1658a000 ---p 00000000 00:00 0
7efe1658a000-7efe1670b000 rw-p 00000000 00:00 0
7efe1670b000-7efe1670c000 ---p 00000000 00:00 0
7efe1670c000-7efe1688d000 rw-p 00000000 00:00 0
7efe1688d000-7efe1688e000 ---p 00000000 00:00 0
7efe1688e000-7efe16a0f000 rw-p 00000000 00:00 0
7efe16a0f000-7efe16a10000 ---p 00000000 00:00 0
7efe16a10000-7efe16b91000 rw-p 00000000 00:00 0
7efe16b91000-7efe16b92000 ---p 00000000 00:00 0
7efe16b92000-7efe16d13000 rw-p 00000000 00:00 0
7efe16d13000-7efe16d14000 ---p 00000000 00:00 0
7efe16d14000-7efe16e95000 rw-p 00000000 00:00 0
7efe16e95000-7efe16e96000 ---p 00000000 00:00 0
7efe16e96000-7efe17017000 rw-p 00000000 00:00 0
7efe17017000-7efe17018000 ---p 00000000 00:00 0
7efe17018000-7efe17199000 rw-p 00000000 00:00 0
7efe17199000-7efe1719a000 ---p 00000000 00:00 0
7efe1719a000-7efe1731b000 rw-p 00000000 00:00 0
7efe1731b000-7efe1731c000 ---p 00000000 00:00 0
7efe1731c000-7efe1749d000 rw-p 00000000 00:00 0
7efe1749d000-7efe1749e000 ---p 00000000 00:00 0
7efe1749e000-7efe1761f000 rw-p 00000000 00:00 0
7efe1761f000-7efe17620000 ---p 00000000 00:00 0
7efe17620000-7efe177a1000 rw-p 00000000 00:00 0
7efe177a1000-7efe177a2000 ---p 00000000 00:00 0
7efe177a2000-7efe17923000 rw-p 00000000 00:00 0
7efe17923000-7efe17924000 ---p 00000000 00:00 0
7efe17924000-7efe17aa5000 rw-p 00000000 00:00 0
7efe17aa5000-7efe17aa6000 ---p 00000000 00:00 0
7efe17aa6000-7efe17c27000 rw-p 00000000 00:00 0
7efe17c27000-7efe17c28000 ---p 00000000 00:00 0
7efe17c28000-7efe17da9000 rw-p 00000000 00:00 0
7efe17da9000-7efe17daa000 ---p 00000000 00:00 0
7efe17daa000-7efe17f2b000 rw-p 00000000 00:00 0
7efe17f2b000-7efe17f2c000 ---p 00000000 00:00 0
7efe17f2c000-7efe180ad000 rw-p 00000000 00:00 0
7efe180ad000-7efe180ae000 ---p 00000000 00:00 0
7efe180ae000-7efe1822f000 rw-p 00000000 00:00 0
7efe1822f000-7efe18230000 ---p 00000000 00:00 0
7efe18230000-7efe183b1000 rw-p 00000000 00:00 0
7efe183b1000-7efe183b2000 ---p 00000000 00:00 0
7efe183b2000-7efe18533000 rw-p 00000000 00:00 0
7efe18533000-7efe18534000 ---p 00000000 00:00 0
7efe18534000-7efe186b5000 rw-p 00000000 00:00 0
7efe186b5000-7efe186b6000 ---p 00000000 00:00 0
7efe186b6000-7efe18837000 rw-p 00000000 00:00 0
7efe18837000-7efe18838000 ---p 00000000 00:00 0
7efe18838000-7efe189b9000 rw-p 00000000 00:00 0
7efe189b9000-7efe189ba000 ---p 00000000 00:00 0
7efe189ba000-7efe18b3b000 rw-p 00000000 00:00 0
7efe18b3b000-7efe18b3c000 ---p 00000000 00:00 0
7efe18b3c000-7efe18cbd000 rw-p 00000000 00:00 0
7efe18cbd000-7efe18cbe000 ---p 00000000 00:00 0
7efe18cbe000-7efe18e3f000 rw-p 00000000 00:00 0
7efe18e3f000-7efe18e40000 ---p 00000000 00:00 0
7efe18e40000-7efe18fc1000 rw-p 00000000 00:00 0
7efe18fc1000-7efe18fc2000 ---p 00000000 00:00 0
7efe18fc2000-7efe19143000 rw-p 00000000 00:00 0
7efe19143000-7efe19144000 ---p 00000000 00:00 0
7efe19144000-7efe192c5000 rw-p 00000000 00:00 0
7efe192c5000-7efe192c6000 ---p 00000000 00:00 0
7efe192c6000-7efe19447000 rw-p 00000000 00:00 0
7efe19447000-7efe19448000 ---p 00000000 00:00 0
7efe19448000-7efe195c9000 rw-p 00000000 00:00 0
7efe195c9000-7efe195ca000 ---p 00000000 00:00 0
7efe195ca000-7efe1974b000 rw-p 00000000 00:00 0
7efe1974b000-7efe1974c000 ---p 00000000 00:00 0
7efe1974c000-7efe198cd000 rw-p 00000000 00:00 0
7efe198cd000-7efe198ce000 ---p 00000000 00:00 0
7efe198ce000-7efe19a4f000 rw-p 00000000 00:00 0
7efe19a4f000-7efe19a50000 ---p 00000000 00:00 0
7efe19a50000-7efe19bd1000 rw-p 00000000 00:00 0
7efe19bd1000-7efe19bd2000 ---p 00000000 00:00 0
7efe19bd2000-7efe19d53000 rw-p 00000000 00:00 0
7efe19d53000-7efe19d54000 ---p 00000000 00:00 0
7efe19d54000-7efe19ed5000 rw-p 00000000 00:00 0
7efe19ed5000-7efe19ed6000 ---p 00000000 00:00 0
7efe19ed6000-7efe1a057000 rw-p 00000000 00:00 0
7efe1a057000-7efe1a058000 ---p 00000000 00:00 0
7efe1a058000-7efe1a1d9000 rw-p 00000000 00:00 0
7efe1a1d9000-7efe1a1da000 ---p 00000000 00:00 0
7efe1a1da000-7efe1a35b000 rw-p 00000000 00:00 0
7efe1a35b000-7efe1a35c000 ---p 00000000 00:00 0
7efe1a35c000-7efe1a4dd000 rw-p 00000000 00:00 0
7efe1a4dd000-7efe1a4de000 ---p 00000000 00:00 0
7efe1a4de000-7efe1a65f000 rw-p 00000000 00:00 0
7efe1a65f000-7efe1a660000 ---p 00000000 00:00 0
7efe1a660000-7efe1a7e1000 rw-p 00000000 00:00 0
7efe1a7e1000-7efe1a7e2000 ---p 00000000 00:00 0
7efe1a7e2000-7efe1a963000 rw-p 00000000 00:00 0
7efe1a963000-7efe1a964000 ---p 00000000 00:00 0
7efe1a964000-7efe1aae5000 rw-p 00000000 00:00 0
7efe1aae5000-7efe1aae6000 ---p 00000000 00:00 0
7efe1aae6000-7efe1ac67000 rw-p 00000000 00:00 0
7efe1ac67000-7efe1ac68000 ---p 00000000 00:00 0
7efe1ac68000-7efe1ade9000 rw-p 00000000 00:00 0
7efe1ade9000-7efe1adea000 ---p 00000000 00:00 0
7efe1adea000-7efe1af6b000 rw-p 00000000 00:00 0
7efe1af6b000-7efe1af6c000 ---p 00000000 00:00 0
7efe1af6c000-7efe1b0ed000 rw-p 00000000 00:00 0
7efe1b0ed000-7efe1b0ee000 ---p 00000000 00:00 0
7efe1b0ee000-7efe1b26f000 rw-p 00000000 00:00 0
7efe1b26f000-7efe1b270000 ---p 00000000 00:00 0
7efe1b270000-7efe1b3f1000 rw-p 00000000 00:00 0
7efe1b3f1000-7efe1b3f2000 ---p 00000000 00:00 0
7efe1b3f2000-7efe1b573000 rw-p 00000000 00:00 0
7efe1b573000-7efe1b574000 ---p 00000000 00:00 0
7efe1b574000-7efe1b6f5000 rw-p 00000000 00:00 0
7efe1b6f5000-7efe1b6f6000 ---p 00000000 00:00 0
7efe1b6f6000-7efe1b877000 rw-p 00000000 00:00 0
7efe1b877000-7efe1b878000 ---p 00000000 00:00 0
7efe1b878000-7efe1b9f9000 rw-p 00000000 00:00 0
7efe1b9f9000-7efe1b9fa000 ---p 00000000 00:00 0 Aborted

-- 
Posted via http://www.ruby-forum.com/.