[()] dumps core


#1

e$B1sF#$H?=$7$^$9!#e(B

1.9 e$B$G0J2<$N$h$&$K$9$k$HMn$A$^$9!#e(B

$ ./ruby -ve ‘[()]’
ruby 1.9.0 (2007-07-18 patchlevel 0) [i686-linux]
– control frame ----------
c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------

– backtrace of native function call (Use addr2line) –
0x80dad75
0x80f3503
0x80f35cb
0x80b2680
0xffffe420
0x8104765
0x810a43e
0x80cf2f2
0x80cf3c6
0x8059054
0x805d5dd
0x8056c32
0xb7df3ea8
0x8056b61

[BUG] Segmentation fault
ruby 1.9.0 (2007-07-18) [i686-linux]

e$B%"%!<%H$7$^$7$?e(B (core dumped)


#2

e$B$J$+$@$G$9!#e(B

At Wed, 18 Jul 2007 21:13:36 +0900,
Yusuke ENDOH wrote in [ruby-dev:31252]:

1.9 e$B$G0J2<$N$h$&$K$9$k$HMn$A$^$9!#e(B

$ ./ruby -ve ‘[()]’

arg_valuee$B$@$1$G$$$$$+$b$7$l$^$;$s$,!#e(B

e$BM>7W$J7Y9p$,=P$k$+$Je(B?

Index: parse.y

— parse.y (revision 12813)
+++ parse.y (working copy)
@@ -1157,4 +1157,5 @@ expr_value : expr
value_expr($1);
$$ = $1;

  •  if (!$$) $$ = NEW_NIL();
       /*%
     $$ = $1;
    

@@ -2205,4 +2206,5 @@ arg_value : arg
value_expr($1);
$$ = $1;

  •  if (!$$) $$ = NEW_NIL();
       /*%
     $$ = $1;
    

@@ -2929,4 +2931,5 @@ primary_value : primary
value_expr($1);
$$ = $1;

  •  if (!$$) $$ = NEW_NIL();
       /*%
     $$ = $1;