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

Segmentation Fault when using Custom XPath functions (1.4.1, 1.4.3.1) #345

Closed
juskoljo opened this issue Sep 14, 2010 · 6 comments
Closed

Comments

@juskoljo
Copy link

Hi,

First of all thanks for this wonderful gem! However I'm facing major issues when trying to use my custom XPath function called compare_value(@name, 'text'). Goal is to retrieve all nodes ('object') which contains certain attribute ('text', case insensitive string compare) and its (attributes/attribute/value) actual value meets the reg exp.

Script & XML to reproduce issue:
http://gist.github.com/579708

  • Ubuntu 10.04
  • libxml2 2.7.6
  • gem versions used: 1.4.1 and 1.4.3.1
  • Ruby 1.7.8 p72 and p249

BR,
Jussi Koljonen

@flavorjones
Copy link
Member

Thank you for reporting. I will try to reproduce ASAP.

@flavorjones
Copy link
Member

reproduced using:

ruby: 
  engine: mri
  version: 1.8.7
  platform: x86_64-linux
libxml: 
  loaded: 2.7.6
  binding: extension
  compiled: 2.7.6
nokogiri: 1.4.3.1

@flavorjones
Copy link
Member

got a diagnosis. working on a fix.

@flavorjones
Copy link
Member

got a fix. need to package up a test case.

@flavorjones
Copy link
Member

Fixed a segfault when GC occurs during xpath handler argument marshalling. Closed by 0a1556a

@juskoljo
Copy link
Author

Thanks! :)

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