Project

General

Profile

Bug #11869

random hang/SegFault when accessing a missing constant in irb

Added by postmodern (Hal Brodigan) almost 4 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
[ruby-core:72465]

Description

While testing ruby-2.2.4 on Fedora 22, I noticed that sometimes ruby would hang or segfault when accessing a missing constant within irb.

Steps to Reproduce

  1. /path/to/ruby-2.2.4/bin/irb
  2. type "FOO" and press enter
  3. Repeat step 2 until irb hangs or segfaults

Results

Here is the backtrace from an immediate segfault:

/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150: [BUG] Segmentation fault at 0x00000000000008
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0023 p:---- s:0085 e:000084 CFUNC :readline
c:0022 p:0042 s:0080 e:000079 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150
c:0021 p:0011 s:0076 e:000075 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:469
c:0020 p:0040 s:0073 e:000072 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:623
c:0019 p:0009 s:0068 e:000067 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:468 [FINISH]
c:0018 p:---- s:0066 e:000065 CFUNC :call
c:0017 p:0015 s:0063 e:000062 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:188
c:0016 p:0015 s:0059 e:000058 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:103
c:0015 p:0022 s:0055 e:000054 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:205
c:0014 p:0042 s:0047 e:000046 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:75
c:0013 p:0044 s:0042 e:000041 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:282
c:0012 p:0013 s:0038 e:000037 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:264
c:0011 p:0022 s:0033 e:000032 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:235 [FINISH]
c:0010 p:---- s:0030 e:000029 CFUNC :loop
c:0009 p:0007 s:0027 e:000026 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:231 [FINISH]
c:0008 p:---- s:0025 e:000024 CFUNC :catch
c:0007 p:0015 s:0021 e:000020 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:230
c:0006 p:0030 s:0018 E:000a80 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:485
c:0005 p:0008 s:0015 e:000014 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:395 [FINISH]
c:0004 p:---- s:0013 e:000012 CFUNC :catch
c:0003 p:0143 s:0009 E:0002d0 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:394
c:0002 p:0021 s:0004 E:001a10 EVAL /home/hal/.rubies/ruby-2.2.4/bin/irb:11 [FINISH]
c:0001 p:0000 s:0002 E:001520 TOP [FINISH]

-- Ruby level backtrace information ----------------------------------------
/home/hal/.rubies/ruby-2.2.4/bin/irb:11:in <main>'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:394:in
start'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:394:in catch'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:395:in
block in start'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:485:in eval_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in
each_top_level_statement'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in catch'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in
block in each_top_level_statement'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in loop'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:235:in
block (2 levels) in each_top_level_statement'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:264:in lex'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:282:in
token'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:75:in match'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:205:in
match_io'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:103:in getc'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:188:in
buf_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:188:in call'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:468:in
block in eval_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:623:in signal_status'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:469:in
block (2 levels) in eval_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150:in gets'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150:in
readline'

-- Machine register context ------------------------------------------------
RIP: 0x00007f2819de14ab RBP: 0x00007ffd2857d490 RSP: 0x00007ffd2857d470
RAX: 0x0000000000000000 RBX: 0x00005565b1567ce0 RCX: 0x0000000000000490
RDX: 0x0000000000000000 RDI: 0x00007ffd2857d490 RSI: 0x00005565b1567ce0
R8: 0x00007f281ac8c700 R9: 0x00007ffd2857d400 R10: 0x00007ffd2857d408
R11: 0x00007ffd2857d490 R12: 0x0000000000000001 R13: 0x00005565b13f1f00
R14: 0x00005565b163b400 R15: 0x0000000000000010 EFL: 0x0000000000010246

