Bug #1139
closedSegmentation fault ruby 1.9.1p0 (2009-01-30 revision 21907)
Description
=begin
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:64: [BUG] Segmentation fault
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
-- control frame ----------
c:0018 p:0012 s:0063 b:0063 l:000062 d:000062 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:64
c:0017 p:0011 s:0060 b:0060 l:000059 d:000059 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:13
c:0016 p:---- s:0056 b:0056 l:000055 d:000055 FINISH
c:0015 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC :parse_memory
c:0014 p:0052 s:0050 b:0050 l:000049 d:000049 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/xml/sax/parser.rb:17
c:0013 p:0057 s:0046 b:0046 l:000045 d:000045 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:12
c:0012 p:0019 s:0040 b:0040 l:000039 d:000039 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:19
c:0011 p:0092 s:0036 b:0036 l:001284 d:000035 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:93
c:0010 p:---- s:0030 b:0030 l:000029 d:000029 FINISH
c:0009 p:---- s:0028 b:0028 l:000027 d:000027 CFUNC :call
c:0008 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :perform
c:0007 p:0070 s:0023 b:0023 l:000022 d:000022 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66
c:0006 p:0047 s:0015 b:0015 l:000494 d:000014 BLOCK /home/shenouda/RubyProjects/Feedzo/lib/main.rb:6
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :times
c:0003 p:0034 s:0006 b:0006 l:000494 d:0020bc EVAL /home/shenouda/RubyProjects/Feedzo/lib/main.rb:3
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000494 d:000494 TOP :17
-- Ruby level backtrace information-----------------------------------------
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:64:in parsing_collection?' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:13:in
characters'
/usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/xml/sax/parser.rb:17:in parse_memory' /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/xml/sax/parser.rb:17:in
parse'
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:12:in parse' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:19:in
parse'
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:93:in block (2 levels) in add_url_to_multi' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66:in
call'
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66:in perform' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66:in
fetch_and_parse'
/home/shenouda/RubyProjects/Feedzo/lib/main.rb:6:in block in <main>' /home/shenouda/RubyProjects/Feedzo/lib/main.rb:3:in
times'
/home/shenouda/RubyProjects/Feedzo/lib/main.rb:3:in `'
-- C level backtrace information -------------------------------------------
0x812c8d8 /usr/local/bin/ruby(rb_vm_bugreport+0x48) [0x812c8d8]
0x815aca1 /usr/local/bin/ruby [0x815aca1]
0x815ad18 /usr/local/bin/ruby(rb_bug+0x28) [0x815ad18]
0x80d88d6 /usr/local/bin/ruby [0x80d88d6]
0xb7f5d410 [0xb7f5d410]
0x8069a42 /usr/local/bin/ruby [0x8069a42]
0x805c921 /usr/local/bin/ruby(rb_ensure+0x81) [0x805c921]
0x8068e42 /usr/local/bin/ruby(rb_hash_foreach+0x42) [0x8068e42]
0xb7c8ab53 /usr/local/lib/ruby/gems/1.9.1/gems/taf2-curb-0.2.7/ext/curb_core.so [0xb7c8ab53]
0x80635c1 /usr/local/bin/ruby [0x80635c1]
0x806373c /usr/local/bin/ruby [0x806373c]
0x806377c /usr/local/bin/ruby [0x806377c]
0x812fbe5 /usr/local/bin/ruby(rb_thread_execute_interrupts+0xf5) [0x812fbe5]
0x8128a71 /usr/local/bin/ruby [0x8128a71]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x811cd95 /usr/local/bin/ruby [0x811cd95]
0x811d287 /usr/local/bin/ruby(rb_funcall+0xb7) [0x811d287]
0xb77c6d2f /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/native.so [0xb77c6d2f]
0xb7665745 /usr/lib/libxml2.so.2(xmlParseReference+0x2f5) [0xb7665745]
0xb7663688 /usr/lib/libxml2.so.2(xmlParseContent+0x248) [0xb7663688]
0xb76630fa /usr/lib/libxml2.so.2(xmlParseElement+0x12a) [0xb76630fa]
0xb76635dd /usr/lib/libxml2.so.2(xmlParseContent+0x19d) [0xb76635dd]
0xb76630fa /usr/lib/libxml2.so.2(xmlParseElement+0x12a) [0xb76630fa]
0xb76635dd /usr/lib/libxml2.so.2(xmlParseContent+0x19d) [0xb76635dd]
0xb76630fa /usr/lib/libxml2.so.2(xmlParseElement+0x12a) [0xb76630fa]
0xb766a22a /usr/lib/libxml2.so.2(xmlParseDocument+0x37a) [0xb766a22a]
0xb766ac32 /usr/lib/libxml2.so.2(xmlSAXUserParseMemory+0x72) [0xb766ac32]
0xb77c6a94 /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/native.so [0xb77c6a94]
0x8128956 /usr/local/bin/ruby [0x8128956]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x81280fd /usr/local/bin/ruby(rb_vm_invoke_proc+0x35d) [0x81280fd]
0x805fc25 /usr/local/bin/ruby [0x805fc25]
0x811acdd /usr/local/bin/ruby [0x811acdd]
0x811cbae /usr/local/bin/ruby [0x811cbae]
0x811d287 /usr/local/bin/ruby(rb_funcall+0xb7) [0x811d287]
0xb7c8a5eb /usr/local/lib/ruby/gems/1.9.1/gems/taf2-curb-0.2.7/ext/curb_core.so [0xb7c8a5eb]
0xb7c8a883 /usr/local/lib/ruby/gems/1.9.1/gems/taf2-curb-0.2.7/ext/curb_core.so [0xb7c8a883]
0x8128956 /usr/local/bin/ruby [0x8128956]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x812639c /usr/local/bin/ruby [0x812639c]
0x81267c9 /usr/local/bin/ruby(rb_yield+0x49) [0x81267c9]
0x807eff1 /usr/local/bin/ruby [0x807eff1]
0x8128956 /usr/local/bin/ruby [0x8128956]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x8125e94 /usr/local/bin/ruby(rb_iseq_eval_main+0x94) [0x8125e94]
0x805d35f /usr/local/bin/ruby(ruby_exec_node+0x9f) [0x805d35f]
0x805e876 /usr/local/bin/ruby(ruby_run_node+0x46) [0x805e876]
0x805be80 /usr/local/bin/ruby(main+0x60) [0x805be80]
0xb7d6a685 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d6a685]
0x805bd81 /usr/local/bin/ruby [0x805bd81]
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
=end
Updated by ko1 (Koichi Sasada) almost 16 years ago
=begin
Could you show your program, or make short reproduce-able script?
I'm not sure about pauldix-sax-machine-0.0.7, but it seems library's issue.
Shenouda Bertel wrote::
Bug #1139: Segmentation fault ruby 1.9.1p0 (2009-01-30 revision 21907)
http://redmine.ruby-lang.org/issues/show/1139Author: Shenouda Bertel
Status: Open, Priority: Normal
ruby -v: 1.9.1/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:64: [BUG] Segmentation fault
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]-- control frame ----------
c:0018 p:0012 s:0063 b:0063 l:000062 d:000062 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:64
c:0017 p:0011 s:0060 b:0060 l:000059 d:000059 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:13
c:0016 p:---- s:0056 b:0056 l:000055 d:000055 FINISH
c:0015 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC :parse_memory
c:0014 p:0052 s:0050 b:0050 l:000049 d:000049 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/xml/sax/parser.rb:17
c:0013 p:0057 s:0046 b:0046 l:000045 d:000045 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:12
c:0012 p:0019 s:0040 b:0040 l:000039 d:000039 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:19
c:0011 p:0092 s:0036 b:0036 l:001284 d:000035 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:93
c:0010 p:---- s:0030 b:0030 l:000029 d:000029 FINISH
c:0009 p:---- s:0028 b:0028 l:000027 d:000027 CFUNC :call
c:0008 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC :perform
c:0007 p:0070 s:0023 b:0023 l:000022 d:000022 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66
c:0006 p:0047 s:0015 b:0015 l:000494 d:000014 BLOCK /home/shenouda/RubyProjects/Feedzo/lib/main.rb:6
c:0005 p:---- s:0011 b:0011 l:000010 d:000010 FINISH
c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :times
c:0003 p:0034 s:0006 b:0006 l:000494 d:0020bc EVAL /home/shenouda/RubyProjects/Feedzo/lib/main.rb:3
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000494 d:000494 TOP :17-- Ruby level backtrace information-----------------------------------------
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:64:inparsing_collection?' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_handler.rb:13:in
characters'
/usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/xml/sax/parser.rb:17:inparse_memory' /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/xml/sax/parser.rb:17:in
parse'
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:12:inparse' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-sax-machine-0.0.7/lib/sax-machine/sax_document.rb:19:in
parse'
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:93:inblock (2 levels) in add_url_to_multi' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66:in
call'
/usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66:inperform' /usr/local/lib/ruby/gems/1.9.1/gems/pauldix-feedzirra-0.0.1/lib/feedzirra/feed.rb:66:in
fetch_and_parse'
/home/shenouda/RubyProjects/Feedzo/lib/main.rb:6:inblock in <main>' /home/shenouda/RubyProjects/Feedzo/lib/main.rb:3:in
times'
/home/shenouda/RubyProjects/Feedzo/lib/main.rb:3:in `'-- C level backtrace information -------------------------------------------
0x812c8d8 /usr/local/bin/ruby(rb_vm_bugreport+0x48) [0x812c8d8]
0x815aca1 /usr/local/bin/ruby [0x815aca1]
0x815ad18 /usr/local/bin/ruby(rb_bug+0x28) [0x815ad18]
0x80d88d6 /usr/local/bin/ruby [0x80d88d6]
0xb7f5d410 [0xb7f5d410]
0x8069a42 /usr/local/bin/ruby [0x8069a42]
0x805c921 /usr/local/bin/ruby(rb_ensure+0x81) [0x805c921]
0x8068e42 /usr/local/bin/ruby(rb_hash_foreach+0x42) [0x8068e42]
0xb7c8ab53 /usr/local/lib/ruby/gems/1.9.1/gems/taf2-curb-0.2.7/ext/curb_core.so [0xb7c8ab53]
0x80635c1 /usr/local/bin/ruby [0x80635c1]
0x806373c /usr/local/bin/ruby [0x806373c]
0x806377c /usr/local/bin/ruby [0x806377c]
0x812fbe5 /usr/local/bin/ruby(rb_thread_execute_interrupts+0xf5) [0x812fbe5]
0x8128a71 /usr/local/bin/ruby [0x8128a71]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x811cd95 /usr/local/bin/ruby [0x811cd95]
0x811d287 /usr/local/bin/ruby(rb_funcall+0xb7) [0x811d287]
0xb77c6d2f /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/native.so [0xb77c6d2f]
0xb7665745 /usr/lib/libxml2.so.2(xmlParseReference+0x2f5) [0xb7665745]
0xb7663688 /usr/lib/libxml2.so.2(xmlParseContent+0x248) [0xb7663688]
0xb76630fa /usr/lib/libxml2.so.2(xmlParseElement+0x12a) [0xb76630fa]
0xb76635dd /usr/lib/libxml2.so.2(xmlParseContent+0x19d) [0xb76635dd]
0xb76630fa /usr/lib/libxml2.so.2(xmlParseElement+0x12a) [0xb76630fa]
0xb76635dd /usr/lib/libxml2.so.2(xmlParseContent+0x19d) [0xb76635dd]
0xb76630fa /usr/lib/libxml2.so.2(xmlParseElement+0x12a) [0xb76630fa]
0xb766a22a /usr/lib/libxml2.so.2(xmlParseDocument+0x37a) [0xb766a22a]
0xb766ac32 /usr/lib/libxml2.so.2(xmlSAXUserParseMemory+0x72) [0xb766ac32]
0xb77c6a94 /usr/local/lib/ruby/gems/1.9.1/gems/nokogiri-1.1.1/lib/nokogiri/native.so [0xb77c6a94]
0x8128956 /usr/local/bin/ruby [0x8128956]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x81280fd /usr/local/bin/ruby(rb_vm_invoke_proc+0x35d) [0x81280fd]
0x805fc25 /usr/local/bin/ruby [0x805fc25]
0x811acdd /usr/local/bin/ruby [0x811acdd]
0x811cbae /usr/local/bin/ruby [0x811cbae]
0x811d287 /usr/local/bin/ruby(rb_funcall+0xb7) [0x811d287]
0xb7c8a5eb /usr/local/lib/ruby/gems/1.9.1/gems/taf2-curb-0.2.7/ext/curb_core.so [0xb7c8a5eb]
0xb7c8a883 /usr/local/lib/ruby/gems/1.9.1/gems/taf2-curb-0.2.7/ext/curb_core.so [0xb7c8a883]
0x8128956 /usr/local/bin/ruby [0x8128956]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x812639c /usr/local/bin/ruby [0x812639c]
0x81267c9 /usr/local/bin/ruby(rb_yield+0x49) [0x81267c9]
0x807eff1 /usr/local/bin/ruby [0x807eff1]
0x8128956 /usr/local/bin/ruby [0x8128956]
0x812205f /usr/local/bin/ruby [0x812205f]
0x8125d44 /usr/local/bin/ruby [0x8125d44]
0x8125e94 /usr/local/bin/ruby(rb_iseq_eval_main+0x94) [0x8125e94]
0x805d35f /usr/local/bin/ruby(ruby_exec_node+0x9f) [0x805d35f]
0x805e876 /usr/local/bin/ruby(ruby_run_node+0x46) [0x805e876]
0x805be80 /usr/local/bin/ruby(main+0x60) [0x805be80]
0xb7d6a685 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d6a685]
0x805bd81 /usr/local/bin/ruby [0x805bd81][NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
--
// SASADA Koichi at atdot dot net
=end
Updated by yugui (Yuki Sonoda) over 15 years ago
- Status changed from Open to Third Party's Issue
=begin
=end