Project

General

Profile

Actions

Bug #10734

closed

Segfault when combining default arguments with keyword arguments

Added by natano (Martin Natano) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
[ruby-core:67541]

Description

Combining default arguments with a keyword argument produces a segfault when the function is called with hash that contains a string key.
See the following transcript:

natano@ketzer:~$ irb
2.2.0 :001 > def foo(data=nil, foo: :bar)
2.2.0 :002?>   end
 => :foo 
2.2.0 :003 > foo({'foo' => 'bla'})
(irb):3: [BUG] Segmentation fault at 0x00000000000010
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0018 p:0011 s:0074 e:000071 EVAL   (irb):3 [FINISH]
c:0017 p:---- s:0070 e:000069 CFUNC  :eval
c:0016 p:0024 s:0063 e:000062 METHOD /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/workspace.rb:86
c:0015 p:0025 s:0056 e:000054 METHOD /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/context.rb:379
c:0014 p:0022 s:0050 e:000049 BLOCK  /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:489
c:0013 p:0040 s:0042 e:000041 METHOD /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:623
c:0012 p:0009 s:0037 e:000036 BLOCK  /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:486
c:0011 p:0118 s:0033 e:000032 BLOCK  /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/ruby-lex.rb:245 [FINISH]
c:0010 p:---- s:0030 e:000029 CFUNC  :loop
c:0009 p:0007 s:0027 e:000026 BLOCK  /home/natano/.rvm/rubies/ruby-2.2.0/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/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/ruby-lex.rb:230
c:0006 p:0030 s:0018 E:001e70 METHOD /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:485
c:0005 p:0008 s:0015 e:000014 BLOCK  /home/natano/.rvm/rubies/ruby-2.2.0/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:002230 METHOD /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:394
c:0002 p:0021 s:0004 E:001190 EVAL   /home/natano/.rvm/rubies/ruby-2.2.0/bin/irb:11 [FINISH]
c:0001 p:0000 s:0002 E:002540 TOP    [FINISH]

-- Ruby level backtrace information ----------------------------------------
/home/natano/.rvm/rubies/ruby-2.2.0/bin/irb:11:in `<main>'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:394:in `start'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:394:in `catch'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:395:in `block in start'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:485:in `eval_input'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in `each_top_level_statement'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/ruby-lex.rb:230:in `catch'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in `block in each_top_level_statement'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/ruby-lex.rb:231:in `loop'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/ruby-lex.rb:245:in `block (2 levels) in each_top_level_statement'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:486:in `block in eval_input'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:623:in `signal_status'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb.rb:489:in `block (2 levels) in eval_input'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/context.rb:379:in `evaluate'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/workspace.rb:86:in `evaluate'
/home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/irb/workspace.rb:86:in `eval'
(irb):3:in `irb_binding'

-- Machine register context ------------------------------------------------
 RIP: 0x00007fbc48c75211 RBP: 0x00007fff01333330 RSP: 0x00007fff01333280
 RAX: 0x0000000000000000 RBX: 0x00007fbc450fe260 RCX: 0x00007fbc450fe258
 RDX: 0x0000000000000001 RDI: 0x0000000000000000 RSI: 0x0000000000000008
  R8: 0x00007fbc450fe260  R9: 0x0000000000cac440 R10: 0x3eaaa1611270d0bb
 R11: 0x0000000000f57610 R12: 0x0000000000f573f0 R13: 0x0000000000000000
 R14: 0x0000000000000000 R15: 0x0000000000000000 EFL: 0x0000000000010293

