Summary: | Null-pointer dereference in mieqProcessInputEvents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Tom Jaeger <ThJaeger> | ||||||||
Component: | Server/Input/Core | Assignee: | Keith Packard <keithp> | ||||||||
Status: | RESOLVED DUPLICATE | QA Contact: | Xorg Project Team <xorg-team> | ||||||||
Severity: | normal | ||||||||||
Priority: | medium | CC: | colin, dvgevers, ingmar | ||||||||
Version: | git | ||||||||||
Hardware: | Other | ||||||||||
OS: | All | ||||||||||
Whiteboard: | |||||||||||
i915 platform: | i915 features: | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 17452 | ||||||||||
Attachments: |
|
Description
Tom Jaeger
2008-12-21 13:13:03 UTC
hmm. looks like the path you're triggering is feeding events into mieqProcessInput events that are directly by the master device. I think XTest does that in some cases, can you check dix/events.c ProcAllowEvents if there is a similar case (events generated directly on the master device). Oh my god, I'm retarded. This has (in my case) nothing to do with pointers at all. What happens is that the application calls XTestFakeKeyEvent after a successful gesture, and if no physical key has been pressed yet during that session, then the master device is the only availabe keyboard, which XTest will use. Now I had to set a breakpoint in mieqEnqueueEvent to figure that out... This seems to be hitting my packages too. Any patch to fix yet (nothing it attached here but I get the feeling it's been worked around already). Created attachment 21617 [details] [review] patch This is what I've been using so far. Created attachment 21653 [details] [review] A more integrated patch Thanks for pointing the way :) I've attached a slightly more integrated patch that groups things up a bit more nicely. It's functionally the same. I noticed that it depends on commit 0b4fef6337d88ae8ef05b8b73941350a9007565c Author: Peter Hutterer <peter.hutterer@who-t.net> AuthorDate: Wed Dec 10 11:35:09 2008 +1000 dix: move MAX_VALUATOR_EVENTS into include/input.h Other than that, I think the patch is fine. The MD should have everything set up as it is, so missing the CopyKeyClass shouldn't do anything afoul. For the future, please include a reference to the bug number in your commit message (I'd appreciate it if you could upload an updated patch for this) Keith, reassigning to you for pushing onto 1.6. (In reply to comment #6) > I noticed that it depends on > > commit 0b4fef6337d88ae8ef05b8b73941350a9007565c > Author: Peter Hutterer <peter.hutterer@who-t.net> > AuthorDate: Wed Dec 10 11:35:09 2008 +1000 > > dix: move MAX_VALUATOR_EVENTS into include/input.h Ahh yes, sorry I should have noted that here too. I already edited the 1.6 merge wiki page to reflect this :) Created attachment 21891 [details] [review] 0001-mi-Fix-segv-on-CopyKeyClass-19222.patch updated patch with reference to bug report. |
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.