
Hi Botond, I'd recommend trying to use ASAN, the address sanitizer compiler extension (available in the major compilers) on a debug build. With a little bit of luck, it might exactly pinpoint the issue. There are also other sanitizers which might be fruitful in this scenario, e.g. ThreadSanitizer (tsan), possibly UndefinedBehaviorSanitizer (UBsan). Best Regards Martin Heistermann On 2/1/21 5:09 PM, btyukodi@brandeis.edu wrote:
Dear OpenMesh Devs,
It appears now to me that there is a problem when using IO::write concurrently, from different threads even though these write operations should be independent as they operate on separate meshes and separate streams. When I move the writing operations outside my parallel section, it works fine. When inside the parallel section, I'm getting the double free error quite randomly so I assume that whenever writing is attempted at the same time from multiple threads, it fails. Any idea about why this is happening or any fix would be greatly appreciated.
Thank you, Botond _______________________________________________ OpenMesh mailing list -- openmesh@lists.rwth-aachen.de To unsubscribe send an email to openmesh-leave@lists.rwth-aachen.de https://lists.rwth-aachen.de/postorius/lists/openmesh.lists.rwth-aachen.de
-- Martin Heistermann Universitaet Bern, Institut fuer Informatik Neubrueckstr. 10, CH-3012 Bern Tel +41 31 511 76 06