-- C level backtrace information -------------------------------------------
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_vm_bugreport+0x533) [0x5565af540403] vm_dump.c:693
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_bug_context+0xc8) [0x5565af5af668] error.c:425
/home/hal/.rubies/ruby-2.2.4/bin/ruby(sigsegv+0x3e) [0x5565af4b1aae] signal.c:879
/lib64/libpthread.so.0 [0x7f281a885430]
/lib64/libc.so.6(fputs+0x2b) [0x7f2819de14ab] iofputs.c:38
/lib64/libedit.so.0 [0x7f2812a0424d]
/lib64/libedit.so.0 [0x7f2812a0435c]
/lib64/libedit.so.0 [0x7f2812a0234e]
/lib64/libedit.so.0 [0x7f2812a00929]
/lib64/libedit.so.0(el_wgets+0x30d) [0x7f2812a00cbd]
/lib64/libedit.so.0(el_gets+0x19) [0x7f2812a115d9]
/lib64/libedit.so.0(readline+0xb0) [0x7f2812a0c960]
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_protect+0xf8) [0x5565af3eb828] eval.c:876
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/readline.so(readline_readline+0xb3) [0x7f2812c2cc33] readline.c:496
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_cfunc+0x13e) [0x5565af52adfe] vm_insnhelper.c:1380
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec_core+0x14c3) [0x5565af534ba3] insns.def:1070
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec+0x7b) [0x5565af5397fb] vm.c:1435
/home/hal/.rubies/ruby-2.2.4/bin/ruby(invoke_block_from_c+0x3e1) [0x5565af52c281] vm.c:813
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_invoke_proc+0xe0) [0x5565af52c660] vm.c:878
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_vm_invoke_proc+0x18) [0x5565af52c748] vm.c:897
/home/hal/.rubies/ruby-2.2.4/bin/ruby(proc_call+0x4f) [0x5565af3f0f1f] proc.c:731
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_cfunc+0x13e) [0x5565af52adfe] vm_insnhelper.c:1380
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec_core+0x14c3) [0x5565af534ba3] insns.def:1070
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec+0x7b) [0x5565af5397fb] vm.c:1435
/home/hal/.rubies/ruby-2.2.4/bin/ruby(invoke_block_from_c+0x3e1) [0x5565af52c281] vm.c:813
/home/hal/.rubies/ruby-2.2.4/bin/ruby(loop_i+0x4e) [0x5565af53d09e] vm.c:853
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_rescue2+0xbb) [0x5565af3eb54b] eval.c:808
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_f_loop+0x2b) [0x5565af52582b] vm_eval.c:1098
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_cfunc+0x13e) [0x5565af52adfe] vm_insnhelper.c:1380
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_method+0x11e) [0x5565af5329be] vm_insnhelper.c:1689
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec_core+0x1418) [0x5565af534af8] insns.def:1040
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec+0x7b) [0x5565af5397fb] vm.c:1435
/home/hal/.rubies/ruby-2.2.4/bin/ruby(invoke_block_from_c+0x3e1) [0x5565af52c281] vm.c:813
/home/hal/.rubies/ruby-2.2.4/bin/ruby(catch_i+0x5b) [0x5565af53d4fb] vm.c:853
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_catch_protect+0xaa) [0x5565af52bcaa] vm_eval.c:1996
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_f_catch+0x33) [0x5565af52be63] vm_eval.c:1975
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_cfunc+0x13e) [0x5565af52adfe] vm_insnhelper.c:1380
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_method+0x11e) [0x5565af5329be] vm_insnhelper.c:1689
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec_core+0x1418) [0x5565af534af8] insns.def:1040
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec+0x7b) [0x5565af5397fb] vm.c:1435
/home/hal/.rubies/ruby-2.2.4/bin/ruby(invoke_block_from_c+0x3e1) [0x5565af52c281] vm.c:813
/home/hal/.rubies/ruby-2.2.4/bin/ruby(catch_i+0x5b) [0x5565af53d4fb] vm.c:853
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_catch_protect+0xaa) [0x5565af52bcaa] vm_eval.c:1996
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_f_catch+0x33) [0x5565af52be63] vm_eval.c:1975
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_cfunc+0x13e) [0x5565af52adfe] vm_insnhelper.c:1380
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_call_method+0x11e) [0x5565af5329be] vm_insnhelper.c:1689
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec_core+0x1418) [0x5565af534af8] insns.def:1040
/home/hal/.rubies/ruby-2.2.4/bin/ruby(vm_exec+0x7b) [0x5565af5397fb] vm.c:1435
/home/hal/.rubies/ruby-2.2.4/bin/ruby(rb_iseq_eval_main+0x200) [0x5565af53b250] vm.c:1680
/home/hal/.rubies/ruby-2.2.4/bin/ruby(ruby_exec_internal+0xba) [0x5565af3e715a] eval.c:252
/home/hal/.rubies/ruby-2.2.4/bin/ruby(ruby_run_node+0x2f) [0x5565af3eadcf] eval.c:317
/home/hal/.rubies/ruby-2.2.4/bin/ruby(main+0x4b) [0x5565af3e6b5b] parse.y:7590

