Ruby1.8.7 $B$G(B Rails2.0.2 $B$,F0$+$J$$(B

okkez e$B$G$9!#e(B

Ruby1.8.7 e$B$Ge(B Rails 2.0.2 e$B$,F0$-$^$;$s!#e(B

e$B<+J,$G%S%k%I$7$?$N$He(B Debian e$B$N%Q%C%1!<%8$r;n$7$^$7$?!#e(B

e$B0J2<$G:F8=$9$k$H;W$$$^$9!#e(B

$ rails 2.0.2 hoge
$ cd hoge
$ script/generate scaffold post title:string body:string
published:boolean
$ rake db:migrate
$ script/server

e$B$G%&%'%V%V%i%&%6$+$ie(B
http://localhost:3000/posts/new
e$B$K%"%/%;%9$9$k$He(B Internal Server Error e$B$K$J$j$^$9!#e(B

Rails2.1.0 e$B$@$H:F8=$;$:!"$-$A$s$HF0$-$^$9!#e(B
e$B$^$?e(B Ruby1.8.6 e$B$He(B Rails2.0.2
e$B$NAH$_9g$o$;$b$-$A$s$HF0$/$N$O3NG’:Q$G$9!#e(B

e$B8^7nCf$O$=$NAH$_9g$o$;$G%3!<%I=q$$$F$$$?$N$G!#e(B

Ruby1.8.6/Rails2.1.0 e$B$NAH$_9g$o$;$O;n$;$F$$$^$;$s!#!#!#e(B

RAILS_ROOT/log/development.log
e$B$NFbMF$O$A$g$C$HD9$$$G$9$,!"0J2<$NDL$j$G$9!#e(B

/!\ FAILSAFE /!\ Thu Jun 05 13:32:23 +0900 2008
Status: 500 Internal Server Error
wrong number of arguments (2 for 1)
/usr/lib/ruby/1.8/cgi/session.rb:267:in respond_to?' /usr/lib/ruby/1.8/cgi/session.rb:267:in initialize_without_cgi_reader’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/session.rb:39:in
initialize' /home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:130:in new’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:130:in
session' /home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:166:in stale_session_check!’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:114:in
session' /home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:1131:in assign_shortcuts_without_flash’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/flash.rb:167:in
assign_shortcuts' /home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:518:in process_without_filters’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in
process_without_session_management_support' /home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in process’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in
process' /home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in handle_request’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in
dispatch' /home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in dispatch_cgi’
/home/okkez/.gems/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in
dispatch' /home/okkez/.gems/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in process’
/home/okkez/.gems/gems/mongrel-1.1.5/bin/…/lib/mongrel/rails.rb:74:in
synchronize' /home/okkez/.gems/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in process’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
process_client' /home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:158:in each’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
process_client' /home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:285:in run’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
initialize' /home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:285:in new’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:285:in run' /home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:268:in initialize’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:268:in new' /home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel.rb:268:in run’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in
run' /home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in each’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in
run' /home/okkez/.gems/gems/mongrel-1.1.5/bin/mongrel_rails:128:in run’
/home/okkez/.gems/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in
run' /home/okkez/.gems/gems/mongrel-1.1.5/bin/mongrel_rails:281 /home/okkez/.gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in load’
/home/okkez/.gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in
load' /home/okkez/.gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in new_constants_in’
/home/okkez/.gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in
load' /home/okkez/.gems/gems/rails-2.0.2/lib/commands/servers/mongrel.rb:64 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require’
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' /home/okkez/.gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in require’
/home/okkez/.gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in
new_constants_in' /home/okkez/.gems/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in require’
/home/okkez/.gems/gems/rails-2.0.2/lib/commands/server.rb:39
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in require’
script/server:3

e$BB>$K2?$+I,MW$J>pJs$,$"$l$P65$($F$/$@$5$$!#e(B
e$B%a!<%k$r=q$$$F$kESCf$Ge(B
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484351
e$B$3$s$J>pJs$r8+$D$1$^$7$?!"e(BRails
e$B$N%P!<%8%g%s$r>e$2$k$Y$-$J$N$G$7$g$&$+!)e(B

e$B$h$m$7$/$*4j$$$7$^$9!#e(B

At Thu, 5 Jun 2008 14:01:19 +0900,
okkez wrote:

でウェブブラウザから
http://localhost:3000/posts/new
にアクセスすると Internal Server Error になります。

Rails2.1.0 だと再現せず、きちんと動きます。
また Ruby1.8.6 と Rails2.0.2 の組み合わせもきちんと動くのは確認済です。

 preview4後に適用した Marshal のバグ修正によって顕在化してしまった
delegate ライブラリのバグ(引数の実装漏れ)で、リリース直後に修正は
commitしています。

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_7/lib/delegate.rb?r1=16732&r2=16756

 どこかのタイミングで 1.8.7-pN ã‚’å‡ºã—ã¾ã™ã€‚ãŠæ€¥ãŽã®å ´åˆã¯ ruby_1_8_7
ブランチをチェックアウトして使ってください。

okkez e$B$G$9!#e(B

2008/06/05 14:13 Akinori MUSHA [email protected]:

$ script/server
commite$B$7$F$$$^$9!#e(B

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_7/lib/delegate.rb?r1=16732&r2=16756

e$B$I$3$+$N%?%$%_%s%0$Ge(B 1.8.7-pN e$B$r=P$7$^$9!#$*5^$.$N>l9g$Oe(B ruby_1_8_7
e$B%V%i%s%A$r%A%'%C%/%"%&%H$7$F;H$C$F$/$@$5$$!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#e(B
e$B;H$o$;$F$$$?$@$-$^$9!#e(B

At Fri, 6 Jun 2008 18:37:15 +0900,
(æ ª)ネットフォレスト 植田裕之 wrote:

 まだあまり 1.8.7 を試した方が少ないんでしょうか? 早いうちに -pX を出
した方が良さそうに思いますが…

 いくつか懸案があった(まだある)ので内容の検討とスケジュールの
調整を行っていましたが、今週末にパッチリリースを出す予定です。

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

okkez e$B$G$9!#e(B

2008/06/05 14:13 Akinori MUSHA [email protected]:

At Thu, 5 Jun 2008 14:01:19 +0900,
okkez wrote:

Ruby1.8.7 e$B$Ge(B Rails 2.0.2 e$B$,F0$-$^$;$s!#e(B
;
Rails2.1.0 e$B$@$H:F8=$;$:!"$-$A$s$HF0$-$^$9!#e(B
e$B$^$?e(B Ruby1.8.6 e$B$He(B Rails2.0.2 e$B$NAH$_9g$o$;$b$-$A$s$HF0$/$N$O3NG’:Q$G$9!#e(B

e$B!!:#99$J$s$G$9$,e(B ruby 1.8.7 + Rails 1.2.6
e$B$G$b$3$NLdBj$,H/@8$7$^$7$?!#$Ge(B

e$B!!e(Bpreview4e$B8e$KE,MQ$7$?e(B Marshal e$B$N%P%0=$@5$K$h$C$F82:_2=$7$F$7$^$C$?e(B
delegate e$B%i%$%V%i%j$N%P%0e(B(e$B0z?t$N<BAuO3$le(B)e$B$G!"%j%j!<%9D>8e$K=$@5$Oe(B
commite$B$7$F$$$^$9!#e(B

http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_7/lib/delegate.rb?r1=16732&r2=16756

e$B$3$N=$@5$GD>$j$^$7$?!#e(B

e$B!!$^$@$"$^$je(B 1.8.7 e$B$r;n$7$?J}$,>/$J$$$s$G$7$g$&$+!)e(B
e$BAa$$$&$A$Ke(B -pX e$B$r=Pe(B
e$B$7$?J}$,NI$5$=$&$K;W$$$^$9$,e(B…