[MacRuby] #1034: Requiring Mechanize gives segmentation fault
MacRuby
ruby-noreply at macosforge.org
Sat Dec 11 23:44:26 PST 2010
#1034: Requiring Mechanize gives segmentation fault
------------------------------+---------------------------------------------
Reporter: vegar@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: meahanize
------------------------------+---------------------------------------------
Comment(by watson1978@…):
{{{
$ DYLD_LIBRARY_PATH=. ./macruby -r rubygems -r mechanize -e 'p 10'
zsh: segmentation fault DYLD_LIBRARY_PATH=. ./macruby -r rubygems -r
mechanize -e 'p 10'
}}}
BackTrace:
{{{
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000048
0x0000000100490f21 in llvm::LiveVariables::HandleVirtRegUse () at
vector.tcc:300
300 this->_M_impl._M_end_of_storage = __new_start + __len;
(gdb) bt
#0 0x0000000100490f21 in llvm::LiveVariables::HandleVirtRegUse () at
vector.tcc:300
#1 0x0000000100491982 in llvm::LiveVariables::runOnMachineFunction () at
vector.tcc:300
#2 0x00000001004ab55d in llvm::MachineFunctionPass::runOnFunction () at
vector.tcc:300
#3 0x000000010087c480 in llvm::FPPassManager::runOnFunction () at
StringRef.h:59
#4 0x000000010087c61c in llvm::FunctionPassManagerImpl::run () at
StringRef.h:59
#5 0x000000010087c909 in llvm::FunctionPassManager::run () at
StringRef.h:59
#6 0x000000010042b33a in llvm::JIT::jitTheFunction () at TargetData.h:129
#7 0x000000010042b8c1 in llvm::JIT::getPointerToFunction () at
TargetData.h:129
#8 0x000000010014a7f0 in RoxorCore::compile (this=0x10186fc00,
func=0x107b80780, run_optimize=true) at vm.cpp:586
#9 0x0000000100153b3e in prepare_method (klass=0x2004f7580,
dynamic_class=false, sel=0x10487dee0, data=0x107b80780,
arity=@0x7fff5fbf8bb8, flags=0, precompiled=false, objc_imp_types=0x0) at
vm.cpp:2120
#10 0x00000001001541fb in rb_vm_prepare_method (klass=0x2004f7580,
dynamic_class=0 '\0', sel=0x10487dee0, func=0x107b80780, arity={min = 2,
max = 2, left_req = 2, real = 2}, flags=0) at vm.cpp:2199
#11 0x00000001075377bb in ?? ()
#12 0x000000010753762b in ?? ()
#13 0x000000010753751b in ?? ()
#14 0x0000000107537408 in ?? ()
#15 0x0000000100151ac7 in rb_vm_run (fname=0x200482780
"/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/Gems/1.9.2/gems/mechanize-1.0.0/lib/mechanize/chain/connection_resolver.rb",
node=0x2003e7e20, binding=0x0, inside_eval=false) at vm.cpp:3930
#16 0x0000000100040d5c in rb_load (fname=8594777152, wrap=0) at load.c:103
#17 0x00000001000412b9 in load_try (path=8594748576) at load.c:259
#18 0x000000010015056d in rb_rescue2 (b_proc=0x10004129f <load_try>,
data1=8594748576, r_proc=0x1000412df <load_rescue>, data2=8594748576) at
vm.cpp:3492
#19 0x00000001000413e6 in rb_require_safe (fname=8594948832, safe=0) at
load.c:305
#20 0x0000000100040de2 in rb_f_require (obj=8590070080, fname=8594948960)
at load.c:157
#21 0x0000000100040e05 in rb_f_require_imp (obj=8590070080,
sel=0x102eadac0, fname=8594948960) at load.c:163
#22 0x0000000100137652 in __rb_vm_rcall [inlined] () at
/Users/qoo/src/MacRuby/dispatcher.cpp:161
#23 0x0000000100137652 in ruby_dispatch [inlined] () at
/Users/qoo/src/MacRuby/dispatcher.cpp:466
#24 0x0000000100137652 in rb_vm_dispatch () at dispatcher.cpp:849
#25 0x00000001033fb080 in dyld_stub_strncpy ()
----snip----
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1034#comment:2>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list