Another Cucumber Related Bug
Hello, The following block of code generates a segmentation fault. I am going to try to track down where it is coming from. Commenting out the args.extend line will prevent the failure. I am going to digg in and try to figure out what is wrong, but I thought that an extra pair of eyes would be nice. Especially since I have no idea where to start. :) Any tips? require 'optparse' args = [] args.extend(OptionParser::Arguable) args.clear -Scott
One more piece of data. The module that is being extended does not matter. The following block dies the same way. fred = Module.new args = [] args.extend(fred) args.clear On Feb 12, 2009, at 1:56 PM, M. Scott Ford wrote:
Hello,
The following block of code generates a segmentation fault. I am going to try to track down where it is coming from. Commenting out the args.extend line will prevent the failure.
I am going to digg in and try to figure out what is wrong, but I thought that an extra pair of eyes would be nice. Especially since I have no idea where to start. :) Any tips?
require 'optparse' args = [] args.extend(OptionParser::Arguable) args.clear
-Scott _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Even more data. The following code block also segfaults. It looks like the issue is the cast of ary to a CFMutableArrayRef. But that is where I am stumped, because I am not sure what alternatives there are. Any help? fred = Module.new args = ['a'] args.extend(fred) args.replace(['a', 'b']) On Feb 12, 2009, at 2:01 PM, M. Scott Ford wrote:
One more piece of data. The module that is being extended does not matter. The following block dies the same way.
fred = Module.new args = [] args.extend(fred) args.clear
Fixed in r813, thanks for reporting. Laurent On Feb 12, 2009, at 11:41 AM, M. Scott Ford wrote:
Even more data. The following code block also segfaults. It looks like the issue is the cast of ary to a CFMutableArrayRef. But that is where I am stumped, because I am not sure what alternatives there are. Any help?
fred = Module.new args = ['a'] args.extend(fred) args.replace(['a', 'b'])
On Feb 12, 2009, at 2:01 PM, M. Scott Ford wrote:
One more piece of data. The module that is being extended does not matter. The following block dies the same way.
fred = Module.new args = [] args.extend(fred) args.clear
MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (2)
-
Laurent Sansonetti
-
M. Scott Ford