-- Other runtime information -----------------------------------------------

  • Loaded script: irb

  • Loaded features:

    0 enumerator.so
    1 rational.so
    2 complex.so
    3 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
    4 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
    5 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/unicode_normalize.rb
    6 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/rbconfig.rb
    7 thread.rb
    8 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/thread.so
    9 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/compatibility.rb
    10 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/defaults.rb
    11 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/deprecate.rb
    12 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/errors.rb
    13 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/version.rb
    14 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/requirement.rb
    15 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/platform.rb
    16 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/basic_specification.rb
    17 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/stub_specification.rb
    18 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/util/stringio.rb
    19 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/specification.rb
    20 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/exceptions.rb
    21 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb
    22 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/monitor.rb
    23 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb
    24 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems.rb
    25 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/e2mmap.rb
    26 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/init.rb
    27 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/workspace.rb
    28 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/inspector.rb
    29 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/context.rb
    30 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/extend-command.rb
    31 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/output-method.rb
    32 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/notifier.rb
    33 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb
    34 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-token.rb
    35 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb
    36 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/src_encoding.rb
    37 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/magic-file.rb
    38 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/readline.so
    39 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb
    40 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/locale.rb
    41 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb
    42 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/path_support.rb
    43 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/rubygems/dependency.rb
    44 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/completion.rb

  • Process memory map:

