Public bug reported:

Binary package hint: udev

<mezcalero> [22:31:27] pitti: i just ran udev through llvm-clang-analyzer
<mezcalero> [22:32:22] pitti: as it turns out the keymap in the kernel is not 
bijective
<mezcalero> [22:32:36] pitti: i.e. more than one name are mapped to the same key
<mezcalero> [22:33:08] example: HANGEUL and HANGUEL
<mezcalero> [22:33:26] pitti: now, the perfect hashtable that is generated from 
that is actually not that perfect due to that
<mezcalero> [22:33:31] and weird things might happen
<mezcalero> [22:33:40] pitti: this probably should be fixed in some way
<mezcalero> [22:33:52] pitti: probably by preprocessing input.h in some and 
filtering out duplicates
<mezcalero> [22:34:01] and sticking to the first names defined there in case of 
an ambiguity
<mezcalero> [22:34:11] pitti: just wanted to ping you about that...
<mezcalero> [22:34:57] pitti: http://fpaste.org/t6ow/
<mezcalero> [22:37:31] pitti: the fix is probably as easy as simply filtering 
KEY_HANGUEL, KEY_COFFEE,  KEY_MIN_INTERESTING from the table
<mezcalero> [22:37:53] pitti: because they seem to be irrelevant as real keys


   1.
      In file included from extras/keymap/keymap.c:40:
   2.
      extras/keymap/keys-to-name.h:124:17: warning: initializer overrides prior 
initialization of this subobject
   3.
      [KEY_HANGUEL] = "KEY_HANGUEL",
   4.
      ^~~~~~~~~~~~~
   5.
      extras/keymap/keys-to-name.h:123:17: note: previous initialization is here
   6.
      [KEY_HANGEUL] = "KEY_HANGEUL",
   7.
      ^~~~~~~~~~~~~
   8.
      extras/keymap/keys-to-name.h:155:20: warning: initializer overrides prior 
initialization of this subobject
   9.
      [KEY_SCREENLOCK] = "KEY_SCREENLOCK",
  10.
      ^~~~~~~~~~~~~~~~
  11.
      extras/keymap/keys-to-name.h:154:16: note: previous initialization is here
  12.
      [KEY_COFFEE] = "KEY_COFFEE",
  13.
      ^~~~~~~~~~~~
  14.
      extras/keymap/keys-to-name.h:380:25: warning: initializer overrides prior 
initialization of this subobject
  15.
      [KEY_MIN_INTERESTING] = "KEY_MIN_INTERESTING",
  16.
      ^~~~~~~~~~~~~~~~~~~~~
  17.
      extras/keymap/keys-to-name.h:114:14: note: previous initialization is here
  18.
      [KEY_MUTE] = "KEY_MUTE",
  19.
      ^~~~~~~~~~

** Affects: udev (Ubuntu)
     Importance: Medium
     Assignee: Martin Pitt (pitti)
         Status: In Progress

** Changed in: udev (Ubuntu)
   Importance: Undecided => Medium

** Changed in: udev (Ubuntu)
       Status: New => In Progress

** Changed in: udev (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
keymap: hash table collisions
https://bugs.launchpad.net/bugs/426647
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to