From noreply at rubyforge.org Mon May 2 02:25:00 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:25:00 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-28662 ] Segfault assigning document.root when running in thread Message-ID: <20110502062501.40E98185838E@rubyforge.org> Bugs item #28662, was opened at 2010-10-21 13:21 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28662&group_id=494 Category: None Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Alan Gano (alangano) Assigned to: Charlie Savage (cfis) Summary: Segfault assigning document.root when running in thread Initial Comment: Gentoo x86_64; ruby 1.9.2; libxml2 2.7.7; libxml-ruby 1.1.3 (gem) ------------------------------------------------------ #!/opt/ruby/bin/ruby192 -w require 'libxml' t1 = Thread.new { 100000.times { |i| document = LibXML::XML::Document.new document.root = LibXML::XML::Node.new('test') } } t1.join ------------------------------------------------------ Segfault is avoided if: - .root assignment is removed - GC.start is called at end of loop - not run in thread - the loop is made to run slower (e.g., printing out i variable) $ ./aa42 ./aa42:8: [BUG] Segmentation fault ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] -- control frame ---------- c:0007 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :new c:0006 p:0047 s:0017 b:0015 l:002258 d:000014 BLOCK ./aa42:8 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:0010 s:0006 b:0006 l:002258 d:000005 BLOCK ./aa42:6 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 ---------------------------------------- ./aa42:6:in `block in
' ./aa42:6:in `times' ./aa42:8:in `block (2 levels) in
' ./aa42:8:in `new' -- C level backtrace information ------------------------------------------- /opt/ruby/bin/ruby192(rb_vm_bugreport+0x9e) [0x51e10e] /opt/ruby/bin/ruby192() [0x55e700] /opt/ruby/bin/ruby192(rb_bug+0xb1) [0x55e8a1] /opt/ruby/bin/ruby192() [0x4af468] /lib/libpthread.so.0(+0xf010) [0x7fb5d3894010] /lib/libc.so.6(+0x73ddf) [0x7fb5d2cdaddf] /lib/libc.so.6(cfree+0x6c) [0x7fb5d2cde71c] /usr/lib/libxml2.so.2(xmlFreeDoc+0x16b) [0x7fb5d214134b] /opt/ruby/bin/ruby192() [0x423aa4] /opt/ruby/bin/ruby192(rb_gc_finalize_deferred+0x31) [0x424081] /opt/ruby/bin/ruby192() [0x520795] /opt/ruby/bin/ruby192() [0x515437] /opt/ruby/bin/ruby192(rb_funcall+0xf3) [0x519b43] /opt/ruby/bin/ruby192(rb_obj_alloc+0x52) [0x452252] /opt/ruby/bin/ruby192(rb_class_new_instance+0x20) [0x452390] /opt/ruby/bin/ruby192() [0x50e0f1] /opt/ruby/bin/ruby192() [0x50f7d6] /opt/ruby/bin/ruby192() [0x514189] /opt/ruby/bin/ruby192(rb_yield+0x66) [0x51c3f6] /opt/ruby/bin/ruby192() [0x449851] /opt/ruby/bin/ruby192() [0x50e0f1] /opt/ruby/bin/ruby192() [0x50f7d6] /opt/ruby/bin/ruby192() [0x514189] /opt/ruby/bin/ruby192(rb_vm_invoke_proc+0xa1) [0x51a9d1] /opt/ruby/bin/ruby192() [0x524b41] /opt/ruby/bin/ruby192() [0x524bfe] /lib/libpthread.so.0(+0x6894) [0x7fb5d388b894] /lib/libc.so.6(clone+0x6d) [0x7fb5d2d3827d] [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Aborted $ ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:25 Message: Hi Alan, Finally figured this one out. It has been fixed in head and the next release (2.0.3) will include the fix. Thanks for the report. Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 21:37 Message: Hi Alan, I can't reproduce this using the latest release along with libxml 2.7.8. I've added this as a test case in the test suite. Can you check with the latest libxml-ruby release? Thans - Charlie ---------------------------------------------------------------------- Comment By: Alan Gano (alangano) Date: 2010-10-21 13:25 Message: It seems that gem is listing the libxml-ruby version as 1.1.4, which is not on your download page(?). I have manually installed 1.1.3 (from gem and then from source) and gotten the same result. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28662&group_id=494 From noreply at rubyforge.org Mon May 2 02:26:56 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:26:56 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-26863 ] Libxml::Node#children causes segfault Message-ID: <20110502062656.54D48185838E@rubyforge.org> Bugs item #26863, was opened at 2009-08-04 22:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=26863&group_id=494 Category: None Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Charlie Savage (cfis) Summary: Libxml::Node#children causes segfault Initial Comment: The following ruby snippet causes a segmentation fault with ruby 1.8.7 p160 and libxml-ruby 1.1.3. ###File: libxml_test.rb### #! /usr/local/bin/ruby require "rubygems" require 'xml' require 'xml/libxml' def child(e) e.children.each do |n| # segfault child(n) end end def make_text(txt) return end file = File.open("html") regexp_result = file.read regexp_rexml_result = XML::Parser.string(regexp_result) doc = regexp_rexml_result.parse cnt = 1 loop do elem = doc.find("//*") elem.each{|e| child(e) } p cnt cnt+=1 end ###result### 1 2 3 4 ./libxml_test.rb:8: [BUG] Segmentation fault ruby 1.8.7 (2009-04-08 patchlevel 160) [x86_64-linux] ###trace### gdb --args ruby ./libxml_test.rb GNU gdb Fedora (6.8-27.el5) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... (gdb) run Starting program: /usr/local/bin/ruby ./libxml_test.rb [Thread debugging using libthread_db enabled] [New Thread 0x2b59906fb1b0 (LWP 25792)] 1 2 3 4 Program received signal SIGSEGV, Segmentation fault. 0x0000000000472959 in st_lookup (table=0x2b599137c7e0, key=10937, value=0x7fffbc525290) at st.c:250 250 hash_val = do_hash(key, table); (gdb) backtrace #0 0x0000000000472959 in st_lookup (table=0x2b599137c7e0, key=10937, value=0x7fffbc525290) at st.c:250 #1 0x00000000004115e5 in search_method (klass=47663683986880, id=10937, origin=0x7fffbc5252c8) at eval.c:475 #2 0x0000000000411657 in rb_get_method_body (klassp=0x7fffbc525310, idp=0x7fffbc525318, noexp=0x7fffbc525324) at eval.c:496 #3 0x000000000041c215 in rb_call (klass=47663683986880, recv=47663683986080, mid=10937, argc=0, argv=0x0, scope=0, self=47663675716280) at eval.c:6128 #4 0x0000000000416ebb in rb_eval (self=47663675716280, n=) at eval.c:3494 #5 0x0000000000416dc7 in rb_eval (self=47663675716280, n=) at eval.c:3488 #6 0x0000000000418fcf in rb_eval (self=47663675716280, n=) at eval.c:3224 #7 0x000000000041bda0 in rb_call0 (klass=47663675726440, recv=47663675716280, id=10921, oid=, argc=11097, argv=0x7fffbc526048, body=0x2b5990739640, flags=) at eval.c:6057 #8 0x000000000041c258 in rb_call (klass=47663675726440, recv=47663675716280, mid=10921, argc=1, argv=0x7fffbc526040, scope=1, self=47663675716280) at eval.c:6153 #9 0x0000000000416ff3 in rb_eval (self=, n=) at eval.c:3509 #10 0x000000000041a2b5 in rb_yield_0 (val=47663683986080, self=47663675716280, klass=0, flags=, avalue=0) at eval.c:5079 #11 0x0000000000486791 in rb_ary_each (ary=47663675330080) at array.c:1261 #12 0x000000000041b54a in rb_call0 (klass=47663675661400, recv=47663675330080, id=4001, oid=4001, argc=0, argv=0x0, body=0x2b599074d410, flags=) at eval.c:5906 #13 0x000000000041c258 in rb_call (klass=47663675661400, recv=47663675330080, mid=4001, argc=0, argv=0x0, scope=0, self=47663675716280) at eval.c:6153 #14 0x0000000000416ebb in rb_eval (self=47663675716280, n=) at eval.c:3494 #15 0x0000000000418fcf in rb_eval (self=47663675716280, n=) at eval.c:3224 #16 0x000000000041bda0 in rb_call0 (klass=47663675726440, recv=47663675716280, id=10921, oid=, argc=0, argv=0x7fffbc527218, body=0x2b5990739640, flags=) at eval.c:6057 #17 0x000000000041c258 in rb_call (klass=47663675726440, recv=47663675716280, mid=10921, argc=1, argv=0x7fffbc527210, scope=1, self=47663675716280) at eval.c:6153 #18 0x0000000000416ff3 in rb_eval (self=, n=) at eval.c:3509 #19 0x000000000041a2b5 in rb_yield_0 (val=47663683988920, self=47663675716280, klass=0, flags=, avalue=0) at eval.c:5079 #20 0x0000000000486791 in rb_ary_each (ary=47663675344200) at array.c:1261 #21 0x000000000041b54a in rb_call0 (klass=47663675661400, recv=47663675344200, id=4001, oid=4001, argc=0, argv=0x0, body=0x2b599074d410, flags=) at eval.c:5906 #22 0x000000000041c258 in rb_call (klass=47663675661400, recv=47663675344200, mid=4001, argc=0, argv=0x0, scope=0, self=47663675716280) at eval.c:6153 #23 0x0000000000416ebb in rb_eval (self=47663675716280, n=) at eval.c:3494 #24 0x0000000000418fcf in rb_eval (self=47663675716280, n=) at eval.c:3224 #25 0x000000000041bda0 in rb_call0 (klass=47663675726440, recv=47663675716280, id=10921, oid=, argc=32767, argv=0x7fffbc5283e8, body=0x2b5990739640, flags=) at eval.c:6057 #26 0x000000000041c258 in rb_call (klass=47663675726440, recv=47663675716280, mid=10921, argc=1, argv=0x7fffbc5283e0, scope=1, self=47663675716280) at eval.c:6153 #27 0x0000000000416ff3 in rb_eval (self=, n=) at eval.c:3509 #28 0x000000000041a2b5 in rb_yield_0 (val=47663684015880, self=47663675716280, klass=0, flags=, avalue=0) at eval.c:5079 #29 0x00002b5991381066 in rxml_xpath_object_each (self=47663678310840) at ruby_xml_xpath_object.c:184 #30 0x000000000041b54a in rb_call0 (klass=47663682999600, recv=47663678310840, id=4001, oid=4001, argc=0, argv=0x0, body=0x2b5990e4d440, flags=) at eval.c:5906 #31 0x000000000041c258 in rb_call (klass=47663682999600, recv=47663678310840, mid=4001, argc=0, argv=0x0, scope=0, self=47663675716280) at eval.c:6153 #32 0x0000000000416ebb in rb_eval (self=47663675716280, n=) at eval.c:3494 #33 0x0000000000418fcf in rb_eval (self=47663675716280, n=) at eval.c:3224 #34 0x000000000041a2b5 in rb_yield_0 (val=6, self=47663675716280, klass=0, flags=, avalue=0) at eval.c:5079 #35 0x0000000000424e47 in loop_i () at eval.c:5211 #36 0x0000000000410704 in rb_rescue2 (b_proc=0x424e30 , data1=0, r_proc=0, data2=0) at eval.c:5475 #37 0x00000000004108e0 in rb_f_loop () at eval.c:5236 #38 0x000000000041b54a in rb_call0 (klass=47663675726160, recv=47663675716280, id=4121, oid=4121, argc=0, argv=0x0, body=0x2b5990759b98, flags=) at eval.c:5906 #39 0x000000000041c258 in rb_call (klass=47663675726160, recv=47663675716280, mid=4121, argc=0, argv=0x0, scope=1, self=47663675716280) at eval.c:6153 #40 0x0000000000416ff3 in rb_eval (self=, n=) at eval.c:3509 #41 0x0000000000418fcf in rb_eval (self=47663675716280, n=) at eval.c:3224 #42 0x00000000004279e9 in ruby_exec_internal () at eval.c:1643 #43 0x0000000000427a35 in ruby_exec () at eval.c:1663 #44 0x0000000000427a5f in ruby_run () at eval.c:1673 #45 0x000000000040ddc3 in main (argc=2, argv=0x7fffbc52a328, envp=) at main.c:48 ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:26 Message: Hi Josh, I think this is now fixed. If not, let me know and reopen a ticket here (or better yet on GitHub at https://github.com/xml4r/libxml-ruby). Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 23:45 Message: Does the html file have specific content, or just any html file? If I save this page to the file html, and run the script, all is well with the new release. Could you retest with the new release? Thanks - Charlie ---------------------------------------------------------------------- Comment By: Josh Glover (jmglov) Date: 2011-03-04 07:58 Message: Ah, but this can't be right: (gdb) up 5 #5 0x0000000000491639 in st_lookup (table=0x7f2b21c20660, key=10985, value=0x7fffc02954d8) at st.c:250 250 hash_val = do_hash(key, table); table is again WAAAAAY out there; no way that's going to be addressable. table comes from eval.c#L486 : 478 static NODE* 479 search_method(klass, id, origin) 480 VALUE klass, *origin; 481 ID id; 482 { 483 st_data_t body; 484 485 if (!klass) return 0; 486 while (!st_lookup(RCLASS(klass)->m_tbl, id, &body)) { 487 klass = RCLASS(klass)->super; 488 if (!klass) return 0; 489 } 490 491 if (origin) *origin = klass; 492 return (NODE *)body; 493 } So some class has lost its pointer to its function pointer table. I don't think I have the time to take this much further, but hopefully this info is useful to someone. :-/ ---------------------------------------------------------------------- Comment By: Josh Glover (jmglov) Date: 2011-03-04 07:03 Message: (gdb) info locals hash_val = 0 bin_pos = 32122193 ptr = 0x7f2b21f2dd40 (gdb) l 245 st_data_t *value; 246 { 247 unsigned int hash_val, bin_pos; 248 register st_table_entry *ptr; 249 250 hash_val = do_hash(key, table); 251 FIND_ENTRY(table, ptr, hash_val, bin_pos); 252 253 if (ptr == 0) { 254 return 0; Oops, ptr hasn't been assigned to yet at L250. I'll keep digging. BTW, I compiled Ruby like this to get all of the debug symbols: CFLAGS='-O0 -g -Wall' ./configure --disable-pthread && make ---------------------------------------------------------------------- Comment By: Josh Glover (jmglov) Date: 2011-03-04 07:01 Message: : josh at josh; gdb ~/tmp/ruby-1.8.7-p334/ruby core GNU gdb (GDB) 7.2-ubuntu [...] Program terminated with signal 6, Aborted. #0 0x00007f2b225c5ba5 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c (gdb) bt #0 0x00007f2b225c5ba5 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007f2b225c96b0 in abort () at abort.c:92 #2 0x00000000004c284e in rb_bug (fmt=0x4e1b13 "Segmentation fault") at error.c:213 #3 0x000000000048e1b9 in sigsegv (sig=11) at signal.c:634 #4 #5 0x0000000000491639 in st_lookup (table=0x7f2b21c20660, key=10985, value=0x7fffc02954d8) at st.c:250 #6 0x000000000040e861 in search_method (klass=139823229885920, id=10985, origin=0x7fffc0295528) at eval.c:486 [...] (gdb) up 5 #5 0x0000000000491639 in st_lookup (table=0x7f2b21c20660, key=10985, value=0x7fffc02954d8) at st.c:250 250 hash_val = do_hash(key, table); (gdb) info locals hash_val = 0 bin_pos = 32122193 ptr = 0x7f2b21f2dd40 0x7f2b21f2dd40 is 139_823_229_885_760 in decimal, so unless my ThinkPad T510i has 139 terrabytes of memory, this is a segmentation fault. :) ---------------------------------------------------------------------- Comment By: Josh Glover (jmglov) Date: 2011-03-04 06:55 Message: Breaks in ruby-1.8.7-p334: : josh at josh; ~/tmp/ruby-1.8.7-p334/ruby test/tc_node_child.rb >/dev/null test/tc_node_child.rb:21: [BUG] Segmentation fault ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux] Aborted (core dumped) ---------------------------------------------------------------------- Comment By: Josh Glover (jmglov) Date: 2011-03-04 06:42 Message: Interesting data point, it works on ruby 1.8.7_0 but not 1.8.7_299: : josh at josh; /usr/bin/ruby -v ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] : josh at josh; /usr/bin/ruby test/tc_node_child.rb >/dev/null test/tc_node_child.rb:21: [BUG] Segmentation fault ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux] Aborted (core dumped) : josh at josh; ~/tmp/ruby-1.8.7/ruby -v ruby 1.8.7 (2008-05-31 patchlevel 0) [x86_64-linux] : josh at josh; ~/tmp/ruby-1.8.7/ruby test/tc_node_child.rb >/dev/null # Victory! ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=26863&group_id=494 From noreply at rubyforge.org Mon May 2 02:28:36 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:28:36 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-26672 ] Segmentation fault Message-ID: <20110502062836.C6B15185838E@rubyforge.org> Bugs item #26672, was opened at 2009-07-20 07:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=26672&group_id=494 Category: None Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Thomas Preymesser (thopre) Assigned to: Charlie Savage (cfis) Summary: Segmentation fault Initial Comment: /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/attributes.rb:6: [BUG] Segmentation fault ruby 1.9.2dev (2009-07-20 trunk 24213) [i686-linux] -- control frame ---------- c:0032 p:0014 s:0137 b:0135 l:000120 d:000134 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/attributes.rb:6 c:0031 p:---- s:0131 b:0131 l:000130 d:000130 FINISH c:0030 p:---- s:0129 b:0129 l:000124 d:000128 IFUNC :hash c:0029 p:---- s:0127 b:0127 l:000126 d:000126 CFUNC :each c:0028 p:---- s:0125 b:0125 l:000124 d:000124 CFUNC :inject c:0027 p:0013 s:0121 b:0121 l:000120 d:000120 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/attributes.rb:5 c:0026 p:0461 s:0118 b:0117 l:000082 d:000116 BLOCK /home/tp/ruby-test/roo/lib/roo/excelx.rb:448 c:0025 p:0028 s:0106 b:0106 l:000097 d:000105 BLOCK /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/node.rb:112 c:0024 p:---- s:0103 b:0103 l:000102 d:000102 FINISH c:0023 p:---- s:0101 b:0101 l:000100 d:000100 CFUNC :each c:0022 p:0011 s:0098 b:0098 l:000097 d:000097 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/node.rb:111 c:0021 p:0148 s:0095 b:0095 l:000082 d:000094 BLOCK /home/tp/ruby-test/roo/lib/roo/excelx.rb:407 c:0020 p:---- s:0088 b:0088 l:000087 d:000087 FINISH c:0019 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC :each c:0018 p:0144 s:0083 b:0083 l:000082 d:000082 METHOD /home/tp/ruby-test/roo/lib/roo/excelx.rb:395 c:0017 p:0035 s:0077 b:0077 l:000076 d:000076 METHOD /home/tp/ruby-test/roo/lib/roo/excelx.rb:153 c:0016 p:0018 s:0063 b:0061 l:000053 d:000060 BLOCK /home/tp/ruby-test/roo/test/test_roo.rb:1004 c:0015 p:0217 s:0058 b:0058 l:000057 d:000057 METHOD /home/tp/ruby-test/roo/test/test_roo.rb:157 c:0014 p:0021 s:0054 b:0054 l:000053 d:000053 METHOD /home/tp/ruby-test/roo/test/test_roo.rb:1003 c:0013 p:0062 s:0051 b:0051 l:000050 d:000050 METHOD /usr/local/lib/ruby/1.9.1/minitest/unit.rb:458 c:0012 p:0109 s:0045 b:0045 l:000044 d:000044 METHOD /home/tp/ruby-test/roo/test/test_roo.rb:99 c:0011 p:0090 s:0037 b:0037 l:000018 d:000036 BLOCK /usr/local/lib/ruby/1.9.1/minitest/unit.rb:426 c:0010 p:---- s:0032 b:0032 l:000031 d:000031 FINISH c:0009 p:---- s:0030 b:0030 l:000029 d:000029 CFUNC :each c:0008 p:0026 s:0027 b:0027 l:000018 d:000026 BLOCK /usr/local/lib/ruby/1.9.1/minitest/unit.rb:420 c:0007 p:---- s:0024 b:0024 l:000023 d:000023 FINISH c:0006 p:---- s:0022 b:0022 l:000021 d:000021 CFUNC :each c:0005 p:0080 s:0019 b:0019 l:000018 d:000018 METHOD /usr/local/lib/ruby/1.9.1/minitest/unit.rb:419 c:0004 p:0153 s:0014 b:0014 l:000013 d:000013 METHOD /usr/local/lib/ruby/1.9.1/minitest/unit.rb:393 c:0003 p:0041 s:0007 b:0007 l:0014f4 d:000006 BLOCK /usr/local/lib/ruby/1.9.1/minitest/unit.rb:334 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:000654 d:000654 TOP --------------------------- /usr/local/lib/ruby/1.9.1/minitest/unit.rb:334:in `block in autorun' /usr/local/lib/ruby/1.9.1/minitest/unit.rb:393:in `run' /usr/local/lib/ruby/1.9.1/minitest/unit.rb:419:in `run_test_suites' /usr/local/lib/ruby/1.9.1/minitest/unit.rb:419:in `each' /usr/local/lib/ruby/1.9.1/minitest/unit.rb:420:in `block in run_test_suites' /usr/local/lib/ruby/1.9.1/minitest/unit.rb:420:in `each' /usr/local/lib/ruby/1.9.1/minitest/unit.rb:426:in `block (2 levels) in run_test_suites' /home/tp/ruby-test/roo/test/test_roo.rb:99:in `run' /usr/local/lib/ruby/1.9.1/minitest/unit.rb:458:in `run' /home/tp/ruby-test/roo/test/test_roo.rb:1003:in `test_seiten_als_date' /home/tp/ruby-test/roo/test/test_roo.rb:157:in `with_each_spreadsheet' /home/tp/ruby-test/roo/test/test_roo.rb:1004:in `block in test_seiten_als_date' /home/tp/ruby-test/roo/lib/roo/excelx.rb:153:in `cell' /home/tp/ruby-test/roo/lib/roo/excelx.rb:395:in `read_cells' /home/tp/ruby-test/roo/lib/roo/excelx.rb:395:in `each' /home/tp/ruby-test/roo/lib/roo/excelx.rb:407:in `block in read_cells' /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/node.rb:111:in `each_element' /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/node.rb:111:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/node.rb:112:in `block in each_element' /home/tp/ruby-test/roo/lib/roo/excelx.rb:448:in `block (2 levels) in read_cells' /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/attributes.rb:5:in `to_h' /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/attributes.rb:5:in `inject' /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/attributes.rb:5:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml/attributes.rb:6:in `block in to_h' -- C level backtrace information ------------------------------------------- /usr/local/bin/ruby(rb_vm_bugreport+0xb5) [0x81652f5] /usr/local/bin/ruby [0x81a0d7b] /usr/local/bin/ruby(rb_bug+0x28) [0x81a0e08] /usr/local/bin/ruby [0x80fa015] [0xb7f71410] /usr/local/bin/ruby(rb_method_entry+0x56) [0x8152576] /usr/local/bin/ruby [0x815be1f] /usr/local/bin/ruby [0x815c5f2] /usr/local/bin/ruby [0x8163d88] /usr/local/bin/ruby(rb_yield_values+0x7a) [0x816444a] /usr/local/bin/ruby [0x819ca15] /usr/local/bin/ruby [0x8163f51] /usr/local/bin/ruby(rb_yield+0x4f) [0x81640ff] /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml_ruby.so [0xb7c60d5b] /usr/local/bin/ruby [0x815db6a] /usr/local/bin/ruby [0x815dfc9] /usr/local/bin/ruby [0x81616dd] /usr/local/bin/ruby(rb_iterate+0x128) [0x8151708] /usr/local/bin/ruby(rb_block_call+0x3f) [0x81517af] /usr/local/bin/ruby [0x819b912] /usr/local/bin/ruby [0x815132d] /usr/local/bin/ruby [0x8151467] /usr/local/bin/ruby [0x8161a75] /usr/local/bin/ruby [0x8155ce5] /usr/local/bin/ruby [0x815c5f2] /usr/local/bin/ruby [0x8163d88] /usr/local/bin/ruby(rb_yield+0x4f) [0x81640ff] /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml_ruby.so [0xb7c625c3] /usr/local/bin/ruby [0x8151467] /usr/local/bin/ruby [0x8161a75] /usr/local/bin/ruby [0x8155ce5] /usr/local/bin/ruby [0x815c5f2] /usr/local/bin/ruby [0x8163d88] /usr/local/bin/ruby(rb_yield+0x4f) [0x81640ff] /usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.3/lib/libxml_ruby.so [0xb7c5f5c0] /usr/local/bin/ruby [0x8151467] /usr/local/bin/ruby [0x8161a75] /usr/local/bin/ruby [0x8155ce5] /usr/local/bin/ruby [0x815c5f2] /usr/local/bin/ruby [0x8163d88] /usr/local/bin/ruby(rb_yield+0x4f) [0x81640ff] /usr/local/bin/ruby(rb_ary_each+0x41) [0x8173b81] /usr/local/bin/ruby [0x8151467] /usr/local/bin/ruby [0x8161a75] /usr/local/bin/ruby [0x8155ce5] /usr/local/bin/ruby [0x815c5f2] /usr/local/bin/ruby [0x8163d88] /usr/local/bin/ruby(rb_yield+0x4f) [0x81640ff] /usr/local/bin/ruby(rb_ary_each+0x41) [0x8173b81] /usr/local/bin/ruby [0x8151467] /usr/local/bin/ruby [0x8161a75] /usr/local/bin/ruby [0x8155ce5] /usr/local/bin/ruby [0x815c5f2] /usr/local/bin/ruby(rb_vm_invoke_proc+0x246) [0x815d826] /usr/local/bin/ruby(rb_proc_call+0x47) [0x8060a17] /usr/local/bin/ruby(rb_call_end_proc+0x1a) [0x805d77a] /usr/local/bin/ruby(rb_exec_end_proc+0x19c) [0x805eaec] /usr/local/bin/ruby [0x805eb87] /usr/local/bin/ruby(ruby_cleanup+0x87) [0x805ec47] /usr/local/bin/ruby(ruby_run_node+0x4e) [0x805ef1e] /usr/local/bin/ruby(main+0x60) [0x805ca50] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d8e775] /usr/local/bin/ruby [0x805c951] [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Aborted ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:28 Message: Hi Thomas, I am going to close this issue since I believe it is fixed. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 22:57 Message: Can you try this in the latest release - I believe it is fixed. Thanks - Charlie ---------------------------------------------------------------------- Comment By: Thomas Preymesser (thopre) Date: 2009-07-22 07:02 Message: the error can be reproduced if you install my gem 'roo' (v. 1.3.8), replace the test_roo.rb file with the test_roo.rb file in the attachment and then run 'ruby test/test_roo.rb' from the root directory of the gem. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=26672&group_id=494 From noreply at rubyforge.org Mon May 2 02:29:13 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:29:13 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-27432 ] Segfault during garbage collection Message-ID: <20110502062913.9F3B3185838E@rubyforge.org> Bugs item #27432, was opened at 2009-11-13 11:08 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=27432&group_id=494 Category: memory Group: v0.5 >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Mat Brown (outoftime) Assigned to: Charlie Savage (cfis) Summary: Segfault during garbage collection Initial Comment: Tracked down a persistent segfault during big Solr reindexes (using libxml-ruby to build the Solr docs) to libxml-ruby. These operations involve building thousands of XML messages and the segfault generally occurs at an unpredictable time during the operation. We're linking against libxml2 2.6.32 I hope this is helpful - I'm no C expert - but here is the backtrace from the core dump: #0 0x00000035c2a30215 in raise () from /lib64/libc.so.6 #1 0x00000035c2a31cc0 in abort () from /lib64/libc.so.6 #2 0x000000000049729c in rb_bug () #3 0x000000000047495d in ?? () #4 #5 0x000000000042f577 in ?? () #6 0x000000000042f60f in rb_gc_mark () #7 0x00002b8f12be0db9 in rxml_node_mark (xnode=0x195ad980) at ruby_xml_node.c:82 #8 0x00002b8f12bdc463 in rxml_attributes_mark (xnode=0x44) at ruby_xml_attributes.c:39 #9 0x000000000042fa73 in ?? () #10 0x000000000042f5f2 in ?? () #11 0x000000000042f3a9 in ?? () #12 0x000000000042f3d6 in rb_gc_mark_locations () #13 0x00000000004252a4 in ?? () #14 0x000000000042fa73 in ?? () #15 0x000000000042f5f2 in ?? () #16 0x000000000042f3e9 in ?? () #17 0x000000000047764d in st_foreach () #18 0x000000000042f40b in ?? () #19 0x000000000042fa89 in ?? () #20 0x000000000042f5f2 in ?? () #21 0x000000000042f3e9 in ?? () #22 0x000000000047764d in st_foreach () #23 0x000000000042f40b in ?? () #24 0x000000000042fa89 in ?? () #25 0x000000000042f5f2 in ?? () #26 0x000000000042f3e9 in ?? () #27 0x000000000047764d in st_foreach () #28 0x000000000042f40b in ?? () #29 0x000000000042f9be in ?? () #30 0x000000000042f5f2 in ?? () #31 0x000000000042f97c in ?? () #32 0x000000000042f5f2 in ?? () #33 0x000000000042f715 in ?? () #34 0x000000000042f5f2 in ?? () #35 0x000000000042f3e9 in ?? () #36 0x000000000047764d in st_foreach () #37 0x000000000042f40b in ?? () #38 0x000000000042f9ad in ?? () #39 0x000000000042f5f2 in ?? () #40 0x000000000042f97c in ?? () #41 0x000000000042f5f2 in ?? () #42 0x000000000042f715 in ?? () #43 0x000000000042f5f2 in ?? () #44 0x000000000042f3e9 in ?? () #45 0x000000000047764d in st_foreach () #46 0x000000000042f40b in ?? () #47 0x000000000042f9ad in ?? () #48 0x000000000042f5f2 in ?? () #49 0x000000000042f97c in ?? () #50 0x000000000042f5f2 in ?? () #51 0x000000000042f715 in ?? () #52 0x000000000042f5f2 in ?? () #53 0x000000000042f3e9 in ?? () #54 0x000000000047764d in st_foreach () #55 0x000000000042f40b in ?? () #56 0x000000000042f9ad in ?? () #57 0x000000000042f5f2 in ?? () #58 0x000000000042f3e9 in ?? () #59 0x000000000047764d in st_foreach () #60 0x000000000042f40b in ?? () #61 0x000000000042f9be in ?? () #62 0x000000000042f5f2 in ?? () #63 0x000000000042f97c in ?? () #64 0x000000000042f5f2 in ?? () #65 0x000000000042f97c in ?? () #66 0x000000000042f5f2 in ?? () #67 0x000000000042f97c in ?? () #68 0x000000000042f5f2 in ?? () #69 0x000000000042f715 in ?? () #70 0x000000000042f5f2 in ?? () #71 0x000000000042f715 in ?? () #72 0x000000000042f5f2 in ?? () #73 0x000000000042f715 in ?? () #74 0x000000000042f5f2 in ?? () #75 0x0000000000430545 in rb_gc_mark_frame () #76 0x00000000004305f0 in ?? () #77 0x000000000042eb41 in ruby_xmalloc () #78 0x0000000000421982 in ?? () #79 0x0000000000421a2e in ?? () #80 0x0000000000422108 in ?? () #81 0x000000000042221b in rb_block_proc () #82 0x00000000004174b5 in ?? () #83 0x000000000041cd71 in ?? () #84 0x000000000041d284 in ?? () #85 0x000000000041660b in ?? () #86 0x000000000041546d in ?? () #87 0x00000000004171af in ?? () #88 0x000000000041cd71 in ?? () #89 0x000000000041d284 in ?? () #90 0x000000000041d47c in ?? () #91 0x000000000041c30e in ?? () #92 0x000000000041d284 in ?? () #93 0x00000000004163bf in ?? () #94 0x000000000041cd71 in ?? () #95 0x000000000041d284 in ?? () #96 0x000000000041660b in ?? () #97 0x0000000000419d42 in ?? () #98 0x000000000041a111 in rb_yield () #99 0x000000000048b3ff in ?? () #100 0x000000000041c322 in ?? () #101 0x000000000041d284 in ?? () #102 0x00000000004163bf in ?? () #103 0x000000000041546d in ?? () #104 0x000000000041cd71 in ?? () #105 0x000000000041d284 in ?? () #106 0x000000000041660b in ?? () #107 0x00000000004171af in ?? () #108 0x0000000000414855 in ?? () #109 0x000000000041cd71 in ?? () #110 0x000000000041d284 in ?? () #111 0x000000000041660b in ?? () #112 0x000000000041cd71 in ?? () #113 0x000000000041d284 in ?? () #114 0x00000000004163bf in ?? () #115 0x000000000041cd71 in ?? () #116 0x000000000041d284 in ?? () #117 0x0000000000416696 in ?? () #118 0x0000000000417278 in ?? () #119 0x0000000000415937 in ?? () #120 0x000000000041cd71 in ?? () #121 0x000000000041d284 in ?? () #122 0x0000000000416696 in ?? () #123 0x0000000000414b55 in ?? () #124 0x000000000041cd71 in ?? () #125 0x000000000041d284 in ?? () #126 0x000000000041d9fd in rb_call_super () #127 0x00000000004169d6 in ?? () #128 0x000000000041546d in ?? () #129 0x000000000041cd71 in ?? () #130 0x000000000041d284 in ?? () #131 0x000000000041660b in ?? () #132 0x0000000000422e74 in ?? () #133 0x00000000004151fc in ?? () #134 0x0000000000415e39 in ?? () #135 0x000000000041cd71 in ?? () #136 0x000000000041d284 in ?? () #137 0x000000000041d8a9 in rb_funcall2 () #138 0x000000000041b921 in ?? () #139 0x000000000041d0d8 in ?? () #140 0x00000000004163bf in ?? () #141 0x000000000041546d in ?? () #142 0x0000000000419d42 in ?? () #143 0x000000000041eaff in ?? () #144 0x000000000041e91f in ?? () #145 0x000000000041eb24 in ?? () #146 0x000000000041eb93 in ?? () #147 0x000000000041ecf4 in rb_obj_instance_eval () #148 0x000000000041c30e in ?? () #149 0x000000000041d284 in ?? () #150 0x00000000004163bf in ?? () #151 0x0000000000422e74 in ?? () #152 0x00000000004151fc in ?? () #153 0x000000000041cd71 in ?? () #154 0x000000000041d284 in ?? () #155 0x00000000004163bf in ?? () #156 0x0000000000422e74 in ?? () #157 0x00000000004151fc in ?? () #158 0x000000000041cd71 in ?? () #159 0x000000000041d284 in ?? () #160 0x000000000041660b in ?? () #161 0x000000000041546d in ?? () #162 0x0000000000419d42 in ?? () #163 0x000000000041eaff in ?? () #164 0x000000000041e91f in ?? () #165 0x000000000041eb24 in ?? () #166 0x000000000041eb93 in ?? () #167 0x000000000041ecf4 in rb_obj_instance_eval () #168 0x000000000041c30e in ?? () #169 0x000000000041d284 in ?? () #170 0x00000000004163bf in ?? () #171 0x0000000000422e74 in ?? () #172 0x00000000004151fc in ?? () #173 0x000000000041cd71 in ?? () #174 0x000000000041d284 in ?? () #175 0x000000000041d8a9 in rb_funcall2 () #176 0x00000000004206c8 in rb_obj_call_init () #177 0x0000000000445d39 in rb_class_new_instance () #178 0x000000000041c30e in ?? () #179 0x000000000041d284 in ?? () #180 0x00000000004163bf in ?? () #181 0x0000000000422e74 in ?? () #182 0x00000000004151fc in ?? () #183 0x0000000000417278 in ?? () #184 0x000000000041cd71 in ?? () #185 0x000000000041d284 in ?? () #186 0x000000000041d8a9 in rb_funcall2 () #187 0x00000000004206c8 in rb_obj_call_init () #188 0x0000000000445d39 in rb_class_new_instance () #189 0x000000000041c30e in ?? () #190 0x000000000041d284 in ?? () #191 0x00000000004163bf in ?? () #192 0x0000000000422e74 in ?? () #193 0x00000000004151fc in ?? () #194 0x000000000041cd71 in ?? () #195 0x000000000041d284 in ?? () #196 0x00000000004163bf in ?? () #197 0x000000000041546d in ?? () #198 0x00000000004161d7 in ?? () #199 0x00000000004161d7 in ?? () #200 0x000000000041546d in ?? () #201 0x0000000000417278 in ?? () #202 0x000000000041cd71 in ?? () #203 0x000000000041d284 in ?? () #204 0x000000000041d47c in ?? () #205 0x000000000041c30e in ?? () #206 0x000000000041d284 in ?? () #207 0x00000000004163bf in ?? () #208 0x000000000041cd71 in ?? () #209 0x000000000041d284 in ?? () #210 0x00000000004163bf in ?? () #211 0x00000000004171af in ?? () #212 0x00000000004161d7 in ?? () #213 0x0000000000414b55 in ?? () #214 0x000000000041cd71 in ?? () #215 0x000000000041d284 in ?? () #216 0x00000000004163bf in ?? () #217 0x0000000000419d42 in ?? () #218 0x000000000041a111 in rb_yield () #219 0x000000000048a902 in rb_ary_each () #220 0x000000000041c322 in ?? () #221 0x000000000041d284 in ?? () #222 0x0000000000415593 in ?? () #223 0x000000000041cd71 in ?? () #224 0x000000000041d284 in ?? () #225 0x000000000041660b in ?? () #226 0x0000000000419d42 in ?? () #227 0x000000000041a111 in rb_yield () #228 0x000000000048b3b7 in ?? () #229 0x000000000041c322 in ?? () #230 0x000000000041d284 in ?? () #231 0x00000000004163bf in ?? () #232 0x000000000041546d in ?? () #233 0x00000000004171af in ?? () #234 0x000000000041cd71 in ?? () #235 0x000000000041d284 in ?? () #236 0x000000000041660b in ?? () #237 0x0000000000419d42 in ?? () #238 0x000000000041586a in ?? () #239 0x000000000041cd71 in ?? () #240 0x000000000041d284 in ?? () #241 0x00000000004163bf in ?? () #242 0x0000000000422e74 in ?? () #243 0x00000000004151fc in ?? () #244 0x00000000004161d7 in ?? () #245 0x00000000004161d7 in ?? () #246 0x00000000004177c4 in ?? () #247 0x000000000041781a in ?? () #248 0x00000000004171af in ?? () #249 0x000000000041cd71 in ?? () #250 0x000000000041d284 in ?? () #251 0x000000000041660b in ?? () #252 0x000000000041546d in ?? () #253 0x000000000041cd71 in ?? () #254 0x000000000041d284 in ?? () #255 0x00000000004163bf in ?? () #256 0x000000000041cd71 in ?? () #257 0x000000000041d284 in ?? () #258 0x000000000041660b in ?? () #259 0x000000000041cd71 in ?? () #260 0x000000000041d284 in ?? () #261 0x00000000004163bf in ?? () #262 0x000000000041cd71 in ?? () #263 0x000000000041d284 in ?? () #264 0x00000000004163bf in ?? () #265 0x0000000000419d42 in ?? () #266 0x000000000041586a in ?? () #267 0x0000000000414fb0 in ?? () #268 0x0000000000419d42 in ?? () #269 0x000000000041586a in ?? () #270 0x0000000000415b4a in ?? () #271 0x000000000041cd71 in ?? () #272 0x000000000041d284 in ?? () #273 0x000000000041660b in ?? () #274 0x000000000041546d in ?? () #275 0x000000000041cd71 in ?? () #276 0x000000000041d284 in ?? () #277 0x000000000041660b in ?? () #278 0x000000000041546d in ?? () #279 0x000000000041cd71 in ?? () #280 0x000000000041d284 in ?? () #281 0x00000000004163bf in ?? () #282 0x0000000000415937 in ?? () #283 0x0000000000419d42 in ?? () #284 0x000000000041a111 in rb_yield () #285 0x000000000048a902 in rb_ary_each () #286 0x000000000041c322 in ?? () #287 0x000000000041d284 in ?? () #288 0x00000000004163bf in ?? () #289 0x000000000041546d in ?? () #290 0x0000000000419d42 in ?? () #291 0x0000000000422642 in ?? () #292 0x0000000000422803 in ?? () #293 0x000000000041c2ff in ?? () #294 0x000000000041d284 in ?? () #295 0x00000000004163bf in ?? () #296 0x0000000000419d42 in ?? () #297 0x000000000041a111 in rb_yield () #298 0x000000000048a902 in rb_ary_each () #299 0x000000000041c322 in ?? () #300 0x000000000041d284 in ?? () #301 0x00000000004163bf in ?? () #302 0x000000000041546d in ?? () #303 0x000000000041cd71 in ?? () #304 0x000000000041d284 in ?? () #305 0x000000000041660b in ?? () #306 0x0000000000419d42 in ?? () #307 0x000000000041586a in ?? () #308 0x0000000000415b4a in ?? () #309 0x000000000041cd71 in ?? () #310 0x000000000041d284 in ?? () #311 0x00000000004163bf in ?? () #312 0x000000000041546d in ?? () #313 0x000000000041cd71 in ?? () #314 0x000000000041d284 in ?? () #315 0x000000000041660b in ?? () #316 0x000000000041cd71 in ?? () #317 0x000000000041d284 in ?? () #318 0x00000000004163bf in ?? () #319 0x000000000041cd71 in ?? () #320 0x000000000041d284 in ?? () #321 0x000000000041660b in ?? () #322 0x0000000000419d42 in ?? () #323 0x000000000041a111 in rb_yield () #324 0x000000000048a902 in rb_ary_each () #325 0x000000000041c322 in ?? () #326 0x000000000041d284 in ?? () #327 0x00000000004163bf in ?? () #328 0x000000000041546d in ?? () #329 0x0000000000419d42 in ?? () #330 0x000000000041586a in ?? () #331 0x0000000000415937 in ?? () #332 0x000000000041cd71 in ?? () #333 0x000000000041d284 in ?? () #334 0x000000000041660b in ?? () #335 0x000000000041546d in ?? () #336 0x000000000041cd71 in ?? () #337 0x000000000041d284 in ?? () #338 0x0000000000416696 in ?? () #339 0x0000000000419d42 in ?? () #340 0x000000000041586a in ?? () #341 0x0000000000415937 in ?? () #342 0x000000000041cd71 in ?? () #343 0x000000000041d284 in ?? () #344 0x000000000041660b in ?? () #345 0x000000000041546d in ?? () #346 0x000000000041cd71 in ?? () #347 0x000000000041d284 in ?? () #348 0x00000000004163bf in ?? () #349 0x000000000041188f in ?? () #350 0x000000000041f178 in rb_load () #351 0x000000000041f4ea in ?? () #352 0x000000000041c30e in ?? () #353 0x000000000041d284 in ?? () #354 0x000000000041660b in ?? () #355 0x000000000041188f in ?? () #356 0x0000000000411fc3 in ?? () #357 0x000000000041200f in ruby_exec () #358 0x0000000000412033 in ruby_run () #359 0x000000000040fd79 in main () ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:29 Message: Hi Mat, I am going to close this issue since I believe it is fixed. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 21:48 Message: I realize this is pretty old now - but do you still see this with the latest release? Charlie ---------------------------------------------------------------------- Comment By: Niel Drummond (cyanescent) Date: 2010-01-02 17:20 Message: you need to recompile libxml2 (and libxml-ruby) with debug flags enabled for your backtrace to become useful. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=27432&group_id=494 From noreply at rubyforge.org Mon May 2 02:29:49 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:29:49 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-27977 ] libxml-ruby-1.1.3 failing test Message-ID: <20110502062949.B3E81185838E@rubyforge.org> Bugs item #27977, was opened at 2010-03-16 16:31 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=27977&group_id=494 Category: General Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Matthew Kent (mattkent) Assigned to: Charlie Savage (cfis) Summary: libxml-ruby-1.1.3 failing test Initial Comment: Packaging libxml-ruby for CentOS 5.4 and I'm getting one failing test 1) Failure: test_mode(TestReader) [./test/tc_reader.rb:178]: <3> expected but was <5>. 289 tests, 1284 assertions, 1 failures, 0 errors looks like it's still in XML::Reader::MODE_READING mode This is with libxml2-2.6.26-2.1.2.8 libxml2-devel-2.6.26-2.1.2.8 ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:29 Message: Hi Matthew, I am going to close this issue since I haven't heard back. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 22:40 Message: Could you try the latest version? Thanks - Chalrie ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=27977&group_id=494 From noreply at rubyforge.org Mon May 2 02:30:28 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:30:28 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-28101 ] Segmentation Fault when running on Snow Leopard (Mac OS 10.6.3) Message-ID: <20110502063028.5137E185838E@rubyforge.org> Bugs item #28101, was opened at 2010-04-16 10:22 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28101&group_id=494 Category: memory Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Matt Young (fireknite) Assigned to: Charlie Savage (cfis) Summary: Segmentation Fault when running on Snow Leopard (Mac OS 10.6.3) Initial Comment: I've been getting this error: ------------------------------------------------------ [BUG] Segmentation fault ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0] Abort trap ------------------------------------------------------ When trying to run code since Apple released an update for Snow Leopard 10.6.2 --> 10.6.3. Code worked perfectly fine in 10.6.2 on both snow leopard and snow leopard server, but breaks at 10.6.3. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:30 Message: Hi Matt, I am going to close this issue since I believe it is fixed. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 21:45 Message: Hi Matt, Hopefully this has been fixed by the latest release. If you have a chance can you check? Thanks - Charlie ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=28101&group_id=494 From noreply at rubyforge.org Mon May 2 02:30:49 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:30:49 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-29140 ] segfaults randomly Message-ID: <20110502063049.B6781185838E@rubyforge.org> Bugs item #29140, was opened at 2011-04-21 07:46 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=29140&group_id=494 Category: memory Group: None Status: Open Resolution: Accepted Priority: 3 Submitted By: James Pharaoh (jamespharaoh) Assigned to: Charlie Savage (cfis) Summary: segfaults randomly Initial Comment: I am getting segfaults pretty regularly in my ruby 1.9.1 webrick application. They are always in a block which is accessing libxml nodes. Here's an example, I can add more as I get them, or provide any other help solving this. I don't really know where to start. /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15: [BUG] Segmentation fault ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] -- control frame ---------- c:0019 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :[] c:0018 p:0015 s:0084 b:0084 l:000074 d:000083 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15 c:0017 p:---- s:0080 b:0080 l:000079 d:000079 FINISH c:0016 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :sort! c:0015 p:0063 s:0075 b:0075 l:000074 d:000074 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15 c:0014 p:0188 s:0069 b:0069 l:000068 d:000068 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/consolehandler.rb:10 c:0013 p:0078 s:0062 b:0062 l:000620 d:000061 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:92 c:0012 p:---- s:0059 b:0059 l:000058 d:000058 FINISH c:0011 p:---- s:0057 b:0057 l:000056 d:000056 CFUNC :catch c:0010 p:0148 s:0053 b:0053 l:000620 d:002360 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86 c:0009 p:---- s:0048 b:0048 l:000047 d:000047 FINISH c:0008 p:---- s:0046 b:0046 l:000045 d:000045 CFUNC :call c:0007 p:0017 s:0041 b:0041 l:000040 d:000040 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16 c:0006 p:0056 s:0036 b:0036 l:000035 d:000035 METHOD /usr/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb:35 c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111 c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70 c:0003 p:0126 s:0009 b:0009 l:000c18 d:000008 BLOCK /usr/lib/ruby/1.9.1/webrick/server.rb:183 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 ---------------------------------------- /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' /usr/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb:35:in `service' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16:in `do_GET' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16:in `call' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86:in `block in run' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86:in `catch' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:92:in `block (2 levels) in run' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/consolehandler.rb:10:in `handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `sort!' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `block in handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `[]' *** glibc detected *** ruby1.9.1: malloc(): memory corruption: 0x000000000325bc00 *** ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:30 Message: Hi James, I am going to close this issue since I believe it is fixed. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 21:23 Message: Have you updated to the latest libxml version? What is the ruby code you are using? And what data is it trying to parse? Thanks - Charlie ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=29140&group_id=494 From noreply at rubyforge.org Mon May 2 02:31:06 2011 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 2 May 2011 02:31:06 -0400 (EDT) Subject: [libxml-devel] [ libxml-Bugs-29140 ] segfaults randomly Message-ID: <20110502063107.006DB185838E@rubyforge.org> Bugs item #29140, was opened at 2011-04-21 07:46 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=29140&group_id=494 Category: memory Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: James Pharaoh (jamespharaoh) Assigned to: Charlie Savage (cfis) Summary: segfaults randomly Initial Comment: I am getting segfaults pretty regularly in my ruby 1.9.1 webrick application. They are always in a block which is accessing libxml nodes. Here's an example, I can add more as I get them, or provide any other help solving this. I don't really know where to start. /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15: [BUG] Segmentation fault ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] -- control frame ---------- c:0019 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :[] c:0018 p:0015 s:0084 b:0084 l:000074 d:000083 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15 c:0017 p:---- s:0080 b:0080 l:000079 d:000079 FINISH c:0016 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :sort! c:0015 p:0063 s:0075 b:0075 l:000074 d:000074 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15 c:0014 p:0188 s:0069 b:0069 l:000068 d:000068 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/consolehandler.rb:10 c:0013 p:0078 s:0062 b:0062 l:000620 d:000061 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:92 c:0012 p:---- s:0059 b:0059 l:000058 d:000058 FINISH c:0011 p:---- s:0057 b:0057 l:000056 d:000056 CFUNC :catch c:0010 p:0148 s:0053 b:0053 l:000620 d:002360 BLOCK /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86 c:0009 p:---- s:0048 b:0048 l:000047 d:000047 FINISH c:0008 p:---- s:0046 b:0046 l:000045 d:000045 CFUNC :call c:0007 p:0017 s:0041 b:0041 l:000040 d:000040 METHOD /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16 c:0006 p:0056 s:0036 b:0036 l:000035 d:000035 METHOD /usr/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb:35 c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111 c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70 c:0003 p:0126 s:0009 b:0009 l:000c18 d:000008 BLOCK /usr/lib/ruby/1.9.1/webrick/server.rb:183 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 ---------------------------------------- /usr/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' /usr/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' /usr/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb:35:in `service' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16:in `do_GET' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:16:in `call' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86:in `block in run' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:86:in `catch' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/server.rb:92:in `block (2 levels) in run' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/consolehandler.rb:10:in `handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `sort!' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `block in handle' /home/james/projects/zattikka-mandar/mandar/ruby/mandar/console/home.rb:15:in `[]' *** glibc detected *** ruby1.9.1: malloc(): memory corruption: 0x000000000325bc00 *** ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-05-02 00:30 Message: Hi James, I am going to close this issue since I believe it is fixed. Please reopen on Github if needed. See https://github.com/xml4r/libxml-ruby Thanks - Charlie ---------------------------------------------------------------------- Comment By: Charlie Savage (cfis) Date: 2011-04-22 21:23 Message: Have you updated to the latest libxml version? What is the ruby code you are using? And what data is it trying to parse? Thanks - Charlie ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=29140&group_id=494 From cfis at savagexi.com Mon May 2 02:54:05 2011 From: cfis at savagexi.com (Charlie Savage) Date: Mon, 02 May 2011 00:54:05 -0600 Subject: [libxml-devel] Version 2.0.3 Released Message-ID: <4DBE550D.7030802@savagexi.com> I just pushed up the next release of libxml-ruby. It includes one big fix and lots of little fixes that cleanup most of the old issues on RubyForge and GitHub. The big fix is supporting the use of libxml-ruby in native background Ruby threads. Previously, the use of libxml-ruby in background threads in Ruby 1.9.x and higher would often cause segmentation faults. And for the little fixes, please see below. Thanks, Charlie ------------ * The biggest change in this release is supporting the use of libxml-ruby in native background Ruby threads. Previously, the use of libxml-ruby in background threads in Ruby 1.9.x and higher would often cause segmentation faults. This has now been fixed (Charlie Savage). * Update Reader#expand so that returned node correctly remembers its encoding in Ruby 1.9.x (zerebubuth). * Add check to verify a node has not been deleted. This can happen when a ruby variable holds a reference to a child node that gets freed when its parent gets freed. Previously when this happened a segmentation fault would occur, now an exception is raised (Charlie Savage, fixes RubyForge #26839. * Do not unlink nodes before internal validations have run - avoids segmentation faults caused by freeing a node twice (Charlie Savage). * Add support for Document#canonicalization (Victor Lin). * Fix memory leak in Reader#lookup_namespace (Charlie Savage). * Fix memory leak in Reader#[] (Nathan Kriege). * Fix usage of @io instance variable (Jeffrey Taylor) * Removed old sax error handling code that has been fixed in newer versions of libxml (Charlie Savage). * Code cleanup - remove unused variables and commented out code (Charlie Savage) * Minor text changes and documentation fixes (Charlie Savage). * Fix documentation error (fixes RubyForge #26888). * Update documentation for Document#validation* methods (fixes RubyForge #24833). * Update documentation and test (fixes Ruby Forge Issue #28770). * Updated documentation in README (Anurag Priyam): 1. rake doc does not work; use rake rdoc. 2. gem mislav-hanna does not exist; use hanna. 3. rake rdoc 'depends' on hanna; no need of RDOCOPTS 4. Point to the github issue tracker instead of Ruby Forge 5. Point to the github (gh-pages) site for docs * Add tc_error to test suite (Charlie Savage). * Add sax test (Stanislav O.Pogrebnyak). From cfis at savagexi.com Mon May 2 20:23:13 2011 From: cfis at savagexi.com (Charlie Savage) Date: Mon, 02 May 2011 18:23:13 -0600 Subject: [libxml-devel] Version 2.0.4 Released Message-ID: <4DBF4AF1.4060604@savagexi.com> I just pushed up the 2.0.4 release of libxml-ruby. This release includes a fix that allows the libxml-ruby bindings to once again be compiled against older versions of libxml2 (specifically earlier that 1.1.25). Thanks, Charlie From cfis at savagexi.com Mon May 23 22:11:02 2011 From: cfis at savagexi.com (Charlie Savage) Date: Mon, 23 May 2011 20:11:02 -0600 Subject: [libxml-devel] Version 2.0.6 Available Message-ID: <4DDB13B6.6050304@savagexi.com> I just pushed up version 2.0.6. This release includes one change: * Fix segfault that sometimes occurred when looking up encodings on 1.9. In some cases the Ruby encoding infrastructure was not properly initialized (nkriege). Thanks, Charlie