Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created January 24, 2009 23:29
Show Gist options
  • Select an option

  • Save methodmissing/51592 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/51592 to your computer and use it in GitHub Desktop.
macbook-pros-computer:ruby187 lourens$ gdb miniruby
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) break malloc_error_break
Breakpoint 1 at 0xe24a6
(gdb) run -I 'lib' test/ruby/test_fiber.rb
Starting program: /Users/lourens/projects/ruby187/miniruby -I 'lib' test/ruby/test_fiber.rb
Reading symbols for shared libraries +++... done
Breakpoint 1 at 0x9452b4a9
Loaded suite test/ruby/test_fiber
Started
test/ruby/test_fiber.rb:83: warning: state
test/ruby/test_fiber.rb:83: warning: thread interrupt
F.E
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00024c2b
scope_dup (scope=0x24c1b) at eval.c:8377
8377 scope->flags |= SCOPE_DONT_RECYCLE;
(gdb) bt
#0 scope_dup (scope=0x24c1b) at eval.c:8377
#1 0x000299e3 in rb_thread_yield (arg=1204720, th=0x802000) at eval.c:12317
#2 0x00033ace in rb_fiber_start () at eval.c:13738
#3 0x00033cbd in fiber_init (fibval=8396800, proc=<value temporarily unavailable, due to optimizations>) at eval.c:13795
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment