dbalatero/typhoeus — Issue #134: Segfaullt at normalized_header_hash.rb:55
Author: Zapotek
Created: 2011-12-06 01:48:10+00:00
State: open

I started using 0.3.3 a few hours ago and I just came across this new segfault:

```
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:55: [BUG] Segmentation fault
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0030 p:---- s:0152 b:0152 l:000151 d:000151 CFUNC :join
c:0029 p:0034 s:0148 b:0148 l:000147 d:000147 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:55
c:0028 p:0014 s:0144 b:0142 l:000132 d:000141 BLOCK /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:34
c:0027 p:---- s:0138 b:0138 l:000137 d:000137 FINISH
c:0026 p:---- s:0136 b:0136 l:000135 d:000135 CFUNC :each_pair
c:0025 p:0012 s:0133 b:0133 l:000132 d:000132 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:33
c:0024 p:0047 s:0129 b:0129 l:000128 d:000128 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:6
c:0023 p:---- s:0125 b:0125 l:000124 d:000124 FINISH
c:0022 p:---- s:0123 b:0123 l:000122 d:000122 CFUNC :new
c:0021 p:0018 s:0119 b:0119 l:000118 d:000118 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:42
c:0020 p:0318 s:0116 b:0114 l:000102 d:000113 BLOCK /home/zapotek/workspace/arachni/lib/arachni/audit_store.rb:292
c:0019 p:---- s:0108 b:0108 l:000107 d:000107 FINISH
c:0018 p:---- s:0106 b:0106 l:000105 d:000105 CFUNC :each
c:0017 p:0038 s:0103 b:0103 l:000102 d:000102 METHOD /home/zapotek/workspace/arachni/lib/arachni/audit_store.rb:274
c:0016 p:0059 s:0096 b:0095 l:000094 d:000094 METHOD /home/zapotek/workspace/arachni/lib/arachni/audit_store.rb:95
c:0015 p:---- s:0091 b:0091 l:000090 d:000090 FINISH
c:0014 p:---- s:0089 b:0089 l:000088 d:000088 CFUNC :new
c:0013 p:0152 s:0085 b:0085 l:000084 d:000084 METHOD /home/zapotek/workspace/arachni/lib/arachni/framework.rb:422
c:0012 p:0600 s:0080 b:0073 l:000072 d:000072 METHOD /home/zapotek/workspace/arachni/lib/arachni/framework.rb:298
c:0011 p:0228 s:0060 b:0060 l:000059 d:000059 METHOD /home/zapotek/workspace/arachni/lib/arachni/rpc/server/framework.rb:466
c:0010 p:0334 s:0049 b:0049 l:0014a0 d:0014a0 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/server.rb:343
c:0009 p:0063 s:0037 b:0036 l:000035 d:000035 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/server.rb:104
c:0008 p:0037 s:0027 b:0027 l:000026 d:000026 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/protocol.rb:67
c:0007 p:0127 s:0023 b:0023 l:000022 d:000022 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/protocol.rb:100
c:0006 p:---- s:0018 b:0018 l:000017 d:000017 FINISH
c:0005 p:---- s:0016 b:0016 l:000015 d:000015 CFUNC :run_machine
c:0004 p:0248 s:0013 b:0013 l:000012 d:000012 METHOD /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179
c:0003 p:0018 s:0006 b:0006 l:001450 d:0003d8 BLOCK /home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/em.rb:86
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP

-- Ruby level backtrace information ----------------------------------------
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/em.rb:86:in `block in ensure_em_running!'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run_machine'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/protocol.rb:100:in `receive_data'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/protocol.rb:67:in `receive_object'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/server.rb:104:in `receive_request'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/arachni-rpc-em-0.1/lib/arachni/rpc/em/server.rb:343:in `call'
/home/zapotek/workspace/arachni/lib/arachni/rpc/server/framework.rb:466:in `progress_data'
/home/zapotek/workspace/arachni/lib/arachni/framework.rb:298:in `stats'
/home/zapotek/workspace/arachni/lib/arachni/framework.rb:422:in `audit_store'
/home/zapotek/workspace/arachni/lib/arachni/framework.rb:422:in `new'
/home/zapotek/workspace/arachni/lib/arachni/audit_store.rb:95:in `initialize'
/home/zapotek/workspace/arachni/lib/arachni/audit_store.rb:274:in `prepare_variations'
/home/zapotek/workspace/arachni/lib/arachni/audit_store.rb:274:in `each'
/home/zapotek/workspace/arachni/lib/arachni/audit_store.rb:292:in `block in prepare_variations'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:42:in `dup'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:42:in `new'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:6:in `initialize'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:33:in `update'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:33:in `each_pair'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:34:in `block in update'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:55:in `convert_key'
/home/zapotek/.rvm/gems/ruby-1.9.3-p0/gems/typhoeus-0.3.3/lib/typhoeus/normalized_header_hash.rb:55:in `join'
```