Repository navigation
Description
$ cat test2.rb
require 'sigar'
100.times do
GC.disable
sigars = []
100.times do
sigar = Sigar.new
sigars << sigar
end
GC.enable
GC.start
sleep 2
end
$ ruby test2.rb
test2.rb:11: [BUG] rb_gc_mark(): unknown data type 0x0(0x7f30a00bd7e8) non object
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0007 p:---- s:0017 b:0017 l:000016 d:000016 CFUNC :start
c:0006 p:0065 s:0014 b:0014 l:0002c8 d:000013 BLOCK test2.rb:11
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :times
c:0003 p:0022 s:0006 b:0006 l:0002c8 d:0012e8 EVAL test2.rb:3
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0002c8 d:0002c8 TOP
-- Ruby level backtrace information ----------------------------------------
test2.rb:3:in <main>' test2.rb:3:intimes'
test2.rb:11:in block in <main>' test2.rb:11:instart'
-- C level backtrace information -------------------------------------------
/usr/lib/libruby-1.9.1.so.1.9(+0x155bb9) [0x7f30a0219bb9] ../sysdeps/x86_64/multiarch/../strcmp.S:1007
/usr/lib/libruby-1.9.1.so.1.9(+0x5966d) [0x7f30a011d66d] vfscanf.c:2350
/usr/lib/libruby-1.9.1.so.1.9(rb_bug+0xb3) [0x7f30a011dde3] vfscanf.c:1602
/usr/lib/libruby-1.9.1.so.1.9(+0x6ef90) [0x7f30a0132f90] iogetdelim.c:56
/usr/lib/libruby-1.9.1.so.1.9(+0x6f0e1) [0x7f30a01330e1] iogetdelim.c:90
/usr/lib/libruby-1.9.1.so.1.9(rb_gc+0x1a) [0x7f30a013430a] ioseekpos.c:34
/usr/lib/libruby-1.9.1.so.1.9(rb_gc_start+0x9) [0x7f30a0134349] ioseekpos.c:49
/usr/lib/libruby-1.9.1.so.1.9(+0x14c1d3) [0x7f30a02101d3] ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1374
/usr/lib/libruby-1.9.1.so.1.9(+0x146a95) [0x7f30a020aa95] ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:1444
/usr/lib/libruby-1.9.1.so.1.9(+0x149d8e) [0x7f30a020dd8e] ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:2078
/usr/lib/libruby-1.9.1.so.1.9(rb_yield+0x240) [0x7f30a0215230] ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1074
/usr/lib/libruby-1.9.1.so.1.9(+0x966ae) [0x7f30a015a6ae] strxfrm_l.c:65
/usr/lib/libruby-1.9.1.so.1.9(+0x14c1d3) [0x7f30a02101d3] ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:1374
/usr/lib/libruby-1.9.1.so.1.9(+0x146a95) [0x7f30a020aa95] ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:1444
/usr/lib/libruby-1.9.1.so.1.9(+0x149d8e) [0x7f30a020dd8e] ../sysdeps/x86_64/multiarch/memcpy-ssse3.S:2078
/usr/lib/libruby-1.9.1.so.1.9(rb_iseq_eval_main+0x9f) [0x7f30a021685f] ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2561
/usr/lib/libruby-1.9.1.so.1.9(+0x5ca1a) [0x7f30a0120a1a] vfscanf.c:1956
/usr/lib/libruby-1.9.1.so.1.9(ruby_exec_node+0x1d) [0x7f30a012185d] ../sysdeps/posix/tempname.c:203
/usr/lib/libruby-1.9.1.so.1.9(ruby_run_node+0x1e) [0x7f30a012330e] vfprintf.c:1422
ruby() [0x40086b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f309fd20ec5] libc-start.c:287
ruby() [0x400899]
-- Other runtime information -----------------------------------------------
-
Loaded script: test2.rb
-
Loaded features:
0 enumerator.so
1 /usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
2 /usr/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
3 /usr/lib/ruby/1.9.1/rubygems/defaults.rb
4 /usr/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
5 /usr/lib/ruby/1.9.1/rubygems/deprecate.rb
6 /usr/lib/ruby/1.9.1/rubygems/exceptions.rb
7 /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb
8 /usr/lib/ruby/1.9.1/rubygems/custom_require.rb
9 /usr/lib/ruby/1.9.1/rubygems.rb
10 /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux/sigar.so -
Process memory map:
00400000-00401000 r-xp 00000000 fc:00 923860 /usr/bin/ruby1.9.1
00600000-00601000 r--p 00000000 fc:00 923860 /usr/bin/ruby1.9.1
00601000-00602000 rw-p 00001000 fc:00 923860 /usr/bin/ruby1.9.1
007fa000-00ada000 rw-p 00000000 00:00 0 [heap]
7f309e67d000-7f309e693000 r-xp 00000000 fc:00 1577960 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f309e693000-7f309e892000 ---p 00016000 fc:00 1577960 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f309e892000-7f309e893000 rw-p 00015000 fc:00 1577960 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f309e893000-7f309e8be000 r-xp 00000000 fc:00 1334140 /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux/sigar.so
7f309e8be000-7f309eabd000 ---p 0002b000 fc:00 1334140 /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux/sigar.so
7f309eabd000-7f309eabe000 r--p 0002a000 fc:00 1334140 /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux/sigar.so
7f309eabe000-7f309eac0000 rw-p 0002b000 fc:00 1334140 /usr/lib/ruby/vendor_ruby/1.9.1/x86_64-linux/sigar.so
7f309eac0000-7f309eac6000 rw-p 00000000 00:00 0
7f309eac6000-7f309eac8000 r-xp 00000000 fc:00 1445559 /usr/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f309eac8000-7f309ecc8000 ---p 00002000 fc:00 1445559 /usr/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f309ecc8000-7f309ecc9000 r--p 00002000 fc:00 1445559 /usr/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f309ecc9000-7f309ecca000 rw-p 00003000 fc:00 1445559 /usr/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
7f309ecca000-7f309eccc000 r-xp 00000000 fc:00 1445508 /usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f309eccc000-7f309eecb000 ---p 00002000 fc:00 1445508 /usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f309eecb000-7f309eecc000 r--p 00001000 fc:00 1445508 /usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f309eecc000-7f309eecd000 rw-p 00002000 fc:00 1445508 /usr/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
7f309eecd000-7f309f196000 r--p 00000000 fc:00 1187285 /usr/lib/locale/locale-archive
7f309f196000-7f309f29b000 r-xp 00000000 fc:00 1579880 /lib/x86_64-linux-gnu/libm-2.19.so
7f309f29b000-7f309f49a000 ---p 00105000 fc:00 1579880 /lib/x86_64-linux-gnu/libm-2.19.so
7f309f49a000-7f309f49b000 r--p 00104000 fc:00 1579880 /lib/x86_64-linux-gnu/libm-2.19.so
7f309f49b000-7f309f49c000 rw-p 00105000 fc:00 1579880 /lib/x86_64-linux-gnu/libm-2.19.so
7f309f49c000-7f309f4a5000 r-xp 00000000 fc:00 1579883 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f309f4a5000-7f309f6a5000 ---p 00009000 fc:00 1579883 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f309f6a5000-7f309f6a6000 r--p 00009000 fc:00 1579883 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f309f6a6000-7f309f6a7000 rw-p 0000a000 fc:00 1579883 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f309f6a7000-7f309f6d5000 rw-p 00000000 00:00 0
7f309f6d5000-7f309f6d8000 r-xp 00000000 fc:00 1579882 /lib/x86_64-linux-gnu/libdl-2.19.so
7f309f6d8000-7f309f8d7000 ---p 00003000 fc:00 1579882 /lib/x86_64-linux-gnu/libdl-2.19.so
7f309f8d7000-7f309f8d8000 r--p 00002000 fc:00 1579882 /lib/x86_64-linux-gnu/libdl-2.19.so
7f309f8d8000-7f309f8d9000 rw-p 00003000 fc:00 1579882 /lib/x86_64-linux-gnu/libdl-2.19.so
7f309f8d9000-7f309f8e0000 r-xp 00000000 fc:00 1579894 /lib/x86_64-linux-gnu/librt-2.19.so
7f309f8e0000-7f309fadf000 ---p 00007000 fc:00 1579894 /lib/x86_64-linux-gnu/librt-2.19.so
7f309fadf000-7f309fae0000 r--p 00006000 fc:00 1579894 /lib/x86_64-linux-gnu/librt-2.19.so
7f309fae0000-7f309fae1000 rw-p 00007000 fc:00 1579894 /lib/x86_64-linux-gnu/librt-2.19.so
7f309fae1000-7f309fafa000 r-xp 00000000 fc:00 1579887 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f309fafa000-7f309fcf9000 ---p 00019000 fc:00 1579887 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f309fcf9000-7f309fcfa000 r--p 00018000 fc:00 1579887 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f309fcfa000-7f309fcfb000 rw-p 00019000 fc:00 1579887 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f309fcfb000-7f309fcff000 rw-p 00000000 00:00 0
7f309fcff000-7f309feba000 r-xp 00000000 fc:00 1579895 /lib/x86_64-linux-gnu/libc-2.19.so
7f309feba000-7f30a00b9000 ---p 001bb000 fc:00 1579895 /lib/x86_64-linux-gnu/libc-2.19.so
7f30a00b9000-7f30a00bd000 r--p 001ba000 fc:00 1579895 /lib/x86_64-linux-gnu/libc-2.19.so
7f30a00bd000-7f30a00bf000 rw-p 001be000 fc:00 1579895 /lib/x86_64-linux-gnu/libc-2.19.so
7f30a00bf000-7f30a00c4000 rw-p 00000000 00:00 0
7f30a00c4000-7f30a02ba000 r-xp 00000000 fc:00 930375 /usr/lib/libruby-1.9.1.so.1.9.1
7f30a02ba000-7f30a04b9000 ---p 001f6000 fc:00 930375 /usr/lib/libruby-1.9.1.so.1.9.1
7f30a04b9000-7f30a04be000 r--p 001f5000 fc:00 930375 /usr/lib/libruby-1.9.1.so.1.9.1
7f30a04be000-7f30a04c2000 rw-p 001fa000 fc:00 930375 /usr/lib/libruby-1.9.1.so.1.9.1
7f30a04c2000-7f30a04de000 rw-p 00000000 00:00 0
7f30a04de000-7f30a0501000 r-xp 00000000 fc:00 1579888 /lib/x86_64-linux-gnu/ld-2.19.so
7f30a05d6000-7f30a06dc000 rw-p 00000000 00:00 0
7f30a06f9000-7f30a06fa000 rw-p 00000000 00:00 0
7f30a06fa000-7f30a06fb000 ---p 00000000 00:00 0
7f30a06fb000-7f30a0700000 rw-p 00000000 00:00 0 [stack:17285]
7f30a0700000-7f30a0701000 r--p 00022000 fc:00 1579888 /lib/x86_64-linux-gnu/ld-2.19.so
7f30a0701000-7f30a0702000 rw-p 00023000 fc:00 1579888 /lib/x86_64-linux-gnu/ld-2.19.so
7f30a0702000-7f30a0703000 rw-p 00000000 00:00 0
7ffeb567a000-7ffeb569b000 rw-p 00000000 00:00 0 [stack]
7ffeb56b7000-7ffeb56b9000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Aborted (core dumped)
Activity
ruby: fix sporadic segfaults during the garbage collection