Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
allocation_tracer segfault
test_error.rb:3: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0005 p:---- s:0012 e:000011 CFUNC :inspect
c:0004 p:---- s:0010 e:000009 CFUNC :inspect
c:0003 p:---- s:0008 e:000007 CFUNC :p
c:0002 p:0024 s:0004 E:001dc8 EVAL test_error.rb:3 [FINISH]
c:0001 p:0000 s:0002 E:001f18 TOP [FINISH]
-- Ruby level backtrace information ----------------------------------------
test_error.rb:3:in `<main>'
test_error.rb:3:in `p'
test_error.rb:3:in `inspect'
test_error.rb:3:in `inspect'
-- C level backtrace information -------------------------------------------
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1e322c) [0x7f1b3b5c122c] vm_dump.c:690
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x774f3) [0x7f1b3b4554f3] wfileops.c:369
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_bug+0xb3) [0x7f1b3b456143] getwc.c:40
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x15aa4f) [0x7f1b3b538a4f] ../sysdeps/x86_64/multiarch/strcpy-ssse3.S:1679
/lib/x86_64-linux-gnu/libc.so.6(+0x36c30) [0x7f1b3b04ec30] ../sysdeps/posix/killpg.c:37
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x180540) [0x7f1b3b55e540] string.c:8388
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1807c8) [0x7f1b3b55e7c8] string.c:8445
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1d66df) [0x7f1b3b5b46df] vm_eval.c:118
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1d733b) [0x7f1b3b5b533b] vm_eval.c:50
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_funcall+0xca) [0x7f1b3b5b59ca] vm_eval.c:586
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_inspect+0x16) [0x7f1b3b4c51d6] wordexp.c:819
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0xa48bf) [0x7f1b3b4828bf] mbrtowc.c:84
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0xa4ae9) [0x7f1b3b482ae9] wcrtomb.c:79
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(st_foreach_check+0x1fb) [0x7f1b3b542ecb] ../sysdeps/x86_64/multiarch/memcmp-ssse3.S:1082
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0xa4a8f) [0x7f1b3b482a8f] wcrtomb.c:64
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_ensure+0xb0) [0x7f1b3b45e430] malloc.c:2816
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_hash_foreach+0x36) [0x7f1b3b4849f6] ../stdlib/strtod_l.c:1361
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0xa7ad4) [0x7f1b3b485ad4] ../stdlib/strtod_l.c:1706
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1edfc3) [0x7f1b3b5cbfc3] thread.c:4965
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1d66df) [0x7f1b3b5b46df] vm_eval.c:118
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1d733b) [0x7f1b3b5b533b] vm_eval.c:50
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_funcall+0xca) [0x7f1b3b5b59ca] vm_eval.c:586
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_inspect+0x16) [0x7f1b3b4c51d6] wordexp.c:819
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_p+0xb) [0x7f1b3b49cb9b] ../nss/getXXent.c:83
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0xbec5d) [0x7f1b3b49cc5d] ../nss/getXXbyYY.c:99
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_ensure+0xb0) [0x7f1b3b45e430] malloc.c:2816
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0xaba0b) [0x7f1b3b489a0b] ../stdlib/strtod_l.c:1560
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1da241) [0x7f1b3b5b8241] vm_insnhelper.c:1489
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1d1214) [0x7f1b3b5af214] insns.def:1028
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x1d4f0f) [0x7f1b3b5b2f0f] vm.c:1363
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(rb_iseq_eval_main+0x1f6) [0x7f1b3b5bc336] vm.c:1627
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(+0x7d6bf) [0x7f1b3b45b6bf] eval.c:253
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(ruby_exec_node+0x1d) [0x7f1b3b45d72d] malloc.c:4984
/home/pete/.rvm/rubies/ruby-2.1.3/bin/../lib/libruby.so.2.1(ruby_run_node+0x1c) [0x7f1b3b45fefc] malloc.c:4444
ruby() [0x40087b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f1b3b039ec5] libc-start.c:287
ruby() [0x4008a9]
-- Other runtime information -----------------------------------------------
* Loaded script: test_error.rb
* Loaded features:
0 enumerator.so
1 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
2 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
3 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/rbconfig.rb
4 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/compatibility.rb
5 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/defaults.rb
6 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/deprecate.rb
7 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/errors.rb
8 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/version.rb
9 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/requirement.rb
10 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/platform.rb
11 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/basic_specification.rb
12 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/stub_specification.rb
13 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/util/stringio.rb
14 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/specification.rb
15 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/exceptions.rb
16 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb
17 thread.rb
18 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/thread.so
19 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/monitor.rb
20 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb
21 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/rubygems.rb
22 /home/pete/projects/allocation_tracer/lib/allocation_tracer/version.rb
23 /home/pete/projects/allocation_tracer/lib/allocation_tracer/allocation_tracer.so
24 /home/pete/projects/allocation_tracer/lib/allocation_tracer.rb
* Process memory map:
00400000-00401000 r-xp 00000000 08:05 1717120 /home/pete/.rvm/rubies/ruby-2.1.3/bin/ruby
00600000-00601000 r--p 00000000 08:05 1717120 /home/pete/.rvm/rubies/ruby-2.1.3/bin/ruby
00601000-00602000 rw-p 00001000 08:05 1717120 /home/pete/.rvm/rubies/ruby-2.1.3/bin/ruby
00d29000-0118a000 rw-p 00000000 00:00 0 [heap]
7f1b399c5000-7f1b399db000 r-xp 00000000 08:05 1701282 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1b399db000-7f1b39bda000 ---p 00016000 08:05 1701282 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1b39bda000-7f1b39bdb000 rw-p 00015000 08:05 1701282 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f1b39bdb000-7f1b39be2000 r-xp 00000000 08:05 1459776 /home/pete/projects/allocation_tracer/lib/allocation_tracer/allocation_tracer.so
7f1b39be2000-7f1b39de1000 ---p 00007000 08:05 1459776 /home/pete/projects/allocation_tracer/lib/allocation_tracer/allocation_tracer.so
7f1b39de1000-7f1b39de2000 r--p 00006000 08:05 1459776 /home/pete/projects/allocation_tracer/lib/allocation_tracer/allocation_tracer.so
7f1b39de2000-7f1b39de3000 rw-p 00007000 08:05 1459776 /home/pete/projects/allocation_tracer/lib/allocation_tracer/allocation_tracer.so
7f1b39de3000-7f1b39de6000 r-xp 00000000 08:05 1721498 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/thread.so
7f1b39de6000-7f1b39fe5000 ---p 00003000 08:05 1721498 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/thread.so
7f1b39fe5000-7f1b39fe6000 r--p 00002000 08:05 1721498 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/thread.so
7f1b39fe6000-7f1b39fe7000 rw-p 00003000 08:05 1721498 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/thread.so
7f1b39fe7000-7f1b39fe9000 r-xp 00000000 08:05 1721530 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f1b39fe9000-7f1b3a1e9000 ---p 00002000 08:05 1721530 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f1b3a1e9000-7f1b3a1ea000 r--p 00002000 08:05 1721530 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f1b3a1ea000-7f1b3a1eb000 rw-p 00003000 08:05 1721530 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so
7f1b3a1eb000-7f1b3a1ed000 r-xp 00000000 08:05 1721537 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f1b3a1ed000-7f1b3a3ec000 ---p 00002000 08:05 1721537 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f1b3a3ec000-7f1b3a3ed000 r--p 00001000 08:05 1721537 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f1b3a3ed000-7f1b3a3ee000 rw-p 00002000 08:05 1721537 /home/pete/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so
7f1b3a3ee000-7f1b3a6b7000 r--p 00000000 08:05 133975 /usr/lib/locale/locale-archive
7f1b3a6b7000-7f1b3a7bc000 r-xp 00000000 08:05 1702066 /lib/x86_64-linux-gnu/libm-2.19.so
7f1b3a7bc000-7f1b3a9bb000 ---p 00105000 08:05 1702066 /lib/x86_64-linux-gnu/libm-2.19.so
7f1b3a9bb000-7f1b3a9bc000 r--p 00104000 08:05 1702066 /lib/x86_64-linux-gnu/libm-2.19.so
7f1b3a9bc000-7f1b3a9bd000 rw-p 00105000 08:05 1702066 /lib/x86_64-linux-gnu/libm-2.19.so
7f1b3a9bd000-7f1b3a9c6000 r-xp 00000000 08:05 1702074 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f1b3a9c6000-7f1b3abc6000 ---p 00009000 08:05 1702074 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f1b3abc6000-7f1b3abc7000 r--p 00009000 08:05 1702074 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f1b3abc7000-7f1b3abc8000 rw-p 0000a000 08:05 1702074 /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f1b3abc8000-7f1b3abf6000 rw-p 00000000 00:00 0
7f1b3abf6000-7f1b3abf9000 r-xp 00000000 08:05 1702095 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1b3abf9000-7f1b3adf8000 ---p 00003000 08:05 1702095 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1b3adf8000-7f1b3adf9000 r--p 00002000 08:05 1702095 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1b3adf9000-7f1b3adfa000 rw-p 00003000 08:05 1702095 /lib/x86_64-linux-gnu/libdl-2.19.so
7f1b3adfa000-7f1b3ae13000 r-xp 00000000 08:05 1702098 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1b3ae13000-7f1b3b012000 ---p 00019000 08:05 1702098 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1b3b012000-7f1b3b013000 r--p 00018000 08:05 1702098 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1b3b013000-7f1b3b014000 rw-p 00019000 08:05 1702098 /lib/x86_64-linux-gnu/libpthread-2.19.so
7f1b3b014000-7f1b3b018000 rw-p 00000000 00:00 0
7f1b3b018000-7f1b3b1d3000 r-xp 00000000 08:05 1702058 /lib/x86_64-linux-gnu/libc-2.19.so
7f1b3b1d3000-7f1b3b3d3000 ---p 001bb000 08:05 1702058 /lib/x86_64-linux-gnu/libc-2.19.so
7f1b3b3d3000-7f1b3b3d7000 r--p 001bb000 08:05 1702058 /lib/x86_64-linux-gnu/libc-2.19.so
7f1b3b3d7000-7f1b3b3d9000 rw-p 001bf000 08:05 1702058 /lib/x86_64-linux-gnu/libc-2.19.so
7f1b3b3d9000-7f1b3b3de000 rw-p 00000000 00:00 0
7f1b3b3de000-7f1b3b68d000 r-xp 00000000 08:05 1717155 /home/pete/.rvm/rubies/ruby-2.1.3/lib/libruby.so.2.1.0
7f1b3b68d000-7f1b3b88d000 ---p 002af000 08:05 1717155 /home/pete/.rvm/rubies/ruby-2.1.3/lib/libruby.so.2.1.0
7f1b3b88d000-7f1b3b892000 r--p 002af000 08:05 1717155 /home/pete/.rvm/rubies/ruby-2.1.3/lib/libruby.so.2.1.0
7f1b3b892000-7f1b3b895000 rw-p 002b4000 08:05 1717155 /home/pete/.rvm/rubies/ruby-2.1.3/lib/libruby.so.2.1.0
7f1b3b895000-7f1b3b8bb000 rw-p 00000000 00:00 0
7f1b3b8bb000-7f1b3b8de000 r-xp 00000000 08:05 1702062 /lib/x86_64-linux-gnu/ld-2.19.so
7f1b3b9ae000-7f1b3bab4000 rw-p 00000000 00:00 0
7f1b3bacf000-7f1b3bad0000 rw-p 00000000 00:00 0
7f1b3bad0000-7f1b3bad7000 r--s 00000000 08:05 409975 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f1b3bad7000-7f1b3bad8000 ---p 00000000 00:00 0
7f1b3bad8000-7f1b3badd000 rw-p 00000000 00:00 0 [stack:27644]
7f1b3badd000-7f1b3bade000 r--p 00022000 08:05 1702062 /lib/x86_64-linux-gnu/ld-2.19.so
7f1b3bade000-7f1b3badf000 rw-p 00023000 08:05 1702062 /lib/x86_64-linux-gnu/ld-2.19.so
7f1b3badf000-7f1b3bae0000 rw-p 00000000 00:00 0
7ffff126a000-7ffff128c000 rw-p 00000000 00:00 0
7ffff131f000-7ffff1321000 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.