NewsPeople who download and use daily minetest builds from Ubuntu/Mint ppa repository can now download debug symbols when backtrace is needed (for debugging with gdb).
To access it you need to edit your file in `Software Sources` to something like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
deb http://ppa.launchpad.net/minetestdevs/daily-builds/ubuntu YOUR_UBUNTU_VERSION_HERE main debug
After that do usual:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
sudo apt-get update
sudo apt-get install minetest-dbgsym
Now you are ready to debug with gdb (if you are running server):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
gdb --args /usr/bin/minetest --server --verbose
or if you are running minetest client
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
gdb --args /usr/bin/minetest --verbose
then
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
(gdb) set logging on
(gdb) set logging file gdb-mt-debug.txt
(gdb) run
at program crash (or after ctrl+c) do:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
copy results from console or debug.org file to pastebin or whatever you like (don't forget to press `return` multiple times to have all backtrace output from gdb), minetest's debug.txt can be useful too.