Skip to content

Instantly share code, notes, and snippets.

@rue
Created March 27, 2009 07:50
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 rue/86592 to your computer and use it in GitHub Desktop.
Save rue/86592 to your computer and use it in GitHub Desktop.
CGI::HtmlExtension#checkbox_group when passed Hash
- uses the passed Hash to generate the checkbox sequence
- ignores a passed block
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000004
0x000ef9cf in immix::Block::status (this=0x0) at immix.hpp:142
142 return status_;
(gdb) bt
#0 0x000ef9cf in immix::Block::status (this=0x0) at immix.hpp:142
#1 0x000f241c in immix::GC<rubinius::ImmixGC::ObjectDescriber>::mark_address (this=0x400420, addr={address_ = 41245460}, alloc=@0x400464) at immix.hpp:698
#2 0x000ef2cc in rubinius::ImmixGC::saw_object (this=0x400414, obj=0x2755b14) at vm/gc/immix.cpp:80
#3 0x000f3cb1 in rubinius::ObjectMark::call (this=0xbffa0a34, obj=0x2755b14) at vm/gc/object_mark.cpp:19
#4 0x000ca419 in rubinius::Tuple::Info::mark (this=0x4006b0, obj=0x2ffe014, mark=@0xbffa0a34) at vm/builtin/tuple.cpp:187
#5 0x000ee688 in rubinius::GarbageCollector::scan_object (this=0x400414, obj=0x2ffe014) at vm/gc/gc.cpp:60
#6 0x000f0439 in rubinius::ImmixGC::ObjectDescriber::walk_pointers (this=0x400450, addr={address_ = 50323476}, mark=@0xbffa0a88) at immix.hpp:45
#7 0x000f1a84 in immix::GC<rubinius::ImmixGC::ObjectDescriber>::process_mark_stack (this=0x400420, alloc=@0x400464) at immix.hpp:718
#8 0x000ef509 in rubinius::ImmixGC::collect (this=0x400414, data=@0xbffa0b54) at vm/gc/immix.cpp:117
#9 0x0004f0ee in rubinius::ObjectMemory::collect_mature (this=0x400390, data=@0xbffa0b54) at vm/objectmemory.cpp:130
#10 0x0009a2c3 in rubinius::VM::collect_maybe (this=0x4001c0, call_frame=0xbffa0be0) at vm/vm.cpp:308
#11 0x000a2236 in rubinius::VMMethod::run_interpreter (state=0x4001c0, vmm=0x14d1fb0, call_frame=0xbffa0be0) at vm/vmmethod.cpp:674
#12 0x000a5065 in rubinius::VMMethod::execute_specialized<rubinius::SplatOnlyArgument> (state=0x4001c0, previous=0xbffa2600, msg=@0xbffa0f7c) at vm/vmmethod.cpp:503
#13 0x000c401e in rubinius::performer::mono_performer (state=0x4001c0, call_frame=0xbffa2600, msg=@0xbffa0f7c) at vm/builtin/sendsite.cpp:29
#14 0x001237ca in rubinius::VMMethod::interpreter (state=0x4001c0, vmm=0x14d69f0, call_frame=0xbffa2600) at vm/gen/instructions.cpp:3733
#15 0x000a2288 in rubinius::VMMethod::run_interpreter (state=0x4001c0, vmm=0x14d69f0, call_frame=0xbffa2600) at vm/vmmethod.cpp:682
#16 0x000a56b3 in rubinius::VMMethod::execute_specialized<rubinius::ThreeArguments> (state=0x4001c0, previous=0xbffa4040, msg=@0xbffa29bc) at vm/vmmethod.cpp:503
#17 0x000c401e in rubinius::performer::mono_performer (state=0x4001c0, call_frame=0xbffa4040, msg=@0xbffa29bc) at vm/builtin/sendsite.cpp:29
#18 0x00123633 in rubinius::VMMethod::interpreter (state=0x4001c0, vmm=0x1824450, call_frame=0xbffa4040) at vm/gen/instructions.cpp:3699
#19 0x000a2288 in rubinius::VMMethod::run_interpreter (state=0x4001c0, vmm=0x1824450, call_frame=0xbffa4040) at vm/vmmethod.cpp:682
#20 0x000ac71f in rubinius::BlockEnvironment::call (this=0x7fff74, state=0x4001c0, call_frame=0xbffa5a30, args=1, flags=0) at vm/builtin/block_environment.cpp:76
#21 0x00121f0a in rubinius::VMMethod::interpreter (state=0x4001c0, vmm=0x4258b0, call_frame=0xbffa5a30) at vm/gen/instructions.cpp:3258
##
0xbffa0be0: Sexp#initialize in kernel/compiler/sexp.rb:24
0xbffa2600: Rubinius::SydneyRewriter.sexp_from_array in kernel/compiler/sydney_rewriter.rb:30
0xbffa4040: __block__ in kernel/compiler/sydney_rewriter.rb:37
0xbffa5a30: Array#each in kernel/bootstrap/array.rb:50
0xbffa7450: Rubinius::SydneyRewriter.sexp_from_array in kernel/compiler/sydney_rewriter.rb:44
0xbffa8e90: __block__ in kernel/compiler/sydney_rewriter.rb:37
0xbffaa880: Array#each in kernel/bootstrap/array.rb:50
0xbffac2a0: Rubinius::SydneyRewriter.sexp_from_array in kernel/compiler/sydney_rewriter.rb:44
0xbffadce0: __block__ in kernel/compiler/sydney_rewriter.rb:37
0xbffaf6d0: Array#each in kernel/bootstrap/array.rb:50
0xbffb10f0: Rubinius::SydneyRewriter.sexp_from_array in kernel/compiler/sydney_rewriter.rb:44
0xbffb2b30: Rubinius::SydneyRewriter#process in kernel/compiler/sydney_rewriter.rb:66
0xbffb4560: String#to_sexp_sydney_parser in kernel/delta/string.rb:26
0xbffb5fa0: String#to_sexp in kernel/delta/string.rb:37
0xbffb79d0: Compiler.compile_string in kernel/compiler/compiler.rb:60
0xbffb9430: Compiler::Utils.compile_string in kernel/compiler/compile.rb:41
0xbffbae70: <unknown>#eval in kernel/common/eval.rb:55
0xbffbc9d0: <unknown>#element_init in /Users/ruerue/code/rubinius/master/lib/cgi.rb:277
0xbffbe5c0: CGISpecs::HtmlExtension#initialize in ./spec/frozen/library/cgi/htmlextension/fixtures/common.rb:6
0xbffbffd0: __block__ in ./spec/frozen/library/cgi/htmlextension/checkbox_group_spec.rb:7
0xbffc1a60: <unknown>#instance_eval in kernel/common/eval.rb:116
0xbffc34e0: MSpec.protect in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/mspec.rb:68
0xbffc4f30: __block__ in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/context.rb:27
0xbffc6920: __block__ in kernel/common/enumerable.rb:461
0xbffc8300: Array#each in kernel/bootstrap/array.rb:50
0xbffc9d20: <unknown>#all? in kernel/common/enumerable.rb:461
0xbffcb740: ContextState#protect in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/context.rb:42
0xbffcd170: __block__ in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/context.rb:160
0xbffceb70: Array#each in kernel/bootstrap/array.rb:50
0xbffd0590: ContextState#process in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/context.rb:175
0xbffd1fb0: __block__ in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/context.rb:10
0xbffd3990: Array#each in kernel/bootstrap/array.rb:50
0xbffd53b0: ContextState#process in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/context.rb:134
0xbffd6dd0: MSpec.describe in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/mspec.rb:36
0xbffd8810: Object#describe in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/object.rb:54
0xbffda320: #<Object:0x1533250>.__script__ in ./spec/frozen/library/cgi/htmlextension/checkbox_group_spec.rb:5
0xbffdbe10: CompiledMethod#activate_as_script in kernel/common/compiled_method.rb:44
0xbffdd830: CompiledMethod#as_script in kernel/common/compiled_method.rb:104
0xbffdf250: Compiler::Utils.single_load in kernel/compiler/compile.rb:236
0xbffe0cf0: __block__ in kernel/compiler/compile.rb:131
0xbffe2710: Array#each in kernel/bootstrap/array.rb:50
0xbffe4130: Compiler::Utils.unified_load in kernel/compiler/compile.rb:136
0xbffe5ba0: Kernel.load in kernel/common/kernel.rb:297
0xbffe75f0: __block__ in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/mspec.rb:10
0xbffe9080: <unknown>#instance_eval in kernel/common/eval.rb:116
0xbffeac00: MSpec.protect in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/mspec.rb:68
0xbffec650: __block__ in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/mspec.rb:56
0xbffee040: Array#each in kernel/bootstrap/array.rb:50
0xbffefb30: MSpec.files in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/mspec.rb:41
0xbfff1620: MSpec.process in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/runner/mspec.rb:42
0xbfff3100: MSpecRun#run in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/commands/mspec-run.rb:87
0xbfff4bf0: MSpecScript.main in /Users/ruerue/code/rubinius/master/mspec/lib/mspec/utils/script.rb:79
0xbfff66e0: #<Object:0x1533250>.__script__ in /Users/ruerue/code/rubinius/master/mspec/bin/mspec-run:8
0xbfff81d0: CompiledMethod#activate_as_script in kernel/common/compiled_method.rb:44
0xbfff9cc0: CompiledMethod#as_script in kernel/common/compiled_method.rb:104
0xbfffb7b0: Compiler::Utils.single_load in kernel/compiler/compile.rb:236
0xbfffd320: Compiler::Utils.load_from_extension in kernel/compiler/compile.rb:243
0xbfffee40: Object#__script__ in kernel/loader.rb:226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment