When investigating core files from crashes, one can quite easily figure out which query crashed, as we've seen.
Sometimes you want to just list all the currently executing statements, this is useful for diagnosing hangs or corruptions.
At least GDB 7 supports python macros, which can help us a lot here. I use a core file from 5.5.27, also a non-debug build but not "stripped". So it's a standard build made with -g allowing us to reference symbols.
I wrote a simplistic macro to iterate through [Read more...]