"Yooo, OP. Try using Valgrind to see if it's a memory leak or a memory corruption issue. Also, share the code and some stacktrace pls, so we can actually help you debug this."