Bug 43201
Summary: | kernel crashes when compiled with a modified keymap using GCC 4.6 or 4.7 | ||
---|---|---|---|
Product: | Drivers | Reporter: | Frédéric L. W. Meunier (fredlwm+others) |
Component: | Console/Framebuffers | Assignee: | Alan (alan) |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | alan |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.3.3 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
.config used with the kernel
kernel panic with the kernel modified defkeymap.c created with 'loadkeys --mktable br-latin1-abnt2' |
Description
Frédéric L. W. Meunier
2012-05-03 22:01:11 UTC
Created attachment 73176 [details]
kernel panic with the kernel
(In reply to comment #0) > After more tests, I noticed that it only happens if I don't load another or > the > same keymap with 'loadkeys' while or after booting. Sorry, that should read: "After more tests, I noticed that it only happens if I load another or the same keymap with 'loadkeys' while or after booting." Created attachment 73177 [details]
modified defkeymap.c created with 'loadkeys --mktable br-latin1-abnt2'
Just additional information and omission. I can't reproduce it from a X terminal emulator nor connecting with ssh. Also, Midnight Commander isn't involved in any way. While my first kernel panic manifested when I pressed the F3 key inside the file manager to read a file, the crash also happens from a bash shell. And if you load another keymap, like "us", the crash occurs pressing an arrow key, what doesn't happen with "br-abnt2" nor "br-latin1-abnt2". It's just a matter of pressing keys until you get the crash. Can you attach the actual keymap file Alan Alan, if you mean the one that crashes the kernel, I attached it earlier at https://bugzilla.kernel.org/attachment.cgi?id=73177 . It's the "br-latin1-abnt2". But I think it crashes with any keymap you generate to replace "defkeymap.c_shipped". I noticed some apparent differences in defkeymap.o using GCC 4.5.2 and 4.6.3, but it's greek for me. I don't know if it's miscompiling the object, and if so, if it's causing the crash. It's just strange to me that the crash only happens if I also use 'loadkeys'. Without doing that, the modified keympap works as expected and all keys appear to be right. Ah ok.. now I understand. The object file may well different, but the actual data loaded into the kernel via loadkeys isn't a .o file so that shouldn't matter. No matter how broken the keymap file is using it with "loadkeys" shouldn't crash the kernel so I shall do some digging |