Bug 5617 - X segfaults on startup if evdev node is wrong device
Summary: X segfaults on startup if evdev node is wrong device
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/evdev (show other bugs)
Version: 6.9.0
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Zephaniah E. Hull
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 00:58 UTC by M. Veinot
Modified: 2006-02-15 16:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.