malloc: *** error for object ...: pointer being freed was not allocated #5205
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can maybe try a breakpoint on |
Beta Was this translation helpful? Give feedback.
I tried but I could not reproduce it when I set a breakpoint. Ironically I can only reproduce it when I set all debugging options off.
In the end, I just decided to go with
boost::concurrent_flat_map
instead, which ended up eliminating the error and executes faster than me doingstd::scoped_lock
. But alas, it feels like cheating, and I would have liked to understand the cause of the error, but I probably shouldn't complain 😅.