sdsykes/fastimage — Issue #3: 'random' ruby segfaults with webrick
Author: rromanchuk
Created: 2011-10-20 06:21:43+00:00
State: open

This is probably not that actionable, but noticing a segfault in ruby's core protocol.rb:135 after running FastImage.size on a collection links running webrick. It seems to be happen randomly, sometimes never at all.

I'll investigate a bit and see if I can come up with a better report.

/Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:135: [BUG] Segmentation fault
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]

-- control frame ----------
c:0091 p:---- s:0479 b:0479 l:000478 d:000478 CFUNC :read_nonblock
c:0090 p:0025 s:0475 b:0474 l:000473 d:000473 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:135
c:0089 p:0025 s:0471 b:0471 l:000470 d:000470 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:116
c:0088 p:0013 s:0465 b:0465 l:000464 d:000464 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/protocol.rb:126
c:0087 p:0012 s:0462 b:0462 l:000461 d:000461 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2211
c:0086 p:0013 s:0456 b:0456 l:000455 d:000455 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:2200
c:0085 p:0072 s:0448 b:0448 l:000447 d:000447 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1183
c:0084 p:0097 s:0442 b:0442 l:000441 d:000441 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1169
c:0083 p:0046 s:0435 b:0435 l:000429 d:000434 BLOCK /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1162
c:0082 p:0057 s:0433 b:0433 l:000432 d:000432 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:627
c:0081 p:0025 s:0430 b:0430 l:000429 d:000429 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1160
c:0080 p:0033 s:0423 b:0423 l:000422 d:000422 METHOD /Users/rromanchuk/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/net/http.rb:1073
c:0079 p:0032 s:0417 b:0417 l:0012e8 d:0012e8 METHOD /Users/rromanchuk/.rvm/gems/ruby-1.9.2-p136@304/gems/fastimage-1.2.9/lib/fastimage.rb:176
c:0078 p:0147 s:0414 b:0414 l:000413 d:000413 METHOD /Users/rromanchuk/.rvm/gems/ruby-1.9.2-p136@304/gems/fastimage-1.2.9/lib/fastimage.rb:156
c:0077 p:---- s:0409 b:0409 l:000408 d:000408 FINISH
c:0076 p:---- s:0407 b:0407 l:000406 d:000406 CFUNC :new
c:0075 p:0019 s:0402 b:0402 l:000401 d:000401 METHOD /Users/rromanchuk/.rvm/gems/ruby-1.9.2-p136@304/gems/fastimage-1.2.9/lib/fastimage.rb:101