[libxml-devel] [Fwd: [ruby-core:17694] Mark functions not called on exit]

2008-07-09 Thread Charlie Savage
Hi everyone, Going through the tests, I've run into one that causes segmentation faults (libxml-ruby/trunk/test/ets_copy_bug2.rb). After puzzling over it for a bit, I realized the problem is that Mark functions for C objects are not being called when Ruby exits. I've posted a note to ruby-c

Re: [libxml-devel] Changing node equality

2008-07-09 Thread Charlie Savage
Actually, how about this (pseudo): def ==(arg) if arg.kind_of? XML::Node return true if self.id == arg.id else return true if self.to_s == arg end end Deal - I'll do that. Charlie smime.p7s Description: S/MIME Cryptographic Signature

Re: [libxml-devel] Changing node equality

2008-07-09 Thread Trans
On Jul 8, 2:37 pm, Charlie Savage <[EMAIL PROTECTED]> wrote: > Trans wrote: > > > On Jul 8, 12:04 pm, Charlie Savage <[EMAIL PROTECTED]> wrote: > >>> Hmmm... How does the C library itself handle comparison? > >> Well, in C the == is identity (comparing pointer addresses).  libxml > >> does not pr

[libxml-devel] [ libxml-Bugs-9883 ] call-seq for ruby_xml_document_validate_schema is incorrect

2008-07-09 Thread noreply
Bugs item #9883, was opened at 2007-04-05 12:50 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=9883&group_id=494 Category: None Group: None Status: Open >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Summary:

[libxml-devel] [ libxml-Bugs-9883 ] call-seq for ruby_xml_document_validate_schema is incorrect

2008-07-09 Thread noreply
Bugs item #9883, was opened at 2007-04-05 12:50 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=9883&group_id=494 Category: None Group: None >Status: Closed Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Charlie Savage (cfis) Summary

[libxml-devel] [ libxml-Bugs-19589 ] node.find_first() returns a node, but find() on the returned node searches parent node

2008-07-09 Thread noreply
Bugs item #19589, was opened at 2008-04-16 12:06 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=19589&group_id=494 Category: General Group: v0.5 >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Jamie Orchard-Hays (jamieorc) >Assigned to: Charli

[libxml-devel] [ libxml-Bugs-14231 ] Cannot make assignment to attributes in a namespace.

2008-07-09 Thread noreply
Bugs item #14231, was opened at 2007-09-25 19:17 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=14231&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Dave Howell (snarke) >Assigned to: Charlie Savage (cf

[libxml-devel] [ libxml-Bugs-7537 ] XPath Unit Test does not test XPath

2008-07-09 Thread noreply
Bugs item #7537, was opened at 2007-01-02 16:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=7537&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Summa

[libxml-devel] [ libxml-Bugs-8337 ] Opening many files causes segfault on fbsd-amd64

2008-07-09 Thread noreply
Bugs item #8337, was opened at 2007-01-31 10:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=8337&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Summa

[libxml-devel] [ libxml-Bugs-8370 ] The XML::Node::Set first() method behavior

2008-07-09 Thread noreply
Bugs item #8370, was opened at 2007-02-01 13:04 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=8370&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Doug Bryant (dougbryant) >Assigned to: Charlie Savage (

[libxml-devel] [ libxml-Bugs-11836 ] NULL pointer in XML::Node#base when no xml:base attribute is present

2008-07-09 Thread noreply
Bugs item #11836, was opened at 2007-06-25 12:17 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=11836&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: NUL

[libxml-devel] [ libxml-Bugs-11766 ] XML::Node#<< behaving strangely, causing memory deallocation errors and wreacking havoc

2008-07-09 Thread noreply
Bugs item #11766, was opened at 2007-06-22 03:38 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=11766&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Sum

[libxml-devel] [ libxml-Bugs-8125 ] 0.3.8.4: XPath troubles with certain attributes and namespaces

2008-07-09 Thread noreply
Bugs item #8125, was opened at 2007-01-24 17:41 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=8125&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Jeremy Echols (nerdmaster) >Assigned to: Charlie Savage

[libxml-devel] [ libxml-Bugs-9158 ] XML::Schema.new("filename") always returns nil

2008-07-09 Thread noreply
Bugs item #9158, was opened at 2007-03-09 16:29 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=9158&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) >Summ

[libxml-devel] [ libxml-Bugs-7529 ] Segfault on parser_context.doc access after XML parse error

2008-07-09 Thread noreply
Bugs item #7529, was opened at 2007-01-02 05:14 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=7529&group_id=494 Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) Summa

Re: [libxml-devel] Changing node equality

2008-07-09 Thread Sean Chittenden
Not the same thing. Comparing raw XML string is overly strict. For example I would expect the following two snips to be "equal": Hi Hi These would not be equal by string comparison b/c the attribute bar and baz are not in the same order (to say nothing of white space). Actuall

Re: [libxml-devel] [Fwd: [ruby-core:17694] Mark functions not called on exit]

2008-07-09 Thread Sean Chittenden
After puzzling over it for a bit, I realized the problem is that Mark functions for C objects are not being called when Ruby exits. In the meantime, curious if anyone has any ideas on how to solve the issue. Ready for a gross solution? Force the garbage collector to run via an atexit(3)

Re: [libxml-devel] [Fwd: [ruby-core:17694] Mark functions not called on exit]

2008-07-09 Thread Charlie Savage
Sean Chittenden wrote: After puzzling over it for a bit, I realized the problem is that Mark functions for C objects are not being called when Ruby exits. In the meantime, curious if anyone has any ideas on how to solve the issue. Ready for a gross solution? Force the garbage collector t

[libxml-devel] And onto libxml-ruby 0.7.0

2008-07-09 Thread Charlie Savage
Ok, I've just pushed up a 0.7.0 libxml release. I thought about calling it 0.6.1, but there were both API changes (attributes) and a fair number of internal changes, so I went with 0.7.0. I also marked this release as stable - at this point I think the library is in good shape. So please dow

[libxml-devel] Need permission to update rdocs

2008-07-09 Thread Charlie Savage
I'd like to update the rdocs online at: http://libxml.rubyforge.org/rdoc/ Except when I try I get a permission errors. Trans, Dan or Sean, can you either do this or alternatively give me permission to? Thanks, Charlie smime.p7s Description: S/MIME Cryptographic Signature _

[libxml-devel] DTD's still loaded when default_load_external_dtd is false

2008-07-09 Thread Paul Dlug
Even if XML::Parser.default_load_external_dtd is set to false the parser loads the DTD, see test script: require 'xml/libxml' xml =

Re: [libxml-devel] [ libxml-Bugs-8337 ] Opening many files causes segfault on fbsd-amd64

2008-07-09 Thread Masashi Shimbo
Hello, > require 'xml/libxml' > > (1..1).each{|time| > XML::Document.file('test.xml') > p time if time % 100 == 0 > } >>Comment By: Charlie Savage (cfis) > Date: 2008-07-09 11:37 > > Message: > I assume this is now fixed with the new memory model. It won't segfault anymore, but now I get t

Re: [libxml-devel] DTD's still loaded when default_load_external_dtd is false

2008-07-09 Thread Charlie Savage
Hi Paul, Even if XML::Parser.default_load_external_dtd is set to false the parser loads the DTD, see test script: Upgrade to the latest libxml version (0.7.0) - it works fine here. I've added your test case to tests/tc_xml_dtd.rb (in SVN, but not in the 0.7.0 release). def test_external