On Apr 18, 12:05 pm, Michal Kottman <
k0mpju...@gmail.com> wrote:
> try running your application under gdb:
>
> $ gdb --args lua myapplication.lua
> ....
> (gdb) r
>
> When the application crashes, go back to gdb and type the following:
>
> (gdb) bt full
This is what happens:
% gdb --args lua main.lua
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/
licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/lua...(no debugging symbols
found)...done.
(gdb) run
Starting program: /usr/bin/lua main.lua
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Cannot find new threads: generic error
(gdb) bt
Target is executing.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/lua main.lua
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Cannot find new threads: generic error
(gdb) quit
A debugging session is active.
Inferior 1 [process 20301] will be killed.
Quit anyway? (y or n) y