On Friday, 28 July 2023 07:33:10 CEST David Chmelik wrote:
I think it has them as I ran 'gdb --args pan --debug'. How do I get
line numbers then? I'm just a gdb beginner so could use full
instructions... Pan now doesn't always crash fast, but always crashes.
Looks like the pan you compiled has no (or not all) debug symbols.
Could you try to recompile pan with the following instructions:
git clone https://gitlab.gnome.org/GNOME/pan.git
cd pan
export CFLAGS="-g"
export CXXFLAGS="-g"
./autogen.sh --with-gnutls --with-dbus --with-gmime-crypto --with-gtkspell
--enable-libnotify --enable-gkr --enable-manual
make
You should then have a pan executable with debug symbols.
Here's what I have on my system:
$ ls -l pan/gui/pan
-rwxr-xr-x 1 domi domi 40160208 Jul 29 11:18 pan/gui/pan
$ file pan/gui/pan
pan/gui/pan: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux),
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
BuildID[sha1]=539f95e4e53f7b4c20e2b489f927436d2460269e, for GNU/Linux 3.2.0,
with debug_info, not stripped
Note the "debug_info, not stripped" part which indicates that the binary
contains debug symbol and variable names. [...]