On 24 August 2015 at 15:45, Andrew Haley wrote: > On 08/24/2015 03:29 PM, Kyle Harper wrote: >>>> I'm happy to provide any other code or info, or try other debugging >>>> tools. I'm getting desperate trying to track this down, so any help >>>> is appreciated. >>> >>> The rule for this is always super-simple: >>> >>> Provide a complete example with full instructions about how to >>> reproduce the problem. >>> >>> Andrew. >>> >> >> My apologies if I'm misunderstanding what you mean, but I did provide >> the full simplified example to demonstrate the issue in the Gist link: >> https://gist.github.com/KyleJHarper/af89bc1a11a699e14d48#file-grr-c > > I did not see that link in any of your emails. It doesn't do > anything about removing elements from lists. That's the first time I've seen that link too. >> >> Compiled with: >> gcc -std=gnu99 -pthread -o grr grr.c > > You're freeing the same buffer twice. Thus your program crashes. Any of glibc, valgrind, asan or tsan diagnoses a use-after-free bug in that code.