Ripper core dump with arg_paren

boron e$B$GMn$A$F$k$N$O$3$l$G$9$+$M$’!#e(B

% ./ruby -rripper -ve ’
class C < Ripper
def on_arg_paren(*a) p a end
end
p C.new(“new()”).parse’
ruby 1.9.0 (2006-06-24) [i686-linux]
zsh: segmentation fault ./ruby -rripper -ve

Index: parse.y

RCS file: /src/ruby/parse.y,v
retrieving revision 1.443
diff -u -p -r1.443 parse.y
— parse.y 21 Jun 2006 08:08:34 -0000 1.443
+++ parse.y 25 Jun 2006 07:51:19 -0000
@@ -2144,7 +2144,7 @@ paren_args : ‘(’ opt_call_args rparen
/%%%/
$$ = $2;
/*%

  •   	$$ = dispatch1(arg_paren, $2);
    
  •   	$$ = dispatch1(arg_paren, escape_Qundef($2));
          %*/
          }
      ;

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs