{*0} dumps core

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

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

$ ./ruby -e ‘{*0}’
– control frame ----------
c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------

– backtrace of native function call (Use addr2line) –
0x80da925
0x80f3b70
0x8103da3
0x810aa87
0x80cfea2
0x80cff76
0x80db782
0x80db7e6
0x8059042
0x8059066
0x805d5f1
0x8056d1f
0xb7e04ea8
0x8056c51

[BUG] can’t make hash with this node: NODE_SPLAT
ruby 1.9.0 (2007-06-28) [i686-linux]

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

[email protected]$G$9!#e(B

Yusuke ENDOH wrote:

$ ./ruby -e ‘{*0}’

e$B!!$"$j$c!#[email protected]$m$&!#%Q!<%5$GCF$/OC$G$Oe(B
e$B$J$$!)!d$^$D$b$H$5$se(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31074] Re: {*0} dumps core”
on Thu, 28 Jun 2007 02:21:11 +0900, SASADA Koichi [email protected]
writes:

|Yusuke ENDOH wrote:
|> $ ./ruby -e ‘{*0}’
|
|e$B!!$"$j$c!#[email protected]$m$&!#%Q!<%5$GCF$/OC$G$Oe(B
|e$B$J$$!)!d$^$D$b$H$5$se(B

1.8e$B$^$G$O%Q!<%5$G$O$M$F$^$7$?$,!“e(Bsplate$B$,$I$3$K$G$b$3$l$k$h$&e(B
e$B$K$J$C$?4XO”$G$G$-$k$h$&$K$J$C$F$^$9$M!#$($($H!"e(B

{1,2,3,4}e$B$Oe(Bvalid({1=>2,3=>4}e$B$N0UL#e(B)e$B$J$N$GE83+8e%O%C%7%ee(B
[email protected]@.$9$Y$-!#e(B

  • Hashe$B$Ke(Bsplate$B$O<YF;!#e(BNODE_SPLATe$B$r%A%’%C%/$7$F%(%i!<e(B

e$B$N$$$:[email protected]$H;W$&$N$G$9$,!"$J$s$H$J$/A0<T$N$h$&$J!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31080] Re: {*0} dumps core”
on Thu, 28 Jun 2007 21:48:36 +0900, SASADA Koichi [email protected]
writes:

|Yukihiro M. wrote:
|> * {1,2,3,4}e$B$Oe(Bvalid({1=>2,3=>4}e$B$N0UL#e(B)e$B$J$N$GE83+8e%O%C%7%ee(B
|> [email protected]@.$9$Y$-!#e(B
|> * Hashe$B$Ke(Bsplate$B$O<YF;!#e(BNODE_SPLATe$B$r%A%’%C%/$7$F%(%i!<e(B
|>
|> e$B$N$$$:[email protected]$H;W$&$N$G$9$,!"$J$s$H$J$/A0<T$N$h$&$J!#e(B
|
|e$B!!e(BIRC e$B$G$OA0<T$r?d$7$F$$$k?M$,B?$$$h$&$J46$8$G$7$?!#;d$O$I$C$Ae(B
|e$B$G$b$$$$$G$9!#e(B

e$B$G$O!"A0<T$G!#e(B

  • splate$B$N$J$$%j%9%H$G$O4q?t8D$NMWAG$G%3%s%Q%$%k%(%i!<e(B
    e$B$3$l$O;d$,$d$j$^$9e(B

  • e$BI>2A;~$Oe(BNODE_SPLATe$B$GG[NsE83+!#4q?t8D$J$i$d$O$j%(%i!<e(B
    (ArgumentErrore$B$G$$$$$H;W$$$^$9e(B)e$B!#[email protected]$/$s$K$*e(B
    e$B4j$$$7$^$9!#e(B

e$B$H$$$&$3$H$G$I$&$G$7$g$&!)e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31082] Re: {*0} dumps core”
on Thu, 28 Jun 2007 23:02:29 +0900, Yukihiro M.
[email protected] writes:

|e$B$G$O!"A0<T$G!#e(B
|
| * splate$B$N$J$$%j%9%H$G$O4q?t8D$NMWAG$G%3%s%Q%$%k%(%i!<e(B
| e$B$3$l$O;d$,$d$j$^$9e(B

e$B$H$$$&$o$1$G$d$C$F$*$-$^$7$?!#e(B

e$B$,!"$3$l$G$$$8$C$F$k;~$K%7%s%?%C%/%9%(%i!<$G%(%i!<0LCV$,I=<(e(B
e$B$5$l$J$/$J$C$F$$$k$3$H$K5$$,$D$-$^$7$?!#$J$K$,$$$1$J$$$s$G$7$ge(B
e$B$&$M!)e(B

% ruby1.8 -e ‘{1,2,3}’
-e:1: odd number list for Hash
% ruby1.9 -e ‘{1,2,3}’
odd number list for Hash

[email protected]$G$9!#e(B

Yukihiro M. wrote:

  • {1,2,3,4}e$B$Oe(Bvalid({1=>2,3=>4}e$B$N0UL#e(B)e$B$J$N$GE83+8e%O%C%7%ee(B
    [email protected]@.$9$Y$-!#e(B
  • Hashe$B$Ke(Bsplate$B$O<YF;!#e(BNODE_SPLATe$B$r%A%’%C%/$7$F%(%i!<e(B

e$B$N$$$:[email protected]$H;W$&$N$G$9$,!"$J$s$H$J$/A0<T$N$h$&$J!#e(B

e$B!!e(BIRC
e$B$G$OA0<T$r?d$7$F$$$k?M$,B?$$$h$&$J46$8$G$7$?!#;d$O$I$C$Ae(B
e$B$G$b$$$$$G$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31086] Re: {*0} dumps core”
on Fri, 29 Jun 2007 02:12:41 +0900, SASADA Koichi [email protected]
writes:

|e$B!!$"$"!"$^$?$d$C$F$7$^$C$?!#e(BIRC e$B$GB?$=$&[email protected]$C$?$N$O!V8e<T!J5v$5e(B
|e$B$J$$!K!W$[$&$G$7$?!#e(B

e$B$=$&$J$N$+!#e(B

|e$B!!$H$3$m$G!"$I$&$$$&%7%A%e%(!<%7%g%s$G$"$k$H4r$7$$$s$G$7$g$&!"e(B
|e$B$3$N5!G=!#e(B

e$BG[Ns$+$ie(BHashe$B$r$D$/$k;~$8$c$J$$$G$7$g$&$+!#e(BHash.new(*ary)e$B$G==e(B
e$BJ,$H$$$&OC$7$b$"$j$^$9$,!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31087] Re: {*0} dumps core”
on Fri, 29 Jun 2007 05:32:12 +0900, Yukihiro M.
[email protected] writes:

||e$B!!$H$3$m$G!"$I$&$$$&%7%A%e%(!<%7%g%s$G$"$k$H4r$7$$$s$G$7$g$&!“e(B
||e$B$3$N5!G=!#e(B
|
|e$BG[Ns$+$ie(BHashe$B$r$D$/$k;~$8$c$J$$$G$7$g$&$+!#e(BHash.new(*ary)e$B$G==e(B
|e$BJ,$H$$$&OC$7$b$”$j$^$9$,!#e(B

argse$B$,e(Bsplate$B$r4^$`$h$&$K$J$C$?$N$G!“e(B{args}e$B$NJ8K!$r5v$98B$je(B
[email protected]$1$r6X;_$9$k$N$O!”$*$+$7$$5$$,$7$^$9!#[email protected]$7!"$3$NJ8K!e(B
e$B$Oe(B

e$B$+$i!"!Ve(B1.9e$B$G$J$/$9!W$H$$$&A*Br;h$O$"$j$G$9$M!#e(B

[email protected]$G$9!#e(B

Yukihiro M. wrote:

|> * {1,2,3,4}e$B$Oe(Bvalid({1=>2,3=>4}e$B$N0UL#e(B)e$B$J$N$GE83+8e%O%C%7%ee(B
|> [email protected]@.$9$Y$-!#e(B
|> * Hashe$B$Ke(Bsplate$B$O<YF;!#e(BNODE_SPLATe$B$r%A%’%C%/$7$F%(%i!<e(B
|>
|> e$B$N$$$:[email protected]$H;W$&$N$G$9$,!"$J$s$H$J$/A0<T$N$h$&$J!#e(B
|
|e$B!!e(BIRC e$B$G$OA0<T$r?d$7$F$$$k?M$,B?$$$h$&$J46$8$G$7$?!#;d$O$I$C$Ae(B
|e$B$G$b$$$$$G$9!#e(B

e$B$G$O!"A0<T$G!#e(B

e$B!!$"$"!"$^$?$d$C$F$7$^$C$?!#e(BIRC
e$B$GB?$=$&[email protected]$C$?$N$O!V8e<T!J5v$5e(B
e$B$J$$!K!W$[$&$G$7$?!#e(B

e$B!!$H$3$m$G!"$I$&$$$&%7%A%e%(!<%7%g%s$G$"$k$H4r$7$$$s$G$7$g$&!"e(B
e$B$3$N5!G=!#e(B

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