Git Product home page Git Product logo

Comments (5)

cfis avatar cfis commented on July 26, 2024

Hi Capt,

So this commit yesterday fixed a similar sounding issue:

59da46e

That was the only real change in 2.0.5. So just to verify, this was without a double using version 2.0.5 and not 2.0.4? Also it looks like it worked the first time you called doc.validate(dtd) but failed the second time?

Charlie

Charlie

from libxml-ruby.

cfis avatar cfis commented on July 26, 2024

Ok, I now see in the trace it was 2.0.5, so skip that.

What OS is this?

Charlie

from libxml-ruby.

CaptDowner avatar CaptDowner commented on July 26, 2024

Charlie,

What OS is this?

Linux, Fedora Core 13

bash-/~$ uname -a
Linux localhost.localdomain 2.6.34.8-68.fc13.x86_64 #1 SMP Thu Feb 17 15:03:58 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

It doesn't happen on 32 bit architecture(s), with the exact same calling sequence.

And, on a 64-bit machine, it happens when I use document.validate(schema), and it's fine on the call to document.validate(dtd)

It sounds like a type misalignment, 32 bit versus 64 bit. The differing size of ints and pointers can collide.

HTH,

Captain Downer
Sea of Anarchy Yacht Club

On Thu, 5 May 2011 15:51:57 -0700
cfis [email protected] wrote:

Ok, I now see in the trace it was 2.0.5, so skip that.

What OS is this?

Charlie

Reply to this email directly or view it on GitHub:
#16 (comment)

from libxml-ruby.

cfis avatar cfis commented on July 26, 2024

Hi Captain Downer (quite a name),

I'm testing on a 64 bit box, Fedora 14.

Anyway, I see the issue. For schemas, use Document#validate_schema, not Document#validate. The validate method assumes that it is getting a DTD, not an xml schema.

So I think this is ok as-is...

from libxml-ruby.

CaptDowner avatar CaptDowner commented on July 26, 2024

Charlie,

Thanks for the tip. And thanks for your work on the XML stuff. It rocks!

I only stumbled on the 64 bit problem when I was running the code on the web site I referenced in the bug report. I've recently has a request to acquire some XML chops, so while I'm a coding veteran, some of this is new for me.

Document#validate_schema it is.

Steve Downie

aka Captain Downer
Sea of Anarchy Yacht Club

On Thu, 5 May 2011 18:49:38 -0700
cfis [email protected] wrote:

Hi Captain Downer (quite a name),

I'm testing on a 64 bit box, Fedora 14.

Anyway, I see the issue. For schemas, use Document#validate_schema, not Document#validate. The validate method assumes that it is getting a DTD, not an xml schema.

So I think this is ok as-is...

Reply to this email directly or view it on GitHub:
#16 (comment)

from libxml-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.