20.10.2017, 16:24
You probably have corrupt memory somewhere in your program, or free some memory pointer twice, just like the error says. Build a debug version (add the -g flag to gcc) and run that to get more debugging information in the backtrace.