Projects

Ticket #53 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Module#dup results in Segmentation Fault.

Reported by: demisone@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.2
Component: MacRuby Keywords: bug, segmentation fault
Cc:

Description

Fully reproducable under MacRuby from test branch, r88.

mod = Module.new{
  def test_method
    true
  end
}

mod.dup # Bang!

#This also happens with normal modules:
require 'yaml'
YAML.dup # Bang!


Change History

Changed 4 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Seems to be fixed in trunk.

$ ./miniruby -ve "m=Module.new{def foo;42;end};p m.dup"
MacRuby version 0.2 (ruby 1.9.0 2008-03-01) [universal-darwin9.0]
#<Module:0x2081bd0>

$ ./miniruby -ve "module Foo;end;p Foo.dup"
MacRuby version 0.2 (ruby 1.9.0 2008-03-01) [universal-darwin9.0]
#<Module:0x20813e0>

Changed 4 years ago by demisone@…

Oh, that's nice. Is a 0.2 nearly there (at least in the test branch) or should I go and build it from the trunk?

Changed 4 years ago by lsansonetti@…

0.2 is nearly there, however, currently trunk doesn't build entirely, due to recent important changes in the String class. You can still do "make miniruby" though. I will merge trunk into the testing branch once it builds again.

Note: See TracTickets for help on using tickets.