e$B$k$S$-$A$G$9!#e(B
e$B860xITL@$J$N$G%“%W%j%1!<%7%g%s$NNc$G?=$7Lu$”$j$^$;$s!#e(B
rcodetools (gem install rcodetools) e$BFb$Ke(B rct-fork /
rct-fork-client
e$B$H$$$&%i%$%V%i%j%m!<%I$N%*!<%P!<%X%C%I$rM^@)$9$k%9%/%j%W%H$,$"$j$^$9!#e(B
e$B$3$l$Oe(B xmpfilter
e$B$HAH$_9g$o$;$F;H$&$3$H$rG0F,$KCV$$$F$$$^$9!#e(B
xmpfilter --fork e$B$r<B9T$9$k$H!"e(B rct-fork-client
e$B$r;H$C$FCm<a$r9T$$$^$9!#e(B
e$B860x5fL@$r;n$_$^$7$?$,!"$I$&$7$F$b:G>.8B$N%5%s%W%k$r:n@.$G$-$^$;$s$G$7$?!#e(B
trunk e$B$K$*$$$Fe(B xmpfilter --fork e$B$r<B9T$9$k$H3N$+$Ke(B Ruby
e$B%$%s%?%W%j%?$OMn$A$^$9!#e(B
Ruby 1.8 e$B$G$O@5$7$$5sF0$r<($7$^$9!#e(B
$ ruby18 -S rct-fork -rcgi # e$B%5!<%Pe(B
$ (echo “RUBY_VERSION # =>”; echo ‘$".grep (/cgi/) # =>’) | xmpfilter
–fork # e$B%/%i%$%“%s%He(B
RUBY_VERSION # => “1.8.7”
$”.grep (/cgi/) # => [“cgi.rb”]
trunk e$B$N>l9g$OMn$A$^$9!#e(B
$ ruby19 -S rct-fork -rcgi # e$B%5!<%Pe(B
e$B!J%5!<%P$O@5$7$/F0:n$9$k!Ke(B
$ (echo “RUBY_VERSION # =>”; echo ‘$".grep (/cgi/) # =>’) | xmpfilter
–fork
(eval):1: [BUG] Segmentation fault
ruby 1.9.2dev (2009-03-03 trunk 22725) [i686-linux]
– control frame ----------
c:0016 p:---- s:0049 b:0049 l:000048 d:000048 CFUNC :reopen
c:0015 p:0014 s:0044 b:0044 l:000b94 d:001e24 EVAL (eval):1
c:0014 p:---- s:0042 b:0042 l:000041 d:000041 FINISH
c:0013 p:---- s:0040 b:0040 l:000039 d:000039 CFUNC :eval
c:0012 p:0019 s:0035 b:0035 l:000026 d:000034 BLOCK
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:220
c:0011 p:---- s:0032 b:0032 l:000031 d:000031 FINISH
c:0010 p:---- s:0030 b:0030 l:000029 d:000029 CFUNC :each
c:0009 p:0073 s:0027 b:0027 l:000026 d:000026 METHOD
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:220
c:0008 p:0031 s:0023 b:0023 l:001b3c d:000022 BLOCK
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:194
c:0007 p:0143 s:0021 b:0021 l:000020 d:000020 METHOD
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:96
c:0006 p:0012 s:0017 b:0017 l:001b3c d:000016 BLOCK
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:192
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 FINISH
c:0004 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC :fork
c:0003 p:0075 s:0010 b:0010 l:001b3c d:000009 BLOCK
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:191
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:191:in block (2 levels) in start_server' /pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:191:in
fork’
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:192:in block (3 levels) in start_server' /pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:96:in
daemonize’
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:194:in block (4 levels) in start_server' /pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:220:in
setup_environment’
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:220:in each' /pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:220:in
block
in setup_environment’
/pkgs/ruby19/lib/ruby19/site_ruby/1.9.1/rcodetools/fork.rb:220:in eval' (eval):1:in
’
(eval):1:in `reopen’
– C level backtrace information
0x814d404 ruby19 (rb_vm_bugreport+0xb2) [0x814d404]
0x8186063 ruby19 [0x8186063]
0x81860de ruby19 (rb_bug+0x24) [0x81860de]
0x80eac71 ruby19 [0x80eac71]
0xffffe440 [0xffffe440]
0x8139582 ruby19 [0x8139582]
0x814b557 ruby19 [0x814b557]
0x813dfdf ruby19 [0x813dfdf]
0x8144c32 ruby19 [0x8144c32]
0x8145a47 ruby19 [0x8145a47]
0x8145f19 ruby19 (rb_f_eval+0xdd) [0x8145f19]
0x8139582 ruby19 [0x8139582]
0x814b557 ruby19 [0x814b557]
0x813dfdf ruby19 [0x813dfdf]
0x8144c32 ruby19 [0x8144c32]
0x8145625 ruby19 (rb_yield+0x49) [0x8145625]
0x815ab48 ruby19 (rb_ary_each+0x3a) [0x815ab48]
0x814b557 ruby19 [0x814b557]
0x813dfdf ruby19 [0x813dfdf]
0x8144c32 ruby19 [0x8144c32]
0x8145668 ruby19 (rb_yield+0x8c) [0x8145668]
0x805c84e ruby19 (rb_protect+0xb7) [0x805c84e]
0x80b877b ruby19 [0x80b877b]
0x814b557 ruby19 [0x814b557]
0x813dfdf ruby19 [0x813dfdf]
0x8144c32 ruby19 [0x8144c32]
0x81474f7 ruby19 (rb_vm_invoke_proc+0x332) [0x81474f7]
0x81526b5 ruby19 [0x81526b5]
0x8152869 ruby19 [0x8152869]
0xb7f274e5 /lib/i686/cmov/libpthread.so.0 [0xb7f274e5]
0xb7e3d10e /lib/i686/cmov/libc.so.6 (clone+0x5e) [0xb7e3d10e]
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
RUBY_VERSION # =>
$".grep (/cgi/) # =>