5565af3c4000-5565af693000 r-xp 00000000 fd:0c 192368 /home/hal/.rubies/ruby-2.2.4/bin/ruby
5565af892000-5565af897000 r--p 002ce000 fd:0c 192368 /home/hal/.rubies/ruby-2.2.4/bin/ruby
5565af897000-5565af898000 rw-p 002d3000 fd:0c 192368 /home/hal/.rubies/ruby-2.2.4/bin/ruby
5565af898000-5565af8a9000 rw-p 00000000 00:00 0
5565b106b000-5565b165b000 rw-p 00000000 00:00 0 [heap]
7f2810a51000-7f2811340000 r--s 00000000 fd:00 287951 /usr/lib/debug/lib64/libc-2.21.so.debug
7f2811340000-7f2811540000 r--s 00000000 fd:00 270678 /usr/lib64/libc-2.21.so
7f2811540000-7f2811612000 r--s 00000000 fd:00 287977 /usr/lib/debug/lib64/libpthread-2.21.so.debug
7f2811612000-7f281238b000 r--s 00000000 fd:0c 192368 /home/hal/.rubies/ruby-2.2.4/bin/ruby
7f281238b000-7f28123a1000 r-xp 00000000 fd:00 269908 /usr/lib64/libgcc_s-5.3.1-20151207.so.1
7f28123a1000-7f28125a0000 ---p 00016000 fd:00 269908 /usr/lib64/libgcc_s-5.3.1-20151207.so.1
7f28125a0000-7f28125a1000 r--p 00015000 fd:00 269908 /usr/lib64/libgcc_s-5.3.1-20151207.so.1
7f28125a1000-7f28125a2000 rw-p 00016000 fd:00 269908 /usr/lib64/libgcc_s-5.3.1-20151207.so.1
7f28125a2000-7f28125c8000 r-xp 00000000 fd:00 271546 /usr/lib64/libtinfo.so.5.9
7f28125c8000-7f28127c7000 ---p 00026000 fd:00 271546 /usr/lib64/libtinfo.so.5.9
7f28127c7000-7f28127cb000 r--p 00025000 fd:00 271546 /usr/lib64/libtinfo.so.5.9
7f28127cb000-7f28127cc000 rw-p 00029000 fd:00 271546 /usr/lib64/libtinfo.so.5.9
7f28127cc000-7f28127f0000 r-xp 00000000 fd:00 271273 /usr/lib64/libncurses.so.5.9
7f28127f0000-7f28129ef000 ---p 00024000 fd:00 271273 /usr/lib64/libncurses.so.5.9
7f28129ef000-7f28129f0000 r--p 00023000 fd:00 271273 /usr/lib64/libncurses.so.5.9
7f28129f0000-7f28129f1000 rw-p 00024000 fd:00 271273 /usr/lib64/libncurses.so.5.9
7f28129f1000-7f2812a23000 r-xp 00000000 fd:00 270955 /usr/lib64/libedit.so.0.0.53
7f2812a23000-7f2812c22000 ---p 00032000 fd:00 270955 /usr/lib64/libedit.so.0.0.53
7f2812c22000-7f2812c24000 r--p 00031000 fd:00 270955 /usr/lib64/libedit.so.0.0.53
7f2812c24000-7f2812c25000 rw-p 00033000 fd:00 270955 /usr/lib64/libedit.so.0.0.53
7f2812c25000-7f2812c29000 rw-p 00000000 00:00 0
7f2812c29000-7f2812c2f000 r-xp 00000000 fd:0c 193209 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/readline.so
7f2812c2f000-7f2812e2e000 ---p 00006000 fd:0c 193209 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/readline.so
7f2812e2e000-7f2812e2f000 r--p 00005000 fd:0c 193209 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/readline.so
7f2812e2f000-7f2812e30000 rw-p 00006000 fd:0c 193209 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/readline.so
7f2812e30000-7f2812e33000 r-xp 00000000 fd:0c 193222 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/thread.so
7f2812e33000-7f2813033000 ---p 00003000 fd:0c 193222 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/thread.so
7f2813033000-7f2813034000 r--p 00003000 fd:0c 193222 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/thread.so
7f2813034000-7f2813035000 rw-p 00004000 fd:0c 193222 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/thread.so
7f2813035000-7f2813037000 r-xp 00000000 fd:0c 193253 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
7f2813037000-7f2813237000 ---p 00002000 fd:0c 193253 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
7f2813237000-7f2813238000 r--p 00002000 fd:0c 193253 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
7f2813238000-7f2813239000 rw-p 00003000 fd:0c 193253 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
7f2813239000-7f281323b000 r-xp 00000000 fd:0c 193230 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
7f281323b000-7f281343a000 ---p 00002000 fd:0c 193230 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
7f281343a000-7f281343b000 r--p 00001000 fd:0c 193230 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
7f281343b000-7f281343c000 rw-p 00002000 fd:0c 193230 /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
7f281343c000-7f2819af6000 r--p 00000000 fd:00 269841 /usr/lib/locale/locale-archive
7f2819af6000-7f2819b6d000 r-xp 00000000 fd:00 277440 /usr/lib64/libfreebl3.so
7f2819b6d000-7f2819d6c000 ---p 00077000 fd:00 277440 /usr/lib64/libfreebl3.so
7f2819d6c000-7f2819d6e000 r--p 00076000 fd:00 277440 /usr/lib64/libfreebl3.so
7f2819d6e000-7f2819d6f000 rw-p 00078000 fd:00 277440 /usr/lib64/libfreebl3.so
7f2819d6f000-7f2819d73000 rw-p 00000000 00:00 0
7f2819d73000-7f2819f2a000 r-xp 00000000 fd:00 270678 /usr/lib64/libc-2.21.so
7f2819f2a000-7f281a129000 ---p 001b7000 fd:00 270678 /usr/lib64/libc-2.21.so
7f281a129000-7f281a12d000 r--p 001b6000 fd:00 270678 /usr/lib64/libc-2.21.so
7f281a12d000-7f281a12f000 rw-p 001ba000 fd:00 270678 /usr/lib64/libc-2.21.so
7f281a12f000-7f281a133000 rw-p 00000000 00:00 0
7f281a133000-7f281a23a000 r-xp 00000000 fd:00 271293 /usr/lib64/libm-2.21.so
7f281a23a000-7f281a439000 ---p 00107000 fd:00 271293 /usr/lib64/libm-2.21.so
7f281a439000-7f281a43a000 r--p 00106000 fd:00 271293 /usr/lib64/libm-2.21.so
7f281a43a000-7f281a43b000 rw-p 00107000 fd:00 271293 /usr/lib64/libm-2.21.so
7f281a43b000-7f281a442000 r-xp 00000000 fd:00 270871 /usr/lib64/libcrypt-2.21.so
7f281a442000-7f281a641000 ---p 00007000 fd:00 270871 /usr/lib64/libcrypt-2.21.so
7f281a641000-7f281a642000 r--p 00006000 fd:00 270871 /usr/lib64/libcrypt-2.21.so
7f281a642000-7f281a643000 rw-p 00007000 fd:00 270871 /usr/lib64/libcrypt-2.21.so
7f281a643000-7f281a671000 rw-p 00000000 00:00 0
7f281a671000-7f281a674000 r-xp 00000000 fd:00 271291 /usr/lib64/libdl-2.21.so
7f281a674000-7f281a873000 ---p 00003000 fd:00 271291 /usr/lib64/libdl-2.21.so
7f281a873000-7f281a874000 r--p 00002000 fd:00 271291 /usr/lib64/libdl-2.21.so
7f281a874000-7f281a875000 rw-p 00003000 fd:00 271291 /usr/lib64/libdl-2.21.so
7f281a875000-7f281a88c000 r-xp 00000000 fd:00 271321 /usr/lib64/libpthread-2.21.so
7f281a88c000-7f281aa8b000 ---p 00017000 fd:00 271321 /usr/lib64/libpthread-2.21.so
7f281aa8b000-7f281aa8c000 r--p 00016000 fd:00 271321 /usr/lib64/libpthread-2.21.so
7f281aa8c000-7f281aa8d000 rw-p 00017000 fd:00 271321 /usr/lib64/libpthread-2.21.so
7f281aa8d000-7f281aa91000 rw-p 00000000 00:00 0
7f281aa91000-7f281aab2000 r-xp 00000000 fd:00 269839 /usr/lib64/ld-2.21.so
7f281ab32000-7f281ab67000 r--s 00000000 fd:00 270955 /usr/lib64/libedit.so.0.0.53
7f281ab67000-7f281ab8a000 r--s 00000000 fd:00 271321 /usr/lib64/libpthread-2.21.so
7f281ab8a000-7f281ac90000 rw-p 00000000 00:00 0
7f281aca4000-7f281aca5000 rw-p 00000000 00:00 0
7f281aca5000-7f281acac000 r--s 00000000 fd:00 525551 /usr/lib64/gconv/gconv-modules.cache
7f281acac000-7f281acad000 ---p 00000000 00:00 0
7f281acad000-7f281acb1000 rw-p 00000000 00:00 0 [stack:31620]
7f281acb1000-7f281acb2000 r--p 00020000 fd:00 269839 /usr/lib64/ld-2.21.so
7f281acb2000-7f281acb3000 rw-p 00021000 fd:00 269839 /usr/lib64/ld-2.21.so
7f281acb3000-7f281acb4000 rw-p 00000000 00:00 0
7ffd27d82000-7ffd28581000 rw-p 00000000 00:00 0
7ffd285b3000-7ffd285b5000 r--p 00000000 00:00 0 [vvar]
7ffd285b5000-7ffd285b7000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]

