Skip to content

malloc: *** error for object ...: pointer being freed was not allocated #5205

Discussion options

You must be logged in to vote

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 doing std::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 😅.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edfink234
Comment options

Answer selected by edfink234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants