Skip to content

Instantly share code, notes, and snippets.

@banister
Created December 29, 2012 12:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banister/4406551 to your computer and use it in GitHub Desktop.
Save banister/4406551 to your computer and use it in GitHub Desktop.
Program received signal SIGSEGV, Segmentation fault.
0x0000555555696a89 in VM_EP_LEP (ep=0xc) at vm.c:28
28 if (VM_EP_LEP_P(ep)) {
(gdb) bt
#0 0x0000555555696a89 in VM_EP_LEP (ep=0xc) at vm.c:28
#1 0x0000555555696ae1 in VM_CF_LEP (cfp=0x7ffff7fdeda8) at vm.c:44
#2 0x00005555556abeaa in rb_vm_make_env_object (th=0x5555559ec550, cfp=0x7ffff7fdeda8) at vm.c:490
#3 0x0000555555579644 in rb_binding_new_with_cfp (th=0x5555559ec550, src_cfp=0x7ffff7fdeda8) at proc.c:324
#4 0x00005555556b3063 in collect_caller_bindings_iseq (arg=0x7fffffff7e50, cfp=0x7ffff7fdeda8) at vm_backtrace.c:880
#5 0x00005555556b2222 in backtrace_each (th=0x5555559ec550, init=0x5555556b2ff6 <collect_caller_bindings_init>,
iter_iseq=0x5555556b3004 <collect_caller_bindings_iseq>, iter_cfunc=0x5555556b30a5 <collect_caller_bindings_cfunc>, arg=0x7fffffff7e50) at vm_backtrace.c:399
#6 0x00005555556b313d in collect_caller_bindings (th=0x5555559ec550) at vm_backtrace.c:901
#7 0x00005555556b31d3 in rb_debug_inspector_open (func=0x7ffff4967c60 <breakpoint_i>, data=0x555555f59218) at vm_backtrace.c:926
#8 0x0000555555577287 in rb_ensure (b_proc=0x7ffff4967c50 <di_open_body>, data1=93825002738200, e_proc=0x7ffff4967c10 <di_open_ensure>, data2=93825002738200)
@banister
Copy link
Author

static inline VALUE *
VM_EP_LEP(VALUE *ep)
{
    while (1) {
    if (VM_EP_LEP_P(ep)) {
        return ep;
    }
    ep = VM_EP_PREV_EP(ep);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment