Skip to content

Instantly share code, notes, and snippets.

@matsumotory
Created December 13, 2012 06:33
Show Gist options
  • Select an option

  • Save matsumotory/4274538 to your computer and use it in GitHub Desktop.

Select an option

Save matsumotory/4274538 to your computer and use it in GitHub Desktop.
mruby-http SIGSEGV on h.parse_request
(gdb) r http.rb
Starting program: DEV/mruby-http/example/runner http.rb
warning: .dynamic section for "/lib/libc.so.6" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
[Thread debugging using libthread_db enabled]
http
localhost
8080
/foo
bar=baz
Program received signal SIGSEGV, Segmentation fault.
mrb_run (mrb=0x80ed170, proc=0x80ef00c, self=...) at vm.c:851
851 mrb->stack[0] = result;
(gdb) where
#0 mrb_run (mrb=0x80ed170, proc=0x80ef00c, self=...) at vm.c:851
#1 0x080635f5 in load_exec (mrb=0x80ed170, p=0x8106a60, c=0x8106a18) at ./parse.y:4888
#2 0x08078ff4 in mrb_load_file_cxt (mrb=0x80ed170, f=0x80ed008, c=0x8106a18) at ./parse.y:4896
#3 0x0804b199 in main (argc=0, argv=0x80eeeec) at runner.c:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment