Hi,

When I test file upload with mod_ruby,

<%
require "cgi"
cgi = CGI.new
value, = cgi['attach_file']
user, = cgi.cookies['ID']
r = value.read
...
%>


Sometimes hang up with this message.


[xxx xxx xx xx:xx:xx 2000] [notice] child pid 27633 exit signal Segmentation
fault (11)

Sometimes hang up with this message.

[xxx xxx xx xx:xx:xx 2000] [error] ruby script error
/usr/local/lib/ruby/1.4/cgi.rb:761:in `read_multipart': undefined method
`size' for nil (N
ameError)
        from /usr/local/lib/ruby/1.4/cgi.rb:883:in `initialize_query'
        from /usr/local/lib/ruby/1.4/cgi.rb:1845:in `initialize'
        from /tmp/attach_mail.rhtml.iNkmip:3:in `new'
        from /tmp/attach_mail.rhtml.iNkmip:3

And sometimes it succeeded in small sized file.

When I removed mod_ruby and used eruby only, there was no problem at all.

Park, HeeSob