|
$ LANG=C gdb /usr/local/anyenv/envs/rbenv/versions/2.4.0-dev/bin/ruby core
|
|
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
|
|
Copyright (C) 2016 Free Software Foundation, Inc.
|
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
|
|
and "show warranty" for details.
|
|
This GDB was configured as "x86_64-linux-gnu".
|
|
Type "show configuration" for configuration details.
|
|
For bug reporting instructions, please see:
|
|
<http://www.gnu.org/software/gdb/bugs/>.
|
|
Find the GDB manual and other documentation resources online at:
|
|
<http://www.gnu.org/software/gdb/documentation/>.
|
|
For help, type "help".
|
|
Type "apropos word" to search for commands related to "word"...
|
|
Reading symbols from /usr/local/anyenv/envs/rbenv/versions/2.4.0-dev/bin/ruby...done.
|
|
[New LWP 15661]
|
|
[New LWP 15685]
|
|
[Thread debugging using libthread_db enabled]
|
|
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
|
|
Core was generated by `ruby -rripper -e Ripper.sexp(File.read("ripper_segv.html.erb"))'.
|
|
Program terminated with signal SIGABRT, Aborted.
|
|
#0 0x00007f1d2a89a418 in __GI_raise (sig=sig@entry=6)
|
|
at ../sysdeps/unix/sysv/linux/raise.c:54
|
|
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
|
|
[Current thread is 1 (Thread 0x7f1d2b7a0700 (LWP 15661))]
|
|
(gdb) bt
|
|
#0 0x00007f1d2a89a418 in __GI_raise (sig=sig@entry=6)
|
|
at ../sysdeps/unix/sysv/linux/raise.c:54
|
|
#1 0x00007f1d2a89c01a in __GI_abort () at abort.c:89
|
|
#2 0x000055dcf9feb35e in die () at error.c:380
|
|
#3 rb_bug_context (ctx=ctx@entry=0x55dcfb7bd900,
|
|
fmt=fmt@entry=0x55dcfa01e7c2 "Segmentation fault at %p") at error.c:410
|
|
#4 0x000055dcf9ee90ee in sigsegv (sig=<optimized out>, info=0x55dcfb7bda30,
|
|
ctx=0x55dcfb7bd900) at signal.c:896
|
|
#5 <signal handler called>
|
|
#6 0x000055dcf9f0007c in str_buf_cat (str=str@entry=8,
|
|
ptr=ptr@entry=0x55dcfb756598 "-", len=1) at string.c:2564
|
|
#7 0x000055dcf9f09434 in rb_str_cat (len=<optimized out>,
|
|
ptr=0x55dcfb756598 "-", str=8) at string.c:2622
|
|
#8 rb_str_cat_cstr (str=str@entry=8,
|
|
ptr=ptr@entry=0xb <error: Cannot access memory at address 0xb>)
|
|
at string.c:2629
|
|
#9 0x000055dcf9fea6c8 in err_vcatf (args=0x7fffb7a76e98,
|
|
fmt=0x55dcfa007780 "regexp encoding option '%c' differs from source encoding '%s'", line=11, file=0xb <error: Cannot access memory at address 0xb>,
|
|
pre=0x55dcfa02b1cf "\n", str=8) at error.c:87
|
|
#10 rb_syntax_error_append (exc=101, file=<optimized out>, line=11,
|
|
column=<optimized out>, enc=<optimized out>,
|
|
fmt=fmt@entry=0x55dcfa007780 "regexp encoding option '%c' differs from source encoding '%s'", args=0x7fffb7a76e98) at error.c:118
|
|
#11 0x000055dcf9e70855 in parser_compile_error (
|
|
parser=parser@entry=0x55dcfbbaff00,
|
|
fmt=fmt@entry=0x55dcfa007780 "regexp encoding option '%c' differs from source encoding '%s'") at parse.y:11081
|
|
#12 0x000055dcf9e7b514 in reg_fragment_setenc_gen (options=25872,
|
|
str=94407603767440, parser=0x55dcfbbaff00) at parse.y:10574
|
|
#13 parser_reg_compile (options=25872, str=94407603767440,
|
|
parser=0x55dcfbbaff00) at parse.y:10642
|
|
#14 rb_parser_reg_compile (parser=parser@entry=0x55dcfbbaff00,
|
|
str=94407603767440, options=25872, errmsg=errmsg@entry=0x7fffb7a77088)
|
|
at parse.y:10672
|
|
#15 0x00007f1d29c6233a in ripper_yyparse (parser=parser@entry=0x55dcfbbaff00)
|
|
at ripper.y:4055
|
|
#16 0x00007f1d29c68ef5 in ripper_parse0 (
|
|
parser_v=parser_v@entry=94407599937360) at ripper.y:11398
|
|
#17 0x000055dcf9dfe7ea in rb_ensure (
|
|
b_proc=b_proc@entry=0x7f1d29c68e40 <ripper_parse0>,
|
|
data1=data1@entry=94407599937360,
|
|
e_proc=e_proc@entry=0x7f1d29c54d40 <ripper_ensure>,
|
|
data2=data2@entry=94407599937360) at eval.c:899
|
|
#18 0x00007f1d29c556c5 in ripper_parse (self=94407599937360) at ripper.y:11434
|
|
#19 0x000055dcf9f55b55 in vm_call_cfunc_with_frame (ci=<optimized out>,
|
|
cc=<optimized out>, calling=<optimized out>, reg_cfp=0x7f1d2b79df80,
|
|
th=0x55dcfb74f600) at vm_insnhelper.c:1729
|
|
#20 vm_call_cfunc (th=0x55dcfb74f600, reg_cfp=0x7f1d2b79df80,
|
|
---Type <return> to continue, or q <return> to quit---
|
|
calling=<optimized out>, ci=<optimized out>, cc=<optimized out>)
|
|
at vm_insnhelper.c:1824
|
|
#21 0x000055dcf9f635ee in vm_call_method_each_type (
|
|
th=th@entry=0x55dcfb74f600, cfp=cfp@entry=0x7f1d2b79df80,
|
|
calling=0x7fffb7a77cd0, ci=<optimized out>, cc=<optimized out>)
|
|
at vm_insnhelper.c:2115
|
|
#22 0x000055dcf9f63b43 in vm_call_method (th=0x55dcfb74f600,
|
|
cfp=0x7f1d2b79df80, calling=<optimized out>, ci=<optimized out>,
|
|
cc=<optimized out>) at vm_insnhelper.c:2265
|
|
#23 0x000055dcf9f5cfb8 in vm_exec_core (th=th@entry=0x55dcfb74f600,
|
|
initial=initial@entry=0) at insns.def:1064
|
|
#24 0x000055dcf9f6200b in vm_exec (th=0x55dcfb74f600) at vm.c:1710
|
|
#25 0x000055dcf9f6b21e in rb_iseq_eval_main (iseq=iseq@entry=0x55dcfb754da0)
|
|
at vm.c:1955
|
|
#26 0x000055dcf9dfa3ed in ruby_exec_internal (n=0x55dcfb754da0) at eval.c:244
|
|
#27 0x000055dcf9dfda2f in ruby_exec_node (n=0x55dcfb754da0) at eval.c:308
|
|
#28 ruby_run_node (n=<optimized out>) at eval.c:300
|
|
#29 0x000055dcf9dfa0cb in main (argc=4, argv=0x7fffb7a784c8) at main.c:36
|
|
(gdb) q
|