Attempting to CtrlC the hanged irb produces the following backtrace:

/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150: [BUG] Segmentation fault at 0x007ff1e8a93ff8
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0023 p:---- s:0085 e:000084 CFUNC :readline
c:0022 p:0042 s:0080 e:000079 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150
c:0021 p:0011 s:0076 e:000075 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:469
c:0020 p:0040 s:0073 e:000072 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:623
c:0019 p:0009 s:0068 e:000067 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:468 [FINISH]
c:0018 p:---- s:0066 e:000065 CFUNC :call
c:0017 p:0015 s:0063 e:000062 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:188
c:0016 p:0015 s:0059 e:000058 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:103
c:0015 p:0022 s:0055 e:000054 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:205
c:0014 p:0042 s:0047 e:000046 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:75
c:0013 p:0044 s:0042 e:000041 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:282
c:0012 p:0013 s:0038 e:000037 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:264
c:0011 p:0022 s:0033 e:000032 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:235 [FINISH]
c:0010 p:---- s:0030 e:000029 CFUNC :loop
c:0009 p:0007 s:0027 e:000026 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:231 [FINISH]
c:0008 p:---- s:0025 e:000024 CFUNC :catch
c:0007 p:0015 s:0021 e:000020 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:230
c:0006 p:0030 s:0018 E:001d40 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:485
c:0005 p:0008 s:0015 e:000014 BLOCK /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:395 [FINISH]
c:0004 p:---- s:0013 e:000012 CFUNC :catch
c:0003 p:0143 s:0009 E:000930 METHOD /home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:394
c:0002 p:0021 s:0004 E:002190 EVAL /home/hal/.rubies/ruby-2.2.4/bin/irb:11 [FINISH]
c:0001 p:0000 s:0002 E:001ca0 TOP [FINISH]

-- Ruby level backtrace information ----------------------------------------
/home/hal/.rubies/ruby-2.2.4/bin/irb:11:in <main>'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:394:in
start'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:394:in catch'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:395:in
block in start'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:485:in eval_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in
each_top_level_statement'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in catch'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in
block in each_top_level_statement'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in loop'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:235:in
block (2 levels) in each_top_level_statement'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:264:in lex'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:282:in
token'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:75:in match'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/slex.rb:205:in
match_io'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:103:in getc'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:188:in
buf_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/ruby-lex.rb:188:in call'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:468:in
block in eval_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:623:in signal_status'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb.rb:469:in
block (2 levels) in eval_input'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150:in gets'
/home/hal/.rubies/ruby-2.2.4/lib/ruby/2.2.0/irb/input-method.rb:150:in
readline'

-- Machine register context ------------------------------------------------
RIP: 0x00007ff1e7be778d RBP: 0x00000000ffffffff RSP: 0x00007ffe145bb8a0
RAX: 0x0000000000000000 RBX: 0x000055dc9b3c2d70 RCX: 0x000000009b3f1dc0
RDX: 0x00007ff1e8a94000 RDI: 0x00007ff1e8a94000 RSI: 0x00007ff1e8a94000
R8: 0x00007ff1e8a94000 R9: 0x0000000000000000 R10: 0x0000000000000022
R11: 0x0000000000000246 R12: 0x0000000000000000 R13: 0x00007ffe145bb9d0
R14: 0x000055dc9b3bbaa0 R15: 0x0000000000000010 EFL: 0x0000000000010206