-- C level backtrace information -------------------------------------------
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_vm_bugreport+0x4ea) [0x7fbc48c7f90a] vm_dump.c:693
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_bug_context+0xcb) [0x7fbc48b1610b] error.c:389
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(sigsegv+0x52) [0x7fbc48bf4142] signal.c:878
/lib/x86_64-linux-gnu/libpthread.so.0 [0x7fbc4888a8d0]
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(setup_parameters_complex+0xa81) [0x7fbc48c75211] vm_args.c:629
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_iseq_setup+0x60a) [0x7fbc48c75d9a] vm_insnhelper.c:1098
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_method+0x106) [0x7fbc48c78c46] vm_insnhelper.c:1651
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec_core+0x1178) [0x7fbc48c6c398] insns.def:1054
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec+0x78) [0x7fbc48c70a08] vm.c:1407
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(eval_string_with_cref+0x44c) [0x7fbc48c7191c] vm_eval.c:1299
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_f_eval+0x7d) [0x7fbc48c7201d] vm_eval.c:1338
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_cfunc+0x129) [0x7fbc48c66179] vm_insnhelper.c:1360
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec_core+0x1178) [0x7fbc48c6c398] insns.def:1054
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec+0x78) [0x7fbc48c70a08] vm.c:1407
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(loop_i+0x69c) [0x7fbc48c7af7c] vm.c:821
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_rescue2+0xbe) [0x7fbc48b1e35e] eval.c:808
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_f_loop+0x2e) [0x7fbc48c641fe] vm_eval.c:1060
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_cfunc+0x129) [0x7fbc48c66179] vm_insnhelper.c:1360
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_method+0x12e) [0x7fbc48c78c6e] vm_insnhelper.c:1656
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec_core+0x10cf) [0x7fbc48c6c2ef] insns.def:1024
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec+0x78) [0x7fbc48c70a08] vm.c:1407
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(catch_i+0x447) [0x7fbc48c7b427] vm.c:821
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_catch_protect+0xb9) [0x7fbc48c67d29] vm_eval.c:1960
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_catch_obj+0xe) [0x7fbc48c67ebe] vm_eval.c:1939
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_f_catch+0x2e) [0x7fbc48c67f6e] vm_eval.c:1925
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_cfunc+0x129) [0x7fbc48c66179] vm_insnhelper.c:1360
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_method+0x12e) [0x7fbc48c78c6e] vm_insnhelper.c:1656
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec_core+0x10cf) [0x7fbc48c6c2ef] insns.def:1024
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec+0x78) [0x7fbc48c70a08] vm.c:1407
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(catch_i+0x447) [0x7fbc48c7b427] vm.c:821
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_catch_protect+0xb9) [0x7fbc48c67d29] vm_eval.c:1960
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_catch_obj+0xe) [0x7fbc48c67ebe] vm_eval.c:1939
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_f_catch+0x2e) [0x7fbc48c67f6e] vm_eval.c:1925
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_cfunc+0x129) [0x7fbc48c66179] vm_insnhelper.c:1360
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_call_method+0x12e) [0x7fbc48c78c6e] vm_insnhelper.c:1656
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec_core+0x10cf) [0x7fbc48c6c2ef] insns.def:1024
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(vm_exec+0x78) [0x7fbc48c70a08] vm.c:1407
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(rb_iseq_eval_main+0x20f) [0x7fbc48c7256f] vm.c:1677
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(ruby_exec_internal+0xbf) [0x7fbc48b1b6af] eval.c:252
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(ruby_exec_node+0x1d) [0x7fbc48b1da5d] eval.c:317
/home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2(ruby_run_node+0x1e) [0x7fbc48b2031e] eval.c:309
/home/natano/.rvm/rubies/ruby-2.2.0/bin/ruby(main+0x4b) [0x40089b] main.c:36

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

* Loaded script: irb

* Loaded features:

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

* Process memory map:

