Hi all,
What are good commands to write when trying to figure out crashes. A binary crashes, are there any commands that people might think are good.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
how to use gdb ?
how to use gdb ?
Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), D-Link 2750u modem+router, 64-bit Debian Testing, Mate 1.26
Re: how to use gdb ?
To debug any executable you need its accompanying debug information. You can use graphical debuggers to facilitate the process. Search for graphical frontends for gdb in http://www.debian.org/distrib/packages#search_packages
Debian == { > 30, 000 packages }; Debian != systemd
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.
The worst infection of all, is a false sense of security!
It is hard to get away from CLI tools.
Re: how to use gdb ?
I was talking about locally built packages. I did get some hints from https://wiki.debian.org/HowToGetABacktrace, specificallyedbarx wrote:To debug any executable you need its accompanying debug information. You can use graphical debuggers to facilitate the process. Search for graphical frontends for gdb in http://www.debian.org/distrib/packages#search_packages
Code: Select all
(gdb) thread apply all bt full
Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), D-Link 2750u modem+router, 64-bit Debian Testing, Mate 1.26
Re: how to use gdb ?
I got this but didn't understand meanings of couple of commands, taking qbittorrent as an e.g. :-
In this I'm asking gdb to run qbittorrent as well as make a log file of whatever happens afterwards.
this one I don't understand. This is the output I get out of it.
Again no idea what this means.
and lastly,
I don't understand the x/16i $pc thing.
Looking forward to know more.
Code: Select all
$ gdb qbittorrent 2>&1 | tee ~/gdb-qbittorrent.txt
Code: Select all
(gdb) handle SIG33 pass nostop noprint
Code: Select all
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
Code: Select all
set pagination 0
and lastly,
Code: Select all
(gdb) backtrace full
(gdb) info registers
(gdb) x/16i $pc
(gdb) thread apply all backtrace
(gdb) quit
Looking forward to know more.
Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), D-Link 2750u modem+router, 64-bit Debian Testing, Mate 1.26