Data-UUID
Data-UUID copied to clipboard
Segmentation fault
On an Ubuntu 22.04.0 with perl v5.32 or v5.36, caching and re-using the Data::UUID object creates a segmentation fault. I spent hours to find out where the segmentation fault came from. I think it is important to highlight in the documentation to always create a new instance for each new UUID created.
The object is meant to be reused. How were you caching it? Where was the segfault?
The object is meant to be reused. How were you caching it? Where was the segfault?
Actually, I now believe the issue stemmed from that the module object was cloned with Clone, and I do not think it cloned properly the Data::UUID object that was cached.
Correction on the above: the issue was elsewhere in my code.