Double free *** set breakpoint in malloc_error_break for debugging in ARC

I use ARC in my application with master data and streams, etc., after doing all this hard work to get the work with master data with streaming processing without any glitches, now I get a new crash with the reason -

double free*** set a breakpoint in malloc_error_break to debug 

How should I handle this? I do not control the counter of objects.

+4
source share
2 answers
+8
source

If you want to know who destroyed the selection:

A simple violation, as the message prompts you for clues.

If you want to know who created the selection:

Although you can also do this from the command line using malloc logging, this can be a milder introduction to using the tools. Run the program with the selection record included in the tools, reproduce the problem, then find the address in the tools double free - it will show you the reverse side of creating the distribution. then indicate why this distribution was released twice.

+1
source

Source: https://habr.com/ru/post/1412394/


All Articles