[MacRuby] #775: Segfault occurs when calls Bignum#modulo
#775: Segfault occurs when calls Bignum#modulo ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ $ cat test_bignum.rb b = 2**64 a = b * 2 + 1 p a.class p b.class puts "----" p a % b p a % -b p -a % b p -a % -b puts "----" p a.modulo(b) p a.modulo(-b) p (-a).modulo(b) p (-a).modulo(-b) }}} Result of Ruby 1.9.1: {{{ $ ruby test_bignum.rb Bignum Bignum ---- 1 -18446744073709551615 18446744073709551615 -1 ---- 1 -18446744073709551615 18446744073709551615 -1 }}} Result of MacRuby Trunk: {{{ $ macruby test_bignum.rb Bignum Bignum ---- 1 -18446744073709551615 18446744073709551615 -1 ---- zsh: segmentation fault macruby test_bignum.rb }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/775> MacRuby <http://macruby.org/>
#775: Segfault occurs when calls Bignum#modulo ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Fixed with r4334 -- Ticket URL: <http://www.macruby.org/trac/ticket/775#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby