>>>>> "S" == Sean Chittenden <sean / chittenden.org> writes:

S> $ time rubytest -F -i 0 -n xml_parser4
S> =2E/tests/tc_xml_parser4.rb:12: [BUG] Segmentation fault
S> ruby 1.7.3 (2002-09-27) [i386-freebsd5]
S> Abort (core dumped)

 Sorry to say that but you have a bug in your extension.

 Can you explain me this ?

VALUE ruby_xml_parser_new(VALUE class) {
  ruby_xml_parser *rxp;

  ruby_xml_parser_count++;
  rxp = ALLOC(ruby_xml_parser);
  rxp->ctxt = Qnil;
  rxp->data_type = RUBY_LIBXML_SRC_TYPE_NULL;
  rxp->data = NULL;
  rxp->parsed = 0;

  return(Data_Wrap_Struct(class, 0, ruby_xml_parser_free, rxp));
}


Guy Decoux