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
Based on the comments above, I'd recommend the following article: Lua callstack with C++ debugger. It's giving a good overview about debugging the Lua / C++ combination, especially the section "Inspect Lua data structures" is helpful, when it comes to debugging of core dumps.