Re: [libxml-devel] bus error cause by bad XML

2009-03-17 Thread Stephen Bannasch
On Mon, Mar 16, 2009 at 8:50 PM, Stephen Bannasch wrote: In working on the rails xml_mini backend tests I found a test generating a > bus error when using libxml-ruby-1.1.2. This works fine for me. What version of libxml2 are you running? Use this command to find out: ruby -rubygems -e'

Re: [libxml-devel] bus error cause by bad XML

2009-03-17 Thread Stephen Bannasch
At 10:23 PM -0600 3/16/09, Charlie Savage wrote: Hi Stephen, Here's the result running on MacOS 10.5.6 $ ruby test_attack_xml_with_libxml.rb Loaded suite test_attack_xml Started /Library/Ruby/Gems/1.8/gems/libxml-ruby-1.1.2/lib/libxml/node.rb:100: [BUG] Bus Error ruby 1.8.6 (2008-03-03) [uni

Re: [libxml-devel] bus error cause by bad XML

2009-03-17 Thread Charlie Savage
What can I do to get a stack trace? I'll let people more knowledgeable than I am on OS X anser. But at a minimum, compile the bindings with debug info (-g). And then maybe use this: http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man8/stackshot.8.html The other way is

[libxml-devel] validate against multiple xml schema

2009-03-17 Thread Francesco Lazzarino
validation question: given a schema that has an xsd:any element. Is there a way to specify multiple schemas to validate against the outer document and any inner documents? currently I only see the validate_schema method thanks in advance, -franco Francesco Lazzarino Florida Digital Archi

Re: [libxml-devel] validate against multiple xml schema

2009-03-17 Thread Charlie Savage
Hi Franco, validation question: given a schema that has an xsd:any element. Is there a way to specify multiple schemas to validate against the outer document and any inner documents? currently I only see the validate_schema method Good question. Do you know if libxml2 supports this? May

Re: [libxml-devel] bus error cause by bad XML

2009-03-17 Thread Charlie Savage
libxml dies on line 66 in this test outside of rails: http://gist.github.com/80576 Yup, works here. Line 66 is a weird place for it to die: attributes_to_hash(hash) That's just a ruby method call. From your report yesterday, seems more like its at line 75: each_attr { |attr| hash[attr.na

Re: [libxml-devel] bus error cause by bad XML

2009-03-17 Thread Joe Khoobyar
I've got an OS X box, I can try it out if you want. *Joe Khoobyar * Chief Technical Officer & Lead Developer CollectiveX - /Groups that work!/ mobile: 585.245.2902 email: j...@collectivex.com web:www.collectivex.com

Re: [libxml-devel] bus error cause by bad XML

2009-03-17 Thread Stephen Bannasch
At 5:18 PM -0400 3/17/09, Joe Khoobyar wrote: I've got an OS X box, I can try it out if you want. Joe, That would be great -- I haven't had time to get back to the problem. ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org