You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the tests on Windows, the test runner crashes in test_insert_nonleaf_table with a read access violation. I tried to debug and got the following stack trace:
test_edit-e9fa5d7815bf14cc.exe!core::cell::Cell<intrusive_collections::linked_list::NodePtr>::get<intrusive_collections::linked_list::NodePtr>() Line 212
test_edit-e9fa5d7815bf14cc.exe!intrusive_collections::linked_list::NodePtr::next() Line 130
test_edit-e9fa5d7815bf14cc.exe!intrusive_collections::linked_list::LinkedList<toml_edit::document::intrusive::TableAdapter>::clear<toml_edit::document::intrusive::TableAdapter>() Line 728
test_edit-e9fa5d7815bf14cc.exe!intrusive_collections::linked_list::{{impl}}::drop<toml_edit::document::intrusive::TableAdapter>(intrusive_collections::linked_list::LinkedList<toml_edit::document::intrusive::TableAdapter> * self) Line 804
test_edit-e9fa5d7815bf14cc.exe!core::ptr::drop_in_place<intrusive_collections::linked_list::LinkedList<toml_edit::document::intrusive::TableAdapter>>(intrusive_collections::linked_list::LinkedList<toml_edit::document::intrusive::TableAdapter> *) Line 61
test_edit-e9fa5d7815bf14cc.exe!core::ptr::drop_in_place<toml_edit::document::DocumentInner>(toml_edit::document::DocumentInner *) Line 61
test_edit-e9fa5d7815bf14cc.exe!core::ptr::drop_in_place<alloc::boxed::Box<toml_edit::document::DocumentInner>>(toml_edit::document::DocumentInner * *) Line 61
test_edit-e9fa5d7815bf14cc.exe!core::ptr::drop_in_place<toml_edit::document::Document>(toml_edit::document::Document *) Line 61
test_edit-e9fa5d7815bf14cc.exe!test_edit::test_insert_nonleaf_table() Line 77
So it looks like the problem is probably coming from intrusive_collections::linked_list (i.e., not your fault, @ordian). Maybe the raw pointer in NodePtr is invalid ... but I didn't investigate further.
The text was updated successfully, but these errors were encountered:
Looks like the default drop impl for the document is incorrect, because rust does not specify drop order of fields. It is strange, that appveyor CI tests are passing. Are you using 32bit windows?
Probably resolving #19 would eliminate the need for unsafe code.
When I run the tests on Windows, the test runner crashes in
test_insert_nonleaf_table
with a read access violation. I tried to debug and got the following stack trace:So it looks like the problem is probably coming from
intrusive_collections::linked_list
(i.e., not your fault, @ordian). Maybe the raw pointer inNodePtr
is invalid ... but I didn't investigate further.The text was updated successfully, but these errors were encountered: