Actually I stand corrected, a patch was submitted to this list some months ago that appears to be related:
http://rubyforge.org/pipermail/libxml-devel/2007-March/000288.html Has this patch had any traction? Kind Regards, Matthew Ueckerman ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, July 16, 2007 1:24 PM Subject: [libxml-devel] Seg fault during parse on Solaris. With libxml-ruby 0.3.8.4 and SunOS 5.10 when parsing multiple strings or files concurrently I occasionally observe the following seg fault: Program received signal SIGSEGV, Segmentation fault. 0xfe813874 in xmlParseDocument () from /usr/lib/libxml2.so.2 (gdb) where #0 0xfe813874 in xmlParseDocument () from /usr/lib/libxml2.so.2 #1 0xfe8f2bc5 in ruby_xml_parser_parse (self=139580352) at ruby_xml_parser.c:1125 #2 0x08063c38 in rb_call0 (klass=159390400, recv=162825420, id=13289, oid=4270630784, argc=0, argv=0x0, body=0x9801160, flags=0) at eval.c:5665 #3 0x08063f87 in rb_call (klass=159390400, recv=162825420, mid=13289, argc=0, argv=0x0, scope=0) at eval.c:6048 #4 0x080600e1 in rb_eval (self=161830460, n=0xfe8ca780) at ruby.h:654 Here's a derivative of the source: overall_content = [] document = XML::Parser.file(<some file path>).parse document.find(<some xpath>).each do |outer_element| outer_element.find(<some xpath>).each do |inner_element| if inner_element.property(<some attribute>) overall_content << inner_element.content.strip end end end Anyone with any idea of the cause? It doesn't appear to be a known issue based on the open defects and list archive. Kind Regards, Matthew Ueckerman -------------------------------------------------------------------- mail2web.com - What can On Demand Business Solutions do for you? http://link.mail2web.com/Business/SharePoint _______________________________________________ libxml-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/libxml-devel _______________________________________________ libxml-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/libxml-devel
