Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault in Nokogiri 1.3.0 #70

Closed
gcampbell opened this issue Jun 5, 2009 · 1 comment
Closed

Segfault in Nokogiri 1.3.0 #70

gcampbell opened this issue Jun 5, 2009 · 1 comment

Comments

@gcampbell
Copy link
Contributor

I'm trying to come up with a simple test case to reproduce this (and will update this issue when I have), but the segfault happened on line 326 of nokogiri/xml/node.rb:
key = ['xmlns', nd.prefix].compact.join(':')

The code reproducing this takes a sizable list of nodes (all in the same namespace) and evaluates some xpaths against them to populate attributes of Ruby objects - i.e. foo.bar = xml.xpath("xmlns:bar").first.content .

@tenderlove
Copy link
Member

Thanks for reporting! This is already fixed in cb3d8f3

I will release this weekend, but if you need the fix sooner, just do:

$ sudo gem install nokogiri -s http://tenderlovemaking.com/

flavorjones pushed a commit that referenced this issue Apr 7, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants