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
openscad: src/value.cc:211: Value Value::clone() const: Assertion `false && "unknown Value variant type"' failed.
Aborted
After a detailed interpretation discussion on IRC with @thehans. This issue was diagnosed as most likely due to an invalidation of EmbeddedVector iterators during flattening, which causes undefined behavior leading to a faulty pointer to a Value with an unknown variant type.
The text was updated successfully, but these errors were encountered:
thehans
added a commit
to thehans/openscad
that referenced
this issue
Dec 16, 2020
This bug was initially raised on the OpenSCAD mailing list http://forum.openscad.org/RC-dumps-core-tc31122.html as a regression in the master branch of OpenSCAD for the BOSL2 library's testing suite test_hull.scad https://github.com/revarbat/BOSL2/blob/master/tests/test_hull.scad
Extensive reduction and transformation of the code in question reduced it to the following test case:
Running as:
produces an error output of:
After a detailed interpretation discussion on IRC with @thehans. This issue was diagnosed as most likely due to an invalidation of EmbeddedVector iterators during flattening, which causes undefined behavior leading to a faulty pointer to a Value with an unknown variant type.
The text was updated successfully, but these errors were encountered: