From: "K.Kosako" Date: 2004-10-30T17:26:38+09:00 Subject: [ruby-dev:24647] Re: oniguruma: big regexp dumps core > 次のようにすると core を吐きます。 > > % ./ruby -e ' > words = File.read("/usr/share/dict/words").split > words.reject! {|w| /\A[a-z]*\z/ !~ w } > 0.upto(words.length) {|i| > ws = words[0, i] > begin > r = /#{ws.join("|")}/ =~ "a" > p [i, :succ, r] > rescue RegexpError > p [i, :fail, $!.message[0,40]] > end > } > ' 御報告ありがとうございます。 ruby 1.8.2 preview2 + 鬼車2.3.3では、10700まで大丈夫でした。 ruby 1.9.0 + 鬼車3.4.0では、12000まで大丈夫でした。 もう家に帰りたいので、途中でやめてしまいました。 最後まで通るかどうかはわかりません。 6月に、RelAddrType, AbsAddrType等をshort intからintに 変更したので大丈夫になったのではないかと思います。 -- 小迫@ソフネック 渋谷区恵比寿1-15-1