Backport #4003
closedSegmentation fault
Description
=begin
Code that caused it: http://github.com/Zapotek/arachni/tree/experimental
Error:
/home/zapotek/workspace/arachni/lib/audit_store.rb:77: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18) [x86_64-linux]
-- control frame ----------
c:0012 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC :*
c:0011 p:---- s:0042 b:0042 l:000041 d:000041 CFUNC :asctime
c:0010 p:0062 s:0039 b:0039 l:000038 d:000038 METHOD /home/zapotek/workspace/arachni/lib/audit_store.rb:77
c:0009 p:---- s:0035 b:0035 l:000034 d:000034 FINISH
c:0008 p:---- s:0033 b:0033 l:000032 d:000032 CFUNC :new
c:0007 p:0102 s:0029 b:0029 l:000028 d:000028 METHOD /home/zapotek/workspace/arachni/lib/framework.rb:185
c:0006 p:0075 s:0026 b:0021 l:000020 d:000020 METHOD /home/zapotek/workspace/arachni/lib/framework.rb:143
c:0005 p:0013 s:0016 b:0016 l:000015 d:000015 METHOD /home/zapotek/workspace/arachni/lib/ui/cli/cli.rb:129
c:0004 p:0037 s:0011 b:0011 l:000010 d:000010 METHOD /home/zapotek/workspace/arachni/lib/ui/cli/cli.rb:108
c:0003 p:0162 s:0007 b:0007 l:000c18 d:001850 EVAL ./arachni.rb:20
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000c18 d:000c18 TOP
-- Ruby level backtrace information ----------------------------------------
./arachni.rb:20:in <main>' /home/zapotek/workspace/arachni/lib/ui/cli/cli.rb:108:in
run'
/home/zapotek/workspace/arachni/lib/ui/cli/cli.rb:129:in print_stats' /home/zapotek/workspace/arachni/lib/framework.rb:143:in
stats'
/home/zapotek/workspace/arachni/lib/framework.rb:185:in audit_store' /home/zapotek/workspace/arachni/lib/framework.rb:185:in
new'
/home/zapotek/workspace/arachni/lib/audit_store.rb:77:in initialize' /home/zapotek/workspace/arachni/lib/audit_store.rb:77:in
asctime'
/home/zapotek/workspace/arachni/lib/audit_store.rb:77:in `*'
-- C level backtrace information -------------------------------------------
ruby(rb_vm_bugreport+0x9e) [0x51f6ce]
ruby() [0x560a28]
ruby(rb_bug+0xb1) [0x560bc1]
ruby() [0x4af2d8]
/lib/libpthread.so.0(+0xfb40) [0x7f4d112f8b40]
ruby(st_lookup+0x88) [0x4b6c48]
ruby() [0x4f3d7b]
ruby(rb_class_path+0x16) [0x4f3f86]
ruby(rb_obj_classname+0x3a) [0x4f4a8a]
ruby() [0x56245d]
ruby(rb_check_typeddata+0x2b) [0x56251b]
ruby(rb_mutex_lock+0x1d) [0x5258cd]
ruby(rb_mutex_synchronize+0x21) [0x525e61]
ruby() [0x4313a5]
ruby() [0x43176a]
ruby(rb_io_fptr_finalize+0xe2) [0x4320b2]
ruby() [0x420e94]
ruby(rb_gc_finalize_deferred+0x31) [0x421471]
ruby() [0x5231c5]
ruby() [0x53d3c8]
ruby() [0x542d73]
ruby(rb_big_mul+0xe6) [0x545096]
ruby() [0x50f0b3]
ruby(rb_funcall+0x113) [0x50faa3]
ruby() [0x4db6b6]
ruby() [0x4dd8a5]
ruby() [0x4dddf7]
ruby() [0x515b6f]
ruby() [0x5172c2]
ruby() [0x51bd6a]
ruby() [0x50f03b]
ruby(rb_class_new_instance+0x30) [0x450460]
ruby() [0x515b6f]
ruby() [0x5172c2]
ruby() [0x51bd6a]
ruby(rb_iseq_eval_main+0x28a) [0x51c18a]
ruby() [0x417e52]
ruby(ruby_run_node+0x36) [0x419ac6]
ruby(main+0x49) [0x417009]
/lib/libc.so.6(__libc_start_main+0xfe) [0x7f4d106bcd8e]
ruby() [0x416ef9]
=end