Summary: | xkbLEDs causes segfault on login | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Justin Dugger <jldugger> | ||||
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> | ||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||
Severity: | critical | ||||||
Priority: | medium | CC: | peter.hutterer | ||||
Version: | git | Keywords: | have-backtrace | ||||
Hardware: | x86 (IA32) | ||||||
OS: | Linux (All) | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Justin Dugger
2008-01-07 23:25:28 UTC
can you please post your configuration file? the input devices are of interest here. the other thing that'd be interesting is if you can reproduce the crash in gdb, print out dev->name. this way we know which device causes the problem. Created attachment 13786 [details]
configuration for my Toshiba Tecra M7 tablet
The wacom devices are present and working, and are the only nonstandard device I can think of.
After a bit of wrestling, I got xorg to debug again. The device is "eraser". Naturally, eraser has no LEDs, as it's part of a passive pen device! (In reply to comment #3) > After a bit of wrestling, I got xorg to debug again. The device is "eraser". > Naturally, eraser has no LEDs, as it's part of a passive pen device! > please try the simple patch below. i think the correct fix would be in the caller but i don't know enough about XKB for that. diff --git a/xkb/xkbLEDs.c b/xkb/xkbLEDs.c index 2877af0..55ce12a 100644 --- a/xkb/xkbLEDs.c +++ b/xkb/xkbLEDs.c @@ -63,6 +63,9 @@ XkbSrvLedInfoPtr sli; sli= XkbFindSrvLedInfo(dev,XkbDfltXIClass,XkbDfltXIId,0); + if (!sli) + return update; + if (state_changes&(XkbModifierStateMask|XkbGroupStateMask)) update|= sli->usesEffective; if (state_changes&(XkbModifierBaseMask|XkbGroupBaseMask)) ping? After doing a bit more research, I've discovered reports in Debian's BugTracker that the latest wacom-tools doesn't trigger this. I'm now contemplating how to best go with this. It seems like there are cases where NULL can be received, so your patch is at least a step in the right direction for xkb. I'll see about perhaps building with the patch for Ubuntu (my testing system), but it'll probably take some time. If wacom-tools genuinely fixes the bug, then it's probably a good idea to lower the priority of this bug. actually tracking down this problem is more of a nightmare than fixing the symptom. pushed as d954f9c80348de294602d931d387e5cd1ef4b9a5 Any chance that this patch can also be pushed into the 1.4-branch? (In reply to comment #8) > Any chance that this patch can also be pushed into the 1.4-branch? > done. daniels pushed it as bc72ef3a159efd67067322c043bba444869dc356 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.