By default the name is always "core" I think, hence overwriting old core dumps, but you can change the name pattern and add the PID for example: https://sigquit.wordpress.com/2009/0...-core-pattern/
Kinda filthy to debug a C API crash, to be able to analyze those crashes in my MySQL part I added debug statements in every C glue function, like:
https://github.com/kungfooman/libcod...mysql.cpp#L483
If I would want to tackle the problem, I would first give every function a debug printf, starting with the functions which call mysql_options(), since that was mentioned in the gdb backtrace.Code:#if DEBUG_MYSQL
printf("gsc_mysql_num_fields(result=%d)\n", result);
#endif