[MacRuby] #1099: macirb segfault
MacRuby
ruby-noreply at macosforge.org
Tue Jan 4 10:42:22 PST 2011
#1099: macirb segfault
---------------------------+------------------------------------------------
Reporter: lucas@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 0.9
Component: MacRuby | Keywords:
---------------------------+------------------------------------------------
macirb segfaults when executing the following script:
{{{
k, a, b, a1, b1 = 2, 4, 1, 12, 4
while TRUE
# Next approximation
p, q, k = k*k, 2*k+1, k+1
a, b, a1, b1 = a1, b1, p*a+q*a1, p*b+q*b1
# Print common digits
d = a / b
d1 = a1 / b1
while d == d1
print d
$stdout.flush
a, a1 = 10*(a%b), 10*(a1%b1)
d, d1 = a/b, a1/b1
end
end
}}}
MacRuby 0.9 (ruby 1.9.2) [universal-darwin10.0, x86_64]
Backtrace:
{{{
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffdfff49067
0x00007fff8312a700 in _class_getSuperclass ()
(gdb) backtrace
#0 0x00007fff8312a700 in _class_getSuperclass ()
#1 0x000000010002a5cf in rb_objc_type ()
#2 0x0000000100068e99 in rb_fix_mul ()
#3 0x000000010014b3bb in rb_vm_dispatch ()
#4 0x0000000102d5bfa6 in ?? ()
#5 0x0000000102d9e0e2 in ?? ()
#6 0x0000000102d9d8e2 in ?? ()
#7 0x0000000100162aa3 in rb_vm_run ()
#8 0x0000000100162df1 in rb_vm_run_under ()
#9 0x0000000100102397 in rb_f_eval ()
#10 0x000000010014ad85 in rb_vm_dispatch ()
#11 0x0000000100ce280c in dyld_stub_strncpy ()
#12 0x0000000100ce3b1a in MREP_C4FCC80C17B94A8A840A6F05C9DA0933 ()
#13 0x000000010014b36b in rb_vm_dispatch ()
#14 0x0000000100ce280c in dyld_stub_strncpy ()
#15 0x0000000100ce42cb in MREP_C4FCC80C17B94A8A840A6F05C9DA0933 ()
#16 0x000000010014b3bb in rb_vm_dispatch ()
#17 0x0000000100ce280c in dyld_stub_strncpy ()
#18 0x0000000100ce4c50 in MREP_C4FCC80C17B94A8A840A6F05C9DA0933 ()
#19 0x000000010014b3bb in rb_vm_dispatch ()
#20 0x0000000103bbe58c in dyld_stub_strncpy ()
#21 0x0000000103bbfa82 in MREP_E35DF62E8300447DAFB57E2B34A3A72E ()
#22 0x000000010014b3bb in rb_vm_dispatch ()
#23 0x0000000103bbe58c in dyld_stub_strncpy ()
#24 0x0000000103bbfeac in MREP_E35DF62E8300447DAFB57E2B34A3A72E ()
#25 0x000000010014b3bb in rb_vm_dispatch ()
#26 0x0000000103bbe58c in dyld_stub_strncpy ()
#27 0x0000000103bc011a in MREP_E35DF62E8300447DAFB57E2B34A3A72E ()
#28 0x000000010014b396 in rb_vm_dispatch ()
#29 0x0000000102d5bfa6 in ?? ()
#30 0x0000000102d5ab86 in ?? ()
#31 0x0000000102d5a26b in ?? ()
#32 0x0000000102d5a173 in ?? ()
#33 0x0000000100162aa3 in rb_vm_run ()
#34 0x0000000100041790 in ruby_run_node ()
#35 0x0000000100000d28 in main ()
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1099>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list