Bug 5617

Summary: X segfaults on startup if evdev node is wrong device
Product: xorg Reporter: M. Veinot <vmark>
Component: Input/evdevAssignee: Zephaniah E. Hull <warp-spam+fdo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: warp-spam+fdo
Version: 6.9.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description M. Veinot 2006-01-17 00:58:17 UTC
xorg segfaults on startup if the device specified in an evdev InputDevice  
section is not the right device.  
  
I recently moved my PC to a new room, and after reconnecting everything, X  
failed to start, segfaulting shortly after being started.  
  
It took me a while to figure out that my MX1000 was now event1, not event2  
where it used to be. Admittedly, I should have set up a udev rule to cause it  
to always appear at input/mx1000 which I have now done. Nevertheless, I feel  
that it should probably fail more gracefully in this situation, and possibly  
provide some insight into what it thinks is wrong.
Comment 1 Brian Murray 2006-01-17 03:05:46 UTC
(In reply to comment #0)
I found the same thing, which is a total PITA since I have a laptop. Theres a
line in evdev.c (somewhere near 691), that goes: 

xf86Msg(X_ERROR, "Unable to open evdev device \"%s\".\n", device);
xfree(pEvdev);


I found removing the xfree(pEvdev);  line fixes that... Its a gross hack, but
perhaps its a start for finding the real cause.
Comment 2 Zephaniah E. Hull 2006-02-16 10:56:23 UTC
This bug is no longer an issue with the new evdev driver in the modular CVS tree.
Comment 3 Zephaniah E. Hull 2006-02-16 11:02:42 UTC
Reassign to the new evdev maintainer.

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.