arachni-0.3/lib/module/utilities.rb:65 Segmentation Fault
Created by: skout23
Really appreciate all the hard work, amazed that today is the first time I have played with Arachni, looking forward to distributed future.
This may be related to the general OSX Lion sys-proctable issues I have seen in the closed tickets. I also get dependency errors when I try to use the gem created bins which call "gem 'arachni'" and I get the same dependency errors when I irb and "gem 'arachni'"... but this is not why I opened a ticket.
I am able to manually start up the arachni_xmlrpcd & arachni_web from the gem bin dir, and am able to pull up the sinatra app fine and start my scans.
I created a scan of a site with only 4-5 pages and it ran fine, reports worked as expected a few false positives, but good stuff.
However when I try a larger site (~100pages), I get the seg fault around 25% (31k requests) of the way through.
I noticed that the Distpatcher never displayed memory usage which leads me to believe it is related to the sys-proctable issues, but figure someone else might notice otherwise.
I am itching to get the dispatcher/memory reporting issue fixed to see if that fixes the fault. If I am able to I will submit a pull request.
uname -a
Darwin mercury.local 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64
mercury:~ user$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
mercury:~ user$ gem list
*** LOCAL GEMS ***
addressable (2.2.6)
arachni (0.3)
arachni-typhoeus (0.2.0.2)
awesome_print (0.3.2)
builder (3.0.0)
bundler (1.0.18)
data_objects (0.10.6)
datamapper (1.0.2)
dm-aggregates (1.0.2)
dm-constraints (1.0.2)
dm-core (1.0.2)
dm-do-adapter (1.0.2)
dm-migrations (1.0.2)
dm-serializer (1.0.2)
dm-sqlite-adapter (1.0.2)
dm-timestamps (1.0.2)
dm-transactions (1.0.2)
dm-types (1.0.2)
dm-validations (1.0.2)
do_sqlite3 (0.10.6)
extlib (0.9.15)
fastercsv (1.5.4)
heroku (2.6.1)
json (1.4.6)
json_pure (1.5.4)
launchy (2.0.5)
looksee (1.0.2)
mime-types (1.16)
net-ssh (2.1.4)
nokogiri (1.4.7)
rack (1.3.2)
rack-flash (0.1.2)
rack_csrf (2.1.0)
rake (0.9.2 ruby)
rdiscount (1.6.8)
rest-client (1.6.7)
rubyzip (0.9.4)
sinatra (1.2.6)
spruz (0.2.13)
stringex (1.1.0)
sys-proctable (0.8.2 x86-darwin-8)
term-ansicolor (1.0.6)
terminal-table (1.4.2)
tilt (1.3.3)
toto (0.4.9)
uuidtools (2.1.2)
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:65: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
-- control frame ----------
c:0038 p:0048 s:0149 b:0148 l:000147 d:000147 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:65
c:0037 p:0026 s:0144 b:0143 l:000142 d:000142 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:551
c:0036 p:0057 s:0138 b:0138 l:000128 d:000137 BLOCK /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:465
c:0035 p:---- s:0134 b:0134 l:000133 d:000133 FINISH
c:0034 p:---- s:0132 b:0132 l:000131 d:000131 CFUNC :each
c:0033 p:0066 s:0129 b:0129 l:000128 d:000128 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:460
c:0032 p:0399 s:0126 b:0114 l:000113 d:000113 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:159
c:0031 p:0076 s:0104 b:0104 l:000850 d:000103 BLOCK /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/spider.rb:105
c:0030 p:---- s:0100 b:0100 l:000099 d:000099 FINISH
c:0029 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC :call
c:0028 p:0021 s:0094 b:0093 l:000084 d:000092 BLOCK /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/typhoeus/request.rb:71
c:0027 p:---- s:0090 b:0090 l:000089 d:000089 FINISH
c:0026 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :each
c:0025 p:0033 s:0085 b:0085 l:000084 d:000084 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/typhoeus/request.rb:70
c:0024 p:0103 s:0082 b:0082 l:000081 d:000081 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/hydra.rb:220
c:0023 p:0035 s:0075 b:0075 l:0001c8 d:000074 BLOCK /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/hydra.rb:184
c:0022 p:---- s:0071 b:0071 l:000070 d:000070 FINISH
c:0021 p:---- s:0069 b:0069 l:000068 d:000068 CFUNC :call
c:0020 p:0021 s:0065 b:0065 l:000064 d:000064 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/easy.rb:318
c:0019 p:---- s:0062 b:0062 l:000061 d:000061 FINISH
c:0018 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :multi_perform
c:0017 p:0019 s:0057 b:0057 l:000056 d:000056 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/multi.rb:21
c:0016 p:0131 s:0054 b:0054 l:000053 d:000053 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/hydra.rb:97
c:0015 p:0011 s:0048 b:0048 l:000588 d:000047 BLOCK /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/http.rb:156
c:0014 p:---- s:0046 b:0046 l:000045 d:000045 FINISH
c:0013 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC :call
c:0012 p:0014 s:0041 b:0041 l:000040 d:000040 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:109
c:0011 p:0011 s:0036 b:0036 l:000588 d:000588 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/http.rb:155
c:0010 p:0232 s:0033 b:0033 l:000850 d:000850 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/spider.rb:127
c:0009 p:0092 s:0025 b:0025 l:001158 d:001158 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/framework.rb:266
c:0008 p:0057 s:0022 b:0022 l:000021 d:000021 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/framework.rb:182
c:0007 p:0009 s:0018 b:0018 l:0007b8 d:000017 BLOCK /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/rpc/xml/server/framework.rb:137
c:0006 p:---- s:0016 b:0016 l:000015 d:000015 FINISH
c:0005 p:---- s:0014 b:0014 l:000013 d:000013 CFUNC :call
c:0004 p:0014 s:0011 b:0011 l:000010 d:000010 METHOD /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:109
c:0003 p:0009 s:0006 b:0006 l:0007b8 d:0019b8 BLOCK /Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/rpc/xml/server/framework.rb:137
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 ----------------------------------------
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/rpc/xml/server/framework.rb:137:in `block in run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:109:in `exception_jail'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:109:in `call'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/rpc/xml/server/framework.rb:137:in `block (2 levels) in run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/framework.rb:182:in `run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/framework.rb:266:in `audit'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/spider.rb:127:in `run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/http.rb:155:in `run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:109:in `exception_jail'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:109:in `call'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/http.rb:156:in `block in run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/hydra.rb:97:in `run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/multi.rb:21:in `perform'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/multi.rb:21:in `multi_perform'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/easy.rb:318:in `success'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/easy.rb:318:in `call'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/hydra.rb:184:in `block in get_easy_object'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-typhoeus-0.2.0.2/lib/typhoeus/hydra.rb:220:in `handle_request'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/typhoeus/request.rb:70:in `call_handlers'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/typhoeus/request.rb:70:in `each'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/typhoeus/request.rb:71:in `block in call_handlers'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/typhoeus/request.rb:71:in `call'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/spider.rb:105:in `block in run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:159:in `run'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:460:in `paths'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:460:in `each'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:465:in `block in paths'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/parser/parser.rb:551:in `in_domain?'
/Users/user/.rvm/gems/ruby-1.9.2-p290/gems/arachni-0.3/lib/module/utilities.rb:65:in `normalize_url'