[arch-general] Generating gdb debug logs for devs

Pekka Järvinen pekka.jarvinen at gmail.com
Thu Feb 2 13:54:15 UTC 2017


Hi,

This will only build the package. Make sure to install it, or use
> 'makepkg -sfi' to install it automatically.
>

% makepkg -sfi
...
loading packages...
warning: lxrandr-0.3.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: lxrandr-gtk3 and lxrandr are in conflict
==> WARNING: Failed to install built package(s).

Ok, let's try with pacman:

% sudo pacman -U lxrandr-0.3.1-1-x86_64.pkg.tar.xz
loading packages...
warning: lxrandr-0.3.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) lxrandr-0.3.1-1

Total Installed Size:  0.22 MiB
Net Upgrade Size:      0.01 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring

 [####################################################################] 100%
(1/1) checking package integrity

 [####################################################################] 100%
(1/1) loading package files

[####################################################################] 100%
(1/1) checking for file conflicts

[####################################################################] 100%
(1/1) checking available disk space

[####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling lxrandr

 [####################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the desktop file MIME type cache...

% lxrandr
zsh: segmentation fault (core dumped)  lxrandr

Still crashing as expected.

% gdb lxrandr
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lxrandr...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/lxrandr
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00000000004035d4 in main ()
(gdb)

But still no proper info..



> You most likely need to install debug symbols for the libraries used
> when lxrandr crashes.
>
>
So how/where I can find out what I need to install?


-- 
Pekka Järvinen


More information about the arch-general mailing list