00400000-00401000 r-xp 00000000 fe:03 1075323510                         /home/natano/.rvm/rubies/ruby-2.2.0/bin/ruby
00600000-00601000 rw-p 00000000 fe:03 1075323510                         /home/natano/.rvm/rubies/ruby-2.2.0/bin/ruby
0097f000-00f76000 rw-p 00000000 00:00 0                                  [heap]
7fbc4313b000-7fbc432e2000 r--s 00000000 fe:01 50333397                   /lib/x86_64-linux-gnu/libc-2.19.so
7fbc432e2000-7fbc43386000 r--s 00000000 fe:01 16782461                   /usr/lib/debug/lib/x86_64-linux-gnu/libpthread-2.19.so
7fbc43386000-7fbc4403e000 r--s 00000000 fe:03 1611924103                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2.0
7fbc4403e000-7fbc44054000 r-xp 00000000 fe:01 50351640                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fbc44054000-7fbc44253000 ---p 00016000 fe:01 50351640                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fbc44253000-7fbc44254000 rw-p 00015000 fe:01 50351640                   /lib/x86_64-linux-gnu/libgcc_s.so.1
7fbc44254000-7fbc4427a000 r-xp 00000000 fe:01 50333372                   /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fbc4427a000-7fbc44479000 ---p 00026000 fe:01 50333372                   /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fbc44479000-7fbc4447d000 r--p 00025000 fe:01 50333372                   /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fbc4447d000-7fbc4447e000 rw-p 00029000 fe:01 50333372                   /lib/x86_64-linux-gnu/libtinfo.so.5.9
7fbc4447e000-7fbc444a2000 r-xp 00000000 fe:01 50355139                   /lib/x86_64-linux-gnu/libncurses.so.5.9
7fbc444a2000-7fbc446a1000 ---p 00024000 fe:01 50355139                   /lib/x86_64-linux-gnu/libncurses.so.5.9
7fbc446a1000-7fbc446a2000 r--p 00023000 fe:01 50355139                   /lib/x86_64-linux-gnu/libncurses.so.5.9
7fbc446a2000-7fbc446a3000 rw-p 00024000 fe:01 50355139                   /lib/x86_64-linux-gnu/libncurses.so.5.9
7fbc446a3000-7fbc446e3000 r-xp 00000000 fe:01 50377231                   /lib/x86_64-linux-gnu/libreadline.so.6.3
7fbc446e3000-7fbc448e3000 ---p 00040000 fe:01 50377231                   /lib/x86_64-linux-gnu/libreadline.so.6.3
7fbc448e3000-7fbc448e5000 r--p 00040000 fe:01 50377231                   /lib/x86_64-linux-gnu/libreadline.so.6.3
7fbc448e5000-7fbc448ec000 rw-p 00042000 fe:01 50377231                   /lib/x86_64-linux-gnu/libreadline.so.6.3
7fbc448ec000-7fbc448ed000 rw-p 00000000 00:00 0 
7fbc448ed000-7fbc448f4000 r-xp 00000000 fe:03 1075344618                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/readline.so
7fbc448f4000-7fbc44af4000 ---p 00007000 fe:03 1075344618                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/readline.so
7fbc44af4000-7fbc44af5000 rw-p 00007000 fe:03 1075344618                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/readline.so
7fbc44af5000-7fbc44af8000 r-xp 00000000 fe:03 1075344639                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/thread.so
7fbc44af8000-7fbc44cf8000 ---p 00003000 fe:03 1075344639                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/thread.so
7fbc44cf8000-7fbc44cf9000 rw-p 00003000 fe:03 1075344639                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/thread.so
7fbc44cf9000-7fbc44cfb000 r-xp 00000000 fe:03 1611927307                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
7fbc44cfb000-7fbc44efb000 ---p 00002000 fe:03 1611927307                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
7fbc44efb000-7fbc44efc000 rw-p 00002000 fe:03 1611927307                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/enc/trans/transdb.so
7fbc44efc000-7fbc44efe000 r-xp 00000000 fe:03 1075335427                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
7fbc44efe000-7fbc450fd000 ---p 00002000 fe:03 1075335427                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
7fbc450fd000-7fbc450fe000 rw-p 00001000 fe:03 1075335427                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/x86_64-linux/enc/encdb.so
7fbc450fe000-7fbc451ff000 rw-p 00000000 00:00 0 
7fbc451ff000-7fbc45225000 r-xp 00000000 fe:01 50336135                   /lib/x86_64-linux-gnu/libpng12.so.0.50.0
7fbc45225000-7fbc45424000 ---p 00026000 fe:01 50336135                   /lib/x86_64-linux-gnu/libpng12.so.0.50.0
7fbc45424000-7fbc45425000 r--p 00025000 fe:01 50336135                   /lib/x86_64-linux-gnu/libpng12.so.0.50.0
7fbc45425000-7fbc45426000 rw-p 00026000 fe:01 50336135                   /lib/x86_64-linux-gnu/libpng12.so.0.50.0
7fbc45426000-7fbc45440000 r-xp 00000000 fe:01 50337312                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fbc45440000-7fbc4563f000 ---p 0001a000 fe:01 50337312                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fbc4563f000-7fbc45640000 r--p 00019000 fe:01 50337312                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fbc45640000-7fbc45641000 rw-p 0001a000 fe:01 50337312                   /lib/x86_64-linux-gnu/libz.so.1.2.8
7fbc45641000-7fbc45667000 r-xp 00000000 fe:01 50345320                   /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fbc45667000-7fbc45866000 ---p 00026000 fe:01 50345320                   /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fbc45866000-7fbc45869000 r--p 00025000 fe:01 50345320                   /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fbc45869000-7fbc4586a000 rw-p 00028000 fe:01 50345320                   /lib/x86_64-linux-gnu/libexpat.so.1.6.0
7fbc4586a000-7fbc4586f000 r-xp 00000000 fe:01 33608119                   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fbc4586f000-7fbc45a6e000 ---p 00005000 fe:01 33608119                   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fbc45a6e000-7fbc45a6f000 r--p 00004000 fe:01 33608119                   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fbc45a6f000-7fbc45a70000 rw-p 00005000 fe:01 33608119                   /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7fbc45a70000-7fbc45a79000 r-xp 00000000 fe:01 33662930                   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fbc45a79000-7fbc45c78000 ---p 00009000 fe:01 33662930                   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fbc45c78000-7fbc45c79000 r--p 00008000 fe:01 33662930                   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fbc45c79000-7fbc45c7a000 rw-p 00009000 fe:01 33662930                   /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7fbc45c7a000-7fbc45d1d000 r-xp 00000000 fe:01 33727978                   /usr/lib/x86_64-linux-gnu/libfreetype.so.6.11.1
7fbc45d1d000-7fbc45f1d000 ---p 000a3000 fe:01 33727978                   /usr/lib/x86_64-linux-gnu/libfreetype.so.6.11.1
7fbc45f1d000-7fbc45f23000 r--p 000a3000 fe:01 33727978                   /usr/lib/x86_64-linux-gnu/libfreetype.so.6.11.1
7fbc45f23000-7fbc45f24000 rw-p 000a9000 fe:01 33727978                   /usr/lib/x86_64-linux-gnu/libfreetype.so.6.11.1
7fbc45f24000-7fbc45f5f000 r-xp 00000000 fe:01 35474969                   /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fbc45f5f000-7fbc4615e000 ---p 0003b000 fe:01 35474969                   /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fbc4615e000-7fbc46160000 r--p 0003a000 fe:01 35474969                   /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fbc46160000-7fbc46161000 rw-p 0003c000 fe:01 35474969                   /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.8.0
7fbc46161000-7fbc46166000 r-xp 00000000 fe:01 33626988                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fbc46166000-7fbc46365000 ---p 00005000 fe:01 33626988                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fbc46365000-7fbc46366000 rw-p 00004000 fe:01 33626988                   /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fbc46366000-7fbc46369000 r-xp 00000000 fe:01 33628408                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fbc46369000-7fbc46568000 ---p 00003000 fe:01 33628408                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fbc46568000-7fbc46569000 r--p 00002000 fe:01 33628408                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fbc46569000-7fbc4656a000 rw-p 00003000 fe:01 33628408                   /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fbc4656a000-7fbc46574000 r-xp 00000000 fe:01 33610985                   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fbc46574000-7fbc46773000 ---p 0000a000 fe:01 33610985                   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fbc46773000-7fbc46774000 r--p 00009000 fe:01 33610985                   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fbc46774000-7fbc46775000 rw-p 0000a000 fe:01 33610985                   /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7fbc46775000-7fbc4678a000 r-xp 00000000 fe:01 33595597                   /usr/lib/x86_64-linux-gnu/libXft.so.2.3.2
7fbc4678a000-7fbc46989000 ---p 00015000 fe:01 33595597                   /usr/lib/x86_64-linux-gnu/libXft.so.2.3.2
7fbc46989000-7fbc4698a000 r--p 00014000 fe:01 33595597                   /usr/lib/x86_64-linux-gnu/libXft.so.2.3.2
7fbc4698a000-7fbc4698b000 rw-p 00015000 fe:01 33595597                   /usr/lib/x86_64-linux-gnu/libXft.so.2.3.2
7fbc4698b000-7fbc4698d000 r-xp 00000000 fe:01 33613034                   /usr/lib/x86_64-linux-gnu/libxcb-xtest.so.0.0.0
7fbc4698d000-7fbc46b8c000 ---p 00002000 fe:01 33613034                   /usr/lib/x86_64-linux-gnu/libxcb-xtest.so.0.0.0
7fbc46b8c000-7fbc46b8d000 r--p 00001000 fe:01 33613034                   /usr/lib/x86_64-linux-gnu/libxcb-xtest.so.0.0.0
7fbc46b8d000-7fbc46b8e000 rw-p 00002000 fe:01 33613034                   /usr/lib/x86_64-linux-gnu/libxcb-xtest.so.0.0.0
7fbc46b8e000-7fbc46b94000 r-xp 00000000 fe:01 33613046                   /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0
7fbc46b94000-7fbc46d93000 ---p 00006000 fe:01 33613046                   /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0
7fbc46d93000-7fbc46d95000 r--p 00005000 fe:01 33613046                   /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0
7fbc46d95000-7fbc46d96000 rw-p 00007000 fe:01 33613046                   /usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0
7fbc46d96000-7fbc46d98000 r-xp 00000000 fe:01 33623072                   /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1.0.0
7fbc46d98000-7fbc46f97000 ---p 00002000 fe:01 33623072                   /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1.0.0
7fbc46f97000-7fbc46f98000 r--p 00001000 fe:01 33623072                   /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1.0.0
7fbc46f98000-7fbc46f99000 rw-p 00002000 fe:01 33623072                   /usr/lib/x86_64-linux-gnu/libxcb-keysyms.so.1.0.0
7fbc46f99000-7fbc46fa5000 r-xp 00000000 fe:01 33605326                   /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0.1.0
7fbc46fa5000-7fbc471a5000 ---p 0000c000 fe:01 33605326                   /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0.1.0
7fbc471a5000-7fbc471a6000 r--p 0000c000 fe:01 33605326                   /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0.1.0
7fbc471a6000-7fbc471a7000 rw-p 0000d000 fe:01 33605326                   /usr/lib/x86_64-linux-gnu/libxcb-randr.so.0.1.0
7fbc471a7000-7fbc471ab000 r-xp 00000000 fe:01 33611684                   /usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4.0.0
7fbc471ab000-7fbc473aa000 ---p 00004000 fe:01 33611684                   /usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4.0.0
7fbc473aa000-7fbc473ab000 r--p 00003000 fe:01 33611684                   /usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4.0.0
7fbc473ab000-7fbc473ac000 rw-p 00004000 fe:01 33611684                   /usr/lib/x86_64-linux-gnu/libxcb-icccm.so.4.0.0
7fbc473ac000-7fbc473cd000 r-xp 00000000 fe:01 33642182                   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fbc473cd000-7fbc475cc000 ---p 00021000 fe:01 33642182                   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fbc475cc000-7fbc475cd000 r--p 00020000 fe:01 33642182                   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fbc475cd000-7fbc475ce000 rw-p 00021000 fe:01 33642182                   /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7fbc475ce000-7fbc475cf000 r-xp 00000000 fe:01 33623093                   /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fbc475cf000-7fbc477ce000 ---p 00001000 fe:01 33623093                   /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fbc477ce000-7fbc477cf000 r--p 00000000 fe:01 33623093                   /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fbc477cf000-7fbc477d0000 rw-p 00001000 fe:01 33623093                   /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7fbc477d0000-7fbc4790c000 r-xp 00000000 fe:01 33600321                   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fbc4790c000-7fbc47b0b000 ---p 0013c000 fe:01 33600321                   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fbc47b0b000-7fbc47b0d000 r--p 0013b000 fe:01 33600321                   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fbc47b0d000-7fbc47b12000 rw-p 0013d000 fe:01 33600321                   /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7fbc47b12000-7fbc47b13000 rw-p 00000000 00:00 0 
7fbc47b13000-7fbc47cb2000 r-xp 00000000 fe:01 50333397                   /lib/x86_64-linux-gnu/libc-2.19.so
7fbc47cb2000-7fbc47eb2000 ---p 0019f000 fe:01 50333397                   /lib/x86_64-linux-gnu/libc-2.19.so
7fbc47eb2000-7fbc47eb6000 r--p 0019f000 fe:01 50333397                   /lib/x86_64-linux-gnu/libc-2.19.so
7fbc47eb6000-7fbc47eb8000 rw-p 001a3000 fe:01 50333397                   /lib/x86_64-linux-gnu/libc-2.19.so
7fbc47eb8000-7fbc47ebc000 rw-p 00000000 00:00 0 
7fbc47ebc000-7fbc47fbc000 r-xp 00000000 fe:01 50342772                   /lib/x86_64-linux-gnu/libm-2.19.so
7fbc47fbc000-7fbc481bb000 ---p 00100000 fe:01 50342772                   /lib/x86_64-linux-gnu/libm-2.19.so
7fbc481bb000-7fbc481bc000 r--p 000ff000 fe:01 50342772                   /lib/x86_64-linux-gnu/libm-2.19.so
7fbc481bc000-7fbc481bd000 rw-p 00100000 fe:01 50342772                   /lib/x86_64-linux-gnu/libm-2.19.so
7fbc481bd000-7fbc481c5000 r-xp 00000000 fe:01 50338155                   /lib/x86_64-linux-gnu/libcrypt-2.19.so
7fbc481c5000-7fbc483c4000 ---p 00008000 fe:01 50338155                   /lib/x86_64-linux-gnu/libcrypt-2.19.so
7fbc483c4000-7fbc483c5000 r--p 00007000 fe:01 50338155                   /lib/x86_64-linux-gnu/libcrypt-2.19.so
7fbc483c5000-7fbc483c6000 rw-p 00008000 fe:01 50338155                   /lib/x86_64-linux-gnu/libcrypt-2.19.so
7fbc483c6000-7fbc483f4000 rw-p 00000000 00:00 0 
7fbc483f4000-7fbc483f7000 r-xp 00000000 fe:01 50340713                   /lib/x86_64-linux-gnu/libdl-2.19.so
7fbc483f7000-7fbc485f6000 ---p 00003000 fe:01 50340713                   /lib/x86_64-linux-gnu/libdl-2.19.so
7fbc485f6000-7fbc485f7000 r--p 00002000 fe:01 50340713                   /lib/x86_64-linux-gnu/libdl-2.19.so
7fbc485f7000-7fbc485f8000 rw-p 00003000 fe:01 50340713                   /lib/x86_64-linux-gnu/libdl-2.19.so
7fbc485f8000-7fbc48679000 r-xp 00000000 fe:01 33596936                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.2.0
7fbc48679000-7fbc48879000 ---p 00081000 fe:01 33596936                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.2.0
7fbc48879000-7fbc4887a000 r--p 00081000 fe:01 33596936                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.2.0
7fbc4887a000-7fbc4887b000 rw-p 00082000 fe:01 33596936                   /usr/lib/x86_64-linux-gnu/libgmp.so.10.2.0
7fbc4887b000-7fbc48893000 r-xp 00000000 fe:01 50333393                   /lib/x86_64-linux-gnu/libpthread-2.19.so
7fbc48893000-7fbc48a92000 ---p 00018000 fe:01 50333393                   /lib/x86_64-linux-gnu/libpthread-2.19.so
7fbc48a92000-7fbc48a93000 r--p 00017000 fe:01 50333393                   /lib/x86_64-linux-gnu/libpthread-2.19.so
7fbc48a93000-7fbc48a94000 rw-p 00018000 fe:01 50333393                   /lib/x86_64-linux-gnu/libpthread-2.19.so
7fbc48a94000-7fbc48a98000 rw-p 00000000 00:00 0 
7fbc48a98000-7fbc48d5a000 r-xp 00000000 fe:03 1611924103                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2.0
7fbc48d5a000-7fbc48f59000 ---p 002c2000 fe:03 1611924103                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2.0
7fbc48f59000-7fbc48f62000 rw-p 002c1000 fe:03 1611924103                 /home/natano/.rvm/rubies/ruby-2.2.0/lib/libruby.so.2.2.0
7fbc48f62000-7fbc48f72000 rw-p 00000000 00:00 0 
7fbc48f72000-7fbc48f74000 r-xp 00000000 fe:01 41745                      /usr/local/lib/libswmhack.so.0.0
7fbc48f74000-7fbc49173000 ---p 00002000 fe:01 41745                      /usr/local/lib/libswmhack.so.0.0
7fbc49173000-7fbc49174000 rw-p 00001000 fe:01 41745                      /usr/local/lib/libswmhack.so.0.0
7fbc49174000-7fbc49194000 r-xp 00000000 fe:01 50333394                   /lib/x86_64-linux-gnu/ld-2.19.so
7fbc49197000-7fbc491b9000 r--s 00000000 fe:01 50333393                   /lib/x86_64-linux-gnu/libpthread-2.19.so
7fbc491b9000-7fbc491db000 r--s 00000000 fe:03 1075323510                 /home/natano/.rvm/rubies/ruby-2.2.0/bin/ruby
7fbc491db000-7fbc49364000 r--p 00000000 fe:01 96973                      /usr/lib/locale/locale-archive
7fbc49364000-7fbc49371000 rw-p 00000000 00:00 0 
7fbc49384000-7fbc49385000 rw-p 00000000 00:00 0 
7fbc49385000-7fbc4938c000 r--s 00000000 fe:01 2954313                    /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7fbc4938c000-7fbc4938e000 rw-p 00000000 00:00 0 
7fbc4938e000-7fbc4938f000 ---p 00000000 00:00 0 
7fbc4938f000-7fbc49394000 rw-p 00000000 00:00 0                          [stack:21662]
7fbc49394000-7fbc49395000 r--p 00020000 fe:01 50333394                   /lib/x86_64-linux-gnu/ld-2.19.so
7fbc49395000-7fbc49396000 rw-p 00021000 fe:01 50333394                   /lib/x86_64-linux-gnu/ld-2.19.so
7fbc49396000-7fbc49397000 rw-p 00000000 00:00 0 
7fff01317000-7fff01338000 rw-p 00000000 00:00 0 
7fff0137c000-7fff0137e000 r-xp 00000000 00:00 0                          [vdso]
7fff0137e000-7fff01380000 r--p 00000000 00:00 0                          [vvar]
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
natano@ketzer:~$

Related issues 2 (0 open2 closed)

Is duplicate of Ruby master - Bug #10685: Segfault from keyword rest arg when coercing an object that defines to_hash Closed12/31/2014Actions
Has duplicate Ruby master - Bug #10966: Seg fault when param with default is followed by named paramClosedmatz (Yukihiro Matsumoto)03/11/2015Actions

Updated by Hanmac (Hans Mackowiak) almost 10 years ago

if i use ruby2.2.0 it does happen for me too ...
and it seems it some kind of stack loop error because it seems to repeat itself

i tested it against ruby-head and there it seems the problem is fixed but not backported yet

Actions #2

Updated by ktsj (Kazuki Tsujimoto) almost 10 years ago

  • Is duplicate of Bug #10685: Segfault from keyword rest arg when coercing an object that defines to_hash added

Updated by ktsj (Kazuki Tsujimoto) almost 10 years ago

  • Status changed from Open to Closed
Actions #4

Updated by usa (Usaku NAKAMURA) over 9 years ago

  • Has duplicate Bug #10966: Seg fault when param with default is followed by named param added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0