Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728454 - sys-apps/kbd-2.2.0-r2: dumpkeys segmentation fault
Summary: sys-apps/kbd-2.2.0-r2: dumpkeys segmentation fault
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Other Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-16 12:22 UTC by sphakka
Modified: 2020-06-18 16:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge info (emerge-info.kbd-2.2.0-r2.txt,7.10 KB, text/plain)
2020-06-16 12:58 UTC, sphakka
Details
GDB backtrace of dumpkeys (backtrace.kbd-2.2.0-r2.txt,2.01 KB, text/plain)
2020-06-16 15:52 UTC, sphakka
Details
Default keymap fr_CH (defkeymap.fr_CH.c,36.96 KB, text/plain)
2020-06-18 16:39 UTC, sphakka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sphakka 2020-06-16 12:22:29 UTC
sys-apps/kbd-2.2.0-r2 ships a broken `dumpkeys` which crashes when just calling it like this:

   # dumpkeys
   ...
   string Pause = "\033[P"
   Segmentation fault


This also causes some (minor?) breakage at boot time (openrc):

  * Saving key mapping ...
  /etc/init.d/save-keymaps: line 20:  2320 Segmentation fault      dumpkeys > "$RC_LIBEXECDIR"/console/keymap
  * Unable to save keymapping 
   

It used to be good with `sys-apps/kbd-2.0.4`...
Comment 1 sphakka 2020-06-16 12:58:05 UTC
Created attachment 644966 [details]
Emerge info
Comment 2 Mike Gilbert gentoo-dev 2020-06-16 14:11:38 UTC
Could you please capture a backtrace using gdb?
Comment 3 sphakka 2020-06-16 15:52:02 UTC
Created attachment 644974 [details]
GDB backtrace of dumpkeys

"sys-apps/kbd" built with debugsysm
Comment 4 Mike Gilbert gentoo-dev 2020-06-18 15:28:55 UTC
I'm unable to reproduce this locally.

Do you have a non-default keymap loaded when you run dumpkeys?
Comment 5 sphakka 2020-06-18 16:39:41 UTC
Created attachment 645170 [details]
Default keymap fr_CH

Obtained with:

  $ dumpkeys | loadkeys -m -
Comment 6 sphakka 2020-06-18 16:44:09 UTC
(In reply to Mike Gilbert from comment #4)
> I'm unable to reproduce this locally.
> 
> Do you have a non-default keymap loaded when you run dumpkeys?

Oops, yes, I forgot to mention! It seems to load correctly at boot.