i’m currently facing a situation with my octave interface that is calling a multithreaded library:
*** Error in `/usr/bin/octave-cli': double free or corruption (!prev): 0x0000000001743b80 ***
*** Error in `/usr/bin/octave-cli': double free or corruption (top): 0x00007fb5400068e0 ***
*** Error in `/usr/bin/octave-cli': corrupted double-linked list: 0x00007fb540006c80 ***
i was getting errors for the same library with the generated python swig interface as well, but there when i started to compile the interface with -threads option, the problem resolved itself.
i was trying to find out from the documentation whether there’s a similar option for octave, but i couldn’t find anything.
any suggestion for a workaround - apart from compiling the library single threaded?