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

recycled object error #44

Closed
flavorjones opened this issue May 12, 2009 · 2 comments
Closed

recycled object error #44

flavorjones opened this issue May 12, 2009 · 2 comments

Comments

@flavorjones
Copy link
Member

frequently getting the following error when running on MRI FFI:

/home/mike/code/nokogiri/test/helper.rb:11: libxml version info:     {"nokogiri"=>"1.2.4", "warnings"=>[], "libxml"=>{"platform"=>"ruby",     "binding"=>"ffi", "loaded"=>"2.6.31"}}
Loaded suite -e
Started
...
Finished in 3.285882 seconds.

  1) Error:
test_attribute_roundtrip(TestReader):
RangeError: 0xdb7eb02a is recycled object
    /home/mike/code/nokogiri/lib/nokogiri/ffi/structs/common_node.rb:11:in     `_id2ref'
    /home/mike/code/nokogiri/lib/nokogiri/ffi/structs/common_node.rb:11:in     `ruby_node'
    /home/mike/code/nokogiri/lib/nokogiri/ffi/xml/node.rb:252:in     `wrap'
    /home/mike/code/nokogiri/lib/nokogiri/ffi/xml/node.rb:107:in     `attribute_nodes'
    /home/mike/code/nokogiri/lib/nokogiri/ffi/xml/reader.rb:42:in     `attribute_nodes'
    /home/mike/code/nokogiri/lib/nokogiri/xml/reader.rb:52:in     `attributes'
    ./test/test_reader.rb:142:in `test_attribute_roundtrip'
    /home/mike/code/nokogiri/lib/nokogiri/xml/reader.rb:61:in `call'
    /home/mike/code/nokogiri/lib/nokogiri/xml/reader.rb:61:in `each'
    ./test/test_reader.rb:141:in `test_attribute_roundtrip'

544 tests, 1367 assertions, 0 failures, 1 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 -w     -Ilib:ext:bin:test -e ...]
@flavorjones
Copy link
Member Author

note that i can repro this with 2.6.31 and 2.6.32, but not 2.7.2 or 2.7.3

@flavorjones
Copy link
Member Author

fixing problem with recycled xml reader attribute nodes. closed by e9c79b4.

flavorjones pushed a commit that referenced this issue Apr 7, 2021
Include comment nodes that are siblings of html.
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

1 participant