How can I get the lua stack trace from a core file using gdb
问题 I have a C++ application (for OS X) that calls lua as a scripting language. I'm running a large number of these applications (100s) and they can run for a very long time (days or weeks). Sometimes one crashes. And when it crashes it leaves me a lovely core file. I can open this core file in gdb and find where the application crashes. I can walk the call stack and find an instance of a lua_State variable. My problem is that I'd like to see what the lua call stack looks like at this time...