On Sunday, 6 November 2016 at 21:46:52 UTC, Øivind wrote:
Hi,
My app occasionally gives me a
*** Error in `./hauto-test': double free or corruption
(fasttop): 0x00007f504c002a60 ***
but gives me the following on every termination
core.exception.InvalidMemoryOperationError@src/core/exception.d(693): Invalid
memory operation
How do I go about debugging and resolving these?
-Øivind
I think that "Invalid Memory Operation" is the error the GC gives
you when you try to allocate memory during the collection phase
(i.e. inside a destructor). I suggest you avoid doing so.
I don't know if the double free problem is related to this. It
may as well be a totally unrelated bug of some container you are
using.