Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 728454

Summary: sys-apps/kbd-2.2.0-r2: dumpkeys segmentation fault
Product: Gentoo Linux Reporter: sphakka <marcoep>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: Other   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Emerge info
GDB backtrace of dumpkeys
Default keymap fr_CH

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.