-- C level backtrace information -------------------------------------------
*** Error in `irb': corrupted double-linked list: 0x000055dc9b3f1dc0 ***

Additional information

Ruby 2.2.4 was compiled against the system's readline-6.3 (5.fc22) package.

History

Updated by lamont (Lamont Granquist) almost 4 years ago

I'm seeing this on debian 7, rhel 6, and ubuntu 14.04 at least (but running binaries compiled on debian 6, rhel 5, and ubuntu 10.04, respectively). The chef rspec test suite triggers this:

git clone https://github.com/chef/chef
cd chef
rspec spec/functional/shell_spec.rb
( run repeatedly )

I definitely do not observe this failure on Mac OSX 10.11.2 with rvm installed 2.2.4 (having run the rspec suite many dozens of times on 2.2.x and never seen a seg fault here).

A gcc vs. clang compiler difference? Some gcc optimization that causes it to fail? Seems consistent across a wide range of gcc versions from 3.x to 5.x if that's the case. It seems to only affect linux, but that might be an effect of our running more tests against linux than solaris/freebsd/etc.

Updated by lamont (Lamont Granquist) almost 4 years ago

I built our whole system (ruby, libedit, ncurses, etc) without any optimizations at all and got a build that passed our specs.

I tried dropping the optimization down to -O2 from the -O3 we had been using, along with bumping libedit from 20120601-3.0 to 20150325-3.1 and ncurses from 5.9 to 6.0-20150810 and still got one failure on debian-6 in the same spec test but a "memory corruption error" from malloc() this time:

1) Shell smoke tests sets the override_runlist from the command line
Failure/Error:
raise "did not read expected value #{expected_value}' within #{TIMEOUT}s\n" +
"Buffer so far:
#{buffer}'"

 RuntimeError:
   did not read expected value `=> "done"' within 300s
   Buffer so far: `
   ["override::foo", "override::bar"]
    => nil 
   *** glibc detected *** ruby: malloc(): memory corruption: 0xb6c8d008 ***
   ======= Backtrace: =========
   /lib/libc.so.6(+0x6adba)[0xb73c2dba]
   /lib/libc.so.6(+0x6dbd7)[0xb73c5bd7]
   /lib/libc.so.6(__libc_malloc+0x5c)[0xb73c781c]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x7c51b)[0xb759d51b]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x212d8)[0xb75422d8]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x13473b)[0xb765573b]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17394f)[0xb769494f]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17ab5b)[0xb769bb5b]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x182b10)[0xb76a3b10]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x187245)[0xb76a8245]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x189cd6)[0xb76aacd6]
   /opt/chef/embedded/lib/libruby.so.2.2(rb_rescue2+0xa8)[0xb757edb8]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x177da5)[0xb7698da5]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17394f)[0xb769494f]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17ab5b)[0xb769bb5b]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x1929bc)[0xb76b39bc]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x182bb5)[0xb76a3bb5]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x187245)[0xb76a8245]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x18af70)[0xb76abf70]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x1760f1)[0xb76970f1]
   /opt/chef/embedded/lib/libruby.so.2.2(rb_catch_obj+0x32)[0xb7697c22]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x176c96)[0xb7697c96]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17393d)[0xb769493d]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17ab5b)[0xb769bb5b]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x1929bc)[0xb76b39bc]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x182bb5)[0xb76a3bb5]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x187245)[0xb76a8245]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x18af70)[0xb76abf70]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x1760f1)[0xb76970f1]
   /opt/chef/embedded/lib/libruby.so.2.2(rb_catch_obj+0x32)[0xb7697c22]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x176c96)[0xb7697c96]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17393d)[0xb769493d]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x17ab5b)[0xb769bb5b]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x1929bc)[0xb76b39bc]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x182bb5)[0xb76a3bb5]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x187245)[0xb76a8245]
   /opt/chef/embedded/lib/libruby.so.2.2(rb_iseq_eval_main+0x95)[0xb76a8c45]
   /opt/chef/embedded/lib/libruby.so.2.2(+0x5ed30)[0xb757fd30]
   /opt/chef/embedded/lib/libruby.so.2.2(ruby_exec_node+0x25)[0xb757fd95]
   /opt/chef/embedded/lib/libruby.so.2.2(ruby_run_node+0x35)[0xb75812c5]
   ruby[0x80487a8]
   /lib/libc.so.6(__libc_start_main+0xe6)[0xb736ec96]
   ruby[0x80486a1]
   ======= Memory map: ========
   08048000-08049000 r-xp 00000000 ca:00 1471147    /opt/chef/embedded/bin/ruby
   08049000-0804a000 rw-p 00000000 ca:00 1471147    /opt/chef/embedded/bin/ruby
   09b1b000-0b4f0000 rw-p 00000000 00:00 0          [heap]
   b6500000-b6659000 rw-p 00000000 00:00 0 
   b6659000-b6700000 ---p 00000000 00:00 0 
   b6700000-b68ff000 rw-p 00000000 00:00 0 
   b68ff000-b6900000 ---p 00000000 00:00 0 
   b6900000-b6aff000 rw-p 00000000 00:00 0 
   b6aff000-b6b00000 ---p 00000000 00:00 0 
   b6b00000-b6c00000 rw-p 00000000 00:00 0 
   b6c1a000-b6c37000 r-xp 00000000 ca:00 450        /lib/libgcc_s.so.1
   b6c37000-b6c38000 rw-p 0001c000 ca:00 450        /lib/libgcc_s.so.1
   b6c3d000-b6c45000 r-xp 00000000 ca:00 71         /lib/libnss_nis-2.11.3.so
   b6c45000-b6c46000 r--p 00008000 ca:00 71         /lib/libnss_nis-2.11.3.so
   b6c46000-b6c47000 rw-p 00009000 ca:00 71         /lib/libnss_nis-2.11.3.so
   b6c47000-b6c5a000 r-xp 00000000 ca:00 75         /lib/libnsl-2.11.3.so
   b6c5a000-b6c5b000 r--p 00012000 ca:00 75         /lib/libnsl-2.11.3.so
   b6c5b000-b6c5c000 rw-p 00013000 ca:00 75         /lib/libnsl-2.11.3.so
   b6c5c000-b6c5e000 rw-p 00000000 00:00 0 
   b6c5e000-b6c64000 r-xp 00000000 ca:00 481        /lib/libnss_compat-2.11.3.so
   b6c64000-b6c65000 r--p 00006000 ca:00 481        /lib/libnss_compat-2.11.3.so
   b6c65000-b6c66000 rw-p 00007000 ca:00 481        /lib/libnss_compat-2.11.3.so
   b6c66000-b6c76000 r-xp 00000000 ca:00 116        /lib/libresolv-2.11.3.so
   b6c76000-b6c77000 r--p 00010000 ca:00 116        /lib/libresolv-2.11.3.so
   b6c77000-b6c78000 rw-p 00011000 ca:00 116        /lib/libresolv-2.11.3.so
   b6c78000-b6c7a000 rw-p 00000000 00:00 0 
   b6c7a000-b6c7e000 r-xp 00000000 ca:00 479        /lib/libnss_dns-2.11.3.so
   b6c7e000-b6c7f000 r--p 00004000 ca:00 479        /lib/libnss_dns-2.11.3.so
   b6c7f000-b6c80000 rw-p 00005000 ca:00 479        /lib/libnss_dns-2.11.3.so
   b6c80000-b6c8a000 r-xp 00000000 ca:00 117        /lib/libnss_files-2.11.3.so
   b6c8a000-b6c8b000 r--p 00009000 ca:00 117        /lib/libnss_files-2.11.3.so
   b6c8b000-b6c8c000 rw-p 0000a000 ca:00 117        /lib/libnss_files-2.11.3.so
   b6c8d000-b6c91000 rw-p 00000000 00:00 0 
   b6c91000-b6c92000 ---p 00000000 00:00 0 
   b6c92000-b6d92000 rw-p 00000000 00:00 0 
   b6d92000-b6d98000 r-xp 00000000 ca:00 1840280    /opt/chef/embedded/lib/libffi.so.6.0.4
   b6d98000-b6d99000 rw-p 00005000 ca:00 1840280    /opt/chef/embedded/lib/libffi.so.6.0.4
   b6d99000-b6db5000 r-xp 00000000 ca:00 1847430    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-1.9.10/lib/ffi_c.so
   b6db5000-b6db6000 rw-p 0001c000 ca:00 1847430    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-1.9.10/lib/ffi_c.so
   b6db6000-b6db7000 r-xp 00000000 ca:00 1841159    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/digest/md5.so
   b6db7000-b6db8000 rw-p 00000000 ca:00 1841159    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/digest/md5.so
   b6db8000-b6db9000 r-xp 00000000 ca:00 1841156    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/digest/sha2.so
   b6db9000-b6dba000 rw-p 00000000 ca:00 1841156    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/digest/sha2.so
   b6dba000-b6dd6000 r-xp 00000000 ca:00 1840254    /opt/chef/embedded/lib/libyaml-0.so.2.0.4
   b6dd6000-b6dd7000 rw-p 0001b000 ca:00 1840254    /opt/chef/embedded/lib/libyaml-0.so.2.0.4
   b6dd7000-b6ddd000 r-xp 00000000 ca:00 1841070    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/psych.so
   b6ddd000-b6dde000 rw-p 00005000 ca:00 1841070    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/psych.so
   b6dde000-b6de5000 r-xp 00000000 ca:00 1846736    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/ext/generator.so
   b6de5000-b6de6000 rw-p 00006000 ca:00 1846736    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/ext/generator.so
   b6de6000-b6de7000 r-xp 00000000 ca:00 1841107    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_32le.so
   b6de7000-b6de8000 rw-p 00000000 ca:00 1841107    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_32le.so
   b6de8000-b6de9000 r-xp 00000000 ca:00 1841115    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_32be.so
   b6de9000-b6dea000 rw-p 00000000 ca:00 1841115    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_32be.so
   b6dea000-b6deb000 r-xp 00000000 ca:00 1841134    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_16le.so
   b6deb000-b6dec000 rw-p 00000000 ca:00 1841134    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_16le.so
   b6dec000-b6ded000 r-xp 00000000 ca:00 1841127    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_16be.so
   b6ded000-b6dee000 rw-p 00000000 ca:00 1841127    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/enc/utf_16be.so
   b6dee000-b6df3000 r-xp 00000000 ca:00 1846735    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/ext/parser.so
   b6df3000-b6df4000 rw-p 00005000 ca:00 1846735    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/ext/parser.so
   b6df4000-b6df7000 r-xp 00000000 ca:00 1849062    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-yajl-2.2.3/lib/ffi_yajl/ext/encoder.so
   b6df7000-b6df8000 rw-p 00002000 ca:00 1849062    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-yajl-2.2.3/lib/ffi_yajl/ext/encoder.so
   b6df8000-b6dfb000 r-xp 00000000 ca:00 1849059    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-yajl-2.2.3/lib/ffi_yajl/ext/parser.so
   b6dfb000-b6dfc000 rw-p 00002000 ca:00 1849059    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-yajl-2.2.3/lib/ffi_yajl/ext/parser.so
   b6dfc000-b6e04000 r-xp 00000000 ca:00 1848501    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/libyajl2-1.2.0/lib/libyajl2/vendored-libyajl2/lib/libyajl.so
   b6e04000-b6e05000 rw-p 00007000 ca:00 1848501    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/libyajl2-1.2.0/lib/libyajl2/vendored-libyajl2/lib/libyajl.so
   b6e05000-b6e06000 r-xp 00000000 ca:00 1849060    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-yajl-2.2.3/lib/ffi_yajl/ext/dlopen.so
   b6e06000-b6e07000 rw-p 00000000 ca:00 1849060    /opt/chef/embedded/lib/ruby/gems/2.2.0/gems/ffi-yajl-2.2.3/lib/ffi_yajl/ext/dlopen.so
   b6e07000-b6e0a000 r-xp 00000000 ca:00 1841148    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/syslog.so
   b6e0a000-b6e0b000 rw-p 00002000 ca:00 1841148    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/syslog.so
   b6e0b000-b6e34000 r-xp 00000000 ca:00 1840281    /opt/chef/embedded/lib/libtinfo.so.6.0
   b6e34000-b6e37000 rw-p 00029000 ca:00 1840281    /opt/chef/embedded/lib/libtinfo.so.6.0
   b6e37000-b6e58000 r-xp 00000000 ca:00 1840256    /opt/chef/embedded/lib/libncurses.so.6.0
   b6e58000-b6e59000 rw-p 00021000 ca:00 1840256    /opt/chef/embedded/lib/libncurses.so.6.0
   b6e59000-b6e7d000 r-xp 00000000 ca:00 1840258    /opt/chef/embedded/lib/libedit.so.0.0.53
   b6e7d000-b6e7f000 rw-p 00023000 ca:00 1840258    /opt/chef/embedded/lib/libedit.so.0.0.53
   b6e7f000-b6e81000 rw-p 00000000 00:00 0 
   b6e81000-b6e86000 r-xp 00000000 ca:00 1841141    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/readline.so
   b6e86000-b6e87000 rw-p 00005000 ca:00 1841141    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/readline.so
   b6e87000-b6e88000 r-xp 00000000 ca:00 1841084    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/fcntl.so
   b6e88000-b6e89000 rw-p 00000000 ca:00 1841084    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/fcntl.so
   b6e89000-b6ed0000 r-xp 00000000 ca:00 1841080    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/openssl.so
   b6ed0000-b6ed3000 rw-p 00046000 ca:00 1841080    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/openssl.so
   b6ed3000-b6f01000 r-xp 00000000 ca:00 1841154    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/date_core.so
   b6f01000-b6f03000 rw-p 0002d000 ca:00 1841154    /opt/chef/embedded/lib/ruby/2.2.0/i686-linux/date_core.soAborted
   '
 # ./spec/functional/shell_spec.rb:44:in `read_until'
 # ./spec/functional/shell_spec.rb:107:in `run_chef_shell_with'
 # ./spec/functional/shell_spec.rb:138:in `block (3 levels) in <top (required)>'
#3

Updated by jeremyevans0 (Jeremy Evans) 3 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF