[MacRuby-devel] [MacRuby] #598: EXC_BAD_ACCESS when *splatting arguments in method call

MacRuby ruby-noreply at macosforge.org
Wed Feb 10 22:00:42 PST 2010


#598: EXC_BAD_ACCESS when *splatting arguments in method call
----------------------------+-----------------------------------------------
 Reporter:  me@…            |        Owner:  lsansonetti@…        
     Type:  defect          |       Status:  closed               
 Priority:  major           |    Milestone:                       
Component:  MacRuby         |   Resolution:  invalid              
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by lsansonetti@…):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 This seems to work in trunk.

 {{{
 $ cat t.rb
 class FileList < Array
         def addFiles(files)
                 clear
                 push(*files)
                 files
         end
 end

 o=FileList.new
 p o.addFiles(['a','b','c','d','e'])
 $ ./miniruby  t.rb
 ["a", "b", "c", "d", "e"]
 }}}

 I have no idea what could have been wrong for the reporter. The GDB output
 does not contain anything meaningful too (no backtrace). Closing.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/598#comment:2>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list