Skip to content

Instantly share code, notes, and snippets.

@mattdaw
Created January 7, 2010 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattdaw/270840 to your computer and use it in GitHub Desktop.
Save mattdaw/270840 to your computer and use it in GitHub Desktop.
matt-daws-macbook-pro:trunk matt$ gdb --args ~/dev/rubinius/bin/rbx -Xconfig.print -Xint test/unit/shot_test.rb
GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009)
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 "x86_64-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) run
Starting program: /Users/matt/dev/rubinius/bin/rbx -Xconfig.print -Xint test/unit/shot_test.rb
Reading symbols for shared libraries +++. done
gc.bytes: 3145728
gc.large_object: 2700
gc.lifetime: 3
gc.autotune: true
gc.show: false
gc.immix.debug: false
interpreter.dynamic: false
jit.dump_code: 0
jit.call_til_compile: 4000
jit.max_method_size: 2048
jit.show: false
jit.profile: false
jit.inline.generic: true
jit.inline.debug: false
jit.inline.blocks: false
jit.log:
int: true
agent.port: 0
agent.verbose: false
vm.gil.debug: false
config.print: 1
ic.stats: false
Reading symbols for shared libraries . done
Reading symbols for shared libraries .... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000fffffffe
rubinius::BakerGC::collect (this=0x100f1a1f0, data=@0x7fff5fbc88f0, stats=0x7fff5fbc8920) at vm/gc/baker.cpp:145
145 assert(i->object()->type_id() != InvalidType);
(gdb) bt 25
#0 rubinius::BakerGC::collect (this=0x100f1a1f0, data=@0x7fff5fbc88f0, stats=0x7fff5fbc8920) at vm/gc/baker.cpp:145
#1 0x0000000100068819 in rubinius::ObjectMemory::collect_young (this=0x100f19fe0, data=@0x7fff5fbc88f0, stats=<value temporarily unavailable, due to optimizations>) at vm/objectmemory.cpp:143
#2 0x00000001000f4b67 in rubinius::VM::collect_maybe (this=0x100f04b00, call_frame=<value temporarily unavailable, due to optimizations>) at vm/vm.cpp:313
#3 0x000000010005b72f in rubinius::VMMethod::interpreter (state=0x100f04b00, vmm=0x101f92510, call_frame=0x7fff5fbc8bc0, args=@0x7fff5fbc8dd0) at vm/instructions.cpp:124
#4 0x00000001000f77ca in rubinius::VMMethod::execute_specialized<rubinius::GenericArguments> (state=0x100f04b00, previous=0x7fff5fbc9390, msg=@0x7fff5fbc8db0, args=@0x7fff5fbc8dd0) at vm/vmmethod.cpp:547
#5 0x0000000100124edf in rubinius::capi::capi_call_super_native (env=0x100f2bed0, arg_count=1, args=0x7fff5fbc8e50) at vm/capi/capi.cpp:194
#6 0x0000000100125299 in rb_call_super (argc=1, argv=0x7fff5fbc8ef0) at vm/capi/capi.cpp:281
#7 0x00000001027e3f29 in pgrow_init (self=4435106464, keys=4435023136) at postgres.c:2421
#8 0x0000000100113104 in rubinius::NativeMethod::call (this=0x1099167f8, state=<value temporarily unavailable, due to optimizations>, env=0x100f2bed0, args=@0x7fff5fbc9300) at vm/builtin/nativemethod.cpp:294
#9 0x000000010011336b in rubinius::NativeMethod::executor_implementation (state=0x100f04b00, call_frame=<value temporarily unavailable, due to optimizations>, msg=@0x100f44d08, args=@0x7fff5fbc9300) at vm/builtin/nativemethod.cpp:199
#10 0x000000010005aa6a in rubinius::VMMethod::interpreter (state=0x100f04b00, vmm=0x100f44a50, call_frame=0x7fff5fbc9390, args=@0x7fff5fbc9550) at instruction_implementations.hpp:569
#11 0x00000001000f74c1 in rubinius::VMMethod::execute_specialized<rubinius::SplatOnlyArgument> (state=0x100f04b00, previous=0x7fff5fbc9c50, msg=@0x7fff5fbc9530, args=@0x7fff5fbc9550) at vm/vmmethod.cpp:547
#12 0x0000000100122ec4 in rubinius::capi::capi_funcall_backend_native (env=0x100f2bed0, file=<value temporarily unavailable, due to optimizations>, line=<value temporarily unavailable, due to optimizations>, recv=0x109630270, method=0x1da6, arg_count=1, args=0x7fff5fbc95d0) at vm/capi/capi.cpp:161
#13 0x0000000100124052 in capi_rb_funcall (file=0x1027e5fb6 "postgres.c", line=1483, receiver=4452451184, method_name=7590, arg_count=1) at vm/capi/capi.cpp:302
#14 0x00000001027e2753 in fetch_pgrow (self=4435022912, fields=4435023136, row_num=83) at postgres.c:1483
#15 0x00000001027e299b in pgresult_each (self=4435022912) at postgres.c:1577
#16 0x0000000100112d62 in rubinius::NativeMethod::call (this=0x10990d708, state=0x100f04b00, env=0x100f2bed0, args=@0x7fff5fbc9bc0) at vm/builtin/nativemethod.cpp:284
#17 0x000000010011336b in rubinius::NativeMethod::executor_implementation (state=0x100f04b00, call_frame=<value temporarily unavailable, due to optimizations>, msg=@0x101f32e90, args=@0x7fff5fbc9bc0) at vm/builtin/nativemethod.cpp:199
#18 0x000000010005aa6a in rubinius::VMMethod::interpreter (state=0x100f04b00, vmm=0x101f32c60, call_frame=0x7fff5fbc9c50, args=@0x7fff5fbc9e10) at instruction_implementations.hpp:569
#19 0x00000001000f74c1 in rubinius::VMMethod::execute_specialized<rubinius::SplatOnlyArgument> (state=0x100f04b00, previous=0x7fff5fbca4c0, msg=@0x7fff5fbc9df0, args=@0x7fff5fbc9e10) at vm/vmmethod.cpp:547
#20 0x0000000100122ec4 in rubinius::capi::capi_funcall_backend_native (env=0x100f2bed0, file=<value temporarily unavailable, due to optimizations>, line=<value temporarily unavailable, due to optimizations>, recv=0x1074607e8, method=0xe996, arg_count=0, args=0x7fff5fbc9e90) at vm/capi/capi.cpp:161
#21 0x0000000100124052 in capi_rb_funcall (file=0x1027e5fb6 "postgres.c", line=1959, receiver=4435022912, method_name=59798, arg_count=0) at vm/capi/capi.cpp:302
#22 0x00000001027e32ef in pgresult_result_with_clear (self=4435022912) at postgres.c:1959
#23 0x00000001027e18ee in pgconn_query (argc=1, argv=0x1085909b0, obj=4452451760) at postgres.c:873
#24 0x0000000100112f14 in rubinius::NativeMethod::call (this=0x10990d6a0, state=0x1, env=0x100f2bed0, args=@0x7fff5fbca430) at vm/builtin/nativemethod.cpp:267
(More stack frames follow...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment