Last active
January 2, 2016 11:19
-
-
Save jemc/8295551 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module A | |
def initialize; super end | |
def self.extended(obj) | |
instance_method(:initialize).bind(obj).call | |
end | |
end | |
Object.new.extend A | |
/home/joemac/segfault.rb:13: [BUG] Segmentation fault at 0x00000000000018 | |
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0006 p:0008 s:0019 e:000017 METHOD /home/joemac/segfault.rb:13 [FINISH] | |
c:0005 p:---- s:0015 e:000014 CFUNC :call | |
c:0004 p:0015 s:0012 e:000011 METHOD /home/joemac/segfault.rb:13 [FINISH] | |
c:0003 p:---- s:0008 e:000007 CFUNC :extend | |
c:0002 p:0030 s:0004 E:0015f8 EVAL /home/joemac/segfault.rb:15 [FINISH] | |
c:0001 p:0000 s:0002 E:001d68 TOP [FINISH] | |
-- Ruby level backtrace information ---------------------------------------- | |
/home/joemac/segfault.rb:15:in `<main>' | |
/home/joemac/segfault.rb:15:in `extend' | |
/home/joemac/segfault.rb:13:in `extended' | |
/home/joemac/segfault.rb:13:in `call' | |
/home/joemac/segfault.rb:13:in `initialize' | |
-- C level backtrace information ------------------------------------------- | |
ruby(+0x186fec) [0x7f5bae55ffec] | |
ruby(+0x1f90f3) [0x7f5bae5d20f3] | |
ruby(rb_bug+0xb3) [0x7f5bae5d32d3] | |
ruby(+0xfc27e) [0x7f5bae4d527e] | |
/lib64/libpthread.so.0(+0x383380ef90) [0x7f5badfa8f90] | |
ruby(+0x1710a3) [0x7f5bae54a0a3] | |
ruby(+0x175546) [0x7f5bae54e546] | |
ruby(+0x178dac) [0x7f5bae551dac] | |
ruby(+0x179c44) [0x7f5bae552c44] | |
ruby(+0x17af67) [0x7f5bae553f67] | |
ruby(rb_method_call_with_block+0x10a) [0x7f5bae404cfa] | |
ruby(+0x170a24) [0x7f5bae549a24] | |
ruby(+0x17e08e) [0x7f5bae55708e] | |
ruby(+0x175415) [0x7f5bae54e415] | |
ruby(+0x178dac) [0x7f5bae551dac] | |
ruby(+0x179c44) [0x7f5bae552c44] | |
ruby(+0x17b10b) [0x7f5bae55410b] | |
ruby(rb_funcall+0xca) [0x7f5bae55479a] | |
ruby(+0x22f3c) [0x7f5bae3fbf3c] | |
ruby(+0x170a24) [0x7f5bae549a24] | |
ruby(+0x17e08e) [0x7f5bae55708e] | |
ruby(+0x175415) [0x7f5bae54e415] | |
ruby(+0x178dac) [0x7f5bae551dac] | |
ruby(rb_iseq_eval_main+0x1f6) [0x7f5bae55dd86] | |
ruby(+0x22bfa) [0x7f5bae3fbbfa] | |
ruby(ruby_run_node+0x2d) [0x7f5bae3ff0fd] | |
ruby(+0x2280b) [0x7f5bae3fb80b] | |
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f5bad4bdb45] | |
ruby(+0x22839) [0x7f5bae3fb839] | |
-- Other runtime information ----------------------------------------------- | |
* Loaded script: /home/joemac/segfault.rb | |
* Loaded features: | |
0 enumerator.so | |
1 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so | |
2 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so | |
3 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/rbconfig.rb | |
4 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/compatibility.rb | |
5 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/defaults.rb | |
6 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/deprecate.rb | |
7 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/errors.rb | |
8 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/version.rb | |
9 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/requirement.rb | |
10 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/platform.rb | |
11 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/basic_specification.rb | |
12 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/stub_specification.rb | |
13 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/util/stringio.rb | |
14 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/specification.rb | |
15 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/exceptions.rb | |
16 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb | |
17 thread.rb | |
18 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so | |
19 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb | |
20 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb | |
21 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems.rb | |
* Process memory map: | |
7f5ba64da000-7f5ba64ef000 r-xp 00000000 fd:01 2100881 /usr/lib64/libgcc_s-4.8.2-20131212.so.1 | |
7f5ba64ef000-7f5ba66ee000 ---p 00015000 fd:01 2100881 /usr/lib64/libgcc_s-4.8.2-20131212.so.1 | |
7f5ba66ee000-7f5ba66ef000 r--p 00014000 fd:01 2100881 /usr/lib64/libgcc_s-4.8.2-20131212.so.1 | |
7f5ba66ef000-7f5ba66f0000 rw-p 00015000 fd:01 2100881 /usr/lib64/libgcc_s-4.8.2-20131212.so.1 | |
7f5ba66f0000-7f5ba66f3000 r-xp 00000000 fd:02 29889009 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so | |
7f5ba66f3000-7f5ba68f2000 ---p 00003000 fd:02 29889009 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so | |
7f5ba68f2000-7f5ba68f3000 r--p 00002000 fd:02 29889009 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so | |
7f5ba68f3000-7f5ba68f4000 rw-p 00003000 fd:02 29889009 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/thread.so | |
7f5ba68f4000-7f5ba68f6000 r-xp 00000000 fd:02 29889107 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so | |
7f5ba68f6000-7f5ba6af6000 ---p 00002000 fd:02 29889107 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so | |
7f5ba6af6000-7f5ba6af7000 r--p 00002000 fd:02 29889107 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so | |
7f5ba6af7000-7f5ba6af8000 rw-p 00003000 fd:02 29889107 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/trans/transdb.so | |
7f5ba6af8000-7f5ba6afa000 r-xp 00000000 fd:02 29889087 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so | |
7f5ba6afa000-7f5ba6cf9000 ---p 00002000 fd:02 29889087 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so | |
7f5ba6cf9000-7f5ba6cfa000 r--p 00001000 fd:02 29889087 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so | |
7f5ba6cfa000-7f5ba6cfb000 rw-p 00002000 fd:02 29889087 /home/joemac/.rbenv/versions/2.1.0/lib/ruby/2.1.0/x86_64-linux/enc/encdb.so | |
7f5ba6cfb000-7f5bad220000 r--p 00000000 fd:01 2115275 /usr/lib/locale/locale-archive | |
7f5bad220000-7f5bad296000 r-xp 00000000 fd:01 2097454 /usr/lib64/libfreebl3.so | |
7f5bad296000-7f5bad496000 ---p 00076000 fd:01 2097454 /usr/lib64/libfreebl3.so | |
7f5bad496000-7f5bad497000 r--p 00076000 fd:01 2097454 /usr/lib64/libfreebl3.so | |
7f5bad497000-7f5bad498000 rw-p 00077000 fd:01 2097454 /usr/lib64/libfreebl3.so | |
7f5bad498000-7f5bad49c000 rw-p 00000000 00:00 0 | |
7f5bad49c000-7f5bad652000 r-xp 00000000 fd:01 2097464 /usr/lib64/libc-2.17.so | |
7f5bad652000-7f5bad852000 ---p 001b6000 fd:01 2097464 /usr/lib64/libc-2.17.so | |
7f5bad852000-7f5bad856000 r--p 001b6000 fd:01 2097464 /usr/lib64/libc-2.17.so | |
7f5bad856000-7f5bad858000 rw-p 001ba000 fd:01 2097464 /usr/lib64/libc-2.17.so | |
7f5bad858000-7f5bad85d000 rw-p 00000000 00:00 0 | |
7f5bad85d000-7f5bad95e000 r-xp 00000000 fd:01 2098056 /usr/lib64/libm-2.17.so | |
7f5bad95e000-7f5badb5d000 ---p 00101000 fd:01 2098056 /usr/lib64/libm-2.17.so | |
7f5badb5d000-7f5badb5e000 r--p 00100000 fd:01 2098056 /usr/lib64/libm-2.17.so | |
7f5badb5e000-7f5badb5f000 rw-p 00101000 fd:01 2098056 /usr/lib64/libm-2.17.so | |
7f5badb5f000-7f5badb67000 r-xp 00000000 fd:01 2097727 /usr/lib64/libcrypt-2.17.so | |
7f5badb67000-7f5badd66000 ---p 00008000 fd:01 2097727 /usr/lib64/libcrypt-2.17.so | |
7f5badd66000-7f5badd67000 r--p 00007000 fd:01 2097727 /usr/lib64/libcrypt-2.17.so | |
7f5badd67000-7f5badd68000 rw-p 00008000 fd:01 2097727 /usr/lib64/libcrypt-2.17.so | |
7f5badd68000-7f5badd96000 rw-p 00000000 00:00 0 | |
7f5badd96000-7f5badd99000 r-xp 00000000 fd:01 2097972 /usr/lib64/libdl-2.17.so | |
7f5badd99000-7f5badf98000 ---p 00003000 fd:01 2097972 /usr/lib64/libdl-2.17.so | |
7f5badf98000-7f5badf99000 r--p 00002000 fd:01 2097972 /usr/lib64/libdl-2.17.so | |
7f5badf99000-7f5badf9a000 rw-p 00003000 fd:01 2097972 /usr/lib64/libdl-2.17.so | |
7f5badf9a000-7f5badfb0000 r-xp 00000000 fd:01 2097675 /usr/lib64/libpthread-2.17.so | |
7f5badfb0000-7f5bae1b0000 ---p 00016000 fd:01 2097675 /usr/lib64/libpthread-2.17.so | |
7f5bae1b0000-7f5bae1b1000 r--p 00016000 fd:01 2097675 /usr/lib64/libpthread-2.17.so | |
7f5bae1b1000-7f5bae1b2000 rw-p 00017000 fd:01 2097675 /usr/lib64/libpthread-2.17.so | |
7f5bae1b2000-7f5bae1b6000 rw-p 00000000 00:00 0 | |
7f5bae1b6000-7f5bae1d7000 r-xp 00000000 fd:01 2097388 /usr/lib64/ld-2.17.so | |
7f5bae2b2000-7f5bae3b8000 rw-p 00000000 00:00 0 | |
7f5bae3d0000-7f5bae3d1000 rw-p 00000000 00:00 0 | |
7f5bae3d1000-7f5bae3d2000 ---p 00000000 00:00 0 | |
7f5bae3d2000-7f5bae3d6000 rw-p 00000000 00:00 0 [stack:1292] | |
7f5bae3d6000-7f5bae3d7000 r--p 00020000 fd:01 2097388 /usr/lib64/ld-2.17.so | |
7f5bae3d7000-7f5bae3d8000 rw-p 00021000 fd:01 2097388 /usr/lib64/ld-2.17.so | |
7f5bae3d8000-7f5bae3d9000 rw-p 00000000 00:00 0 | |
7f5bae3d9000-7f5bae69c000 r-xp 00000000 fd:02 29884433 /home/joemac/.rbenv/versions/2.1.0/bin/ruby | |
7f5bae89c000-7f5bae8a1000 r--p 002c3000 fd:02 29884433 /home/joemac/.rbenv/versions/2.1.0/bin/ruby | |
7f5bae8a1000-7f5bae8a3000 rw-p 002c8000 fd:02 29884433 /home/joemac/.rbenv/versions/2.1.0/bin/ruby | |
7f5bae8a3000-7f5bae8c9000 rw-p 00000000 00:00 0 | |
7f5bafa62000-7f5bafef9000 rw-p 00000000 00:00 0 [heap] | |
7fff20464000-7fff20486000 rw-p 00000000 00:00 0 | |
7fff204e1000-7fff204e3000 r-xp 00000000 00:00 0 [vdso] | |
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment