← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 511491] Re: X crash when using touch screen on Freescale MX51 in Karmic

 

** Description changed:

+ [Impact]
+ A bug in the implementation of the -evtouch driver's input configuration can lead to crashes due to failing to detect the end-of-list marker for the configuration options list.
+ 
+ [Development Solution]
+ Patch incorporated into -evtouch in natty.
+ 
+ [Stable Solution]
+ We carry the same upstream version of -evtouch in lucid, maverick, and natty, so the same patch can be used in all three versions without modification.
+ 
+ [Test Case]
+ See original report
+ 
+ [Regression Potential]
+ I think basically none.  This is clearly incorrect code.
+ 
+ The scope of a regression would be quite constrained as well, since
+ -evtouch is used only for a focused class of hardware.
+ 
+ [Original Report]
  HW configuration: MX51 EVK board
  SW configuration:
  1. Install xserver-xorg-input-evtouch page (version: 0.8.8-0ubuntu6.1)
  2. Add fdi file by "vi /usr/share/hal/fdi/policy/20thirdparty/50-mxc-ts.fdi":
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <deviceinfo version="0.2">
-   <device>
-     <match key="info.product" contains="mxc_ts">
-         <merge key="input.x11_driver" type="string">evtouch</merge>
-     </match>
-   </device>
+   <device>
+     <match key="info.product" contains="mxc_ts">
+         <merge key="input.x11_driver" type="string">evtouch</merge>
+     </match>
+   </device>
  </deviceinfo>
  3. reboot the board, X crash. The backtrace is as follows:
  Program received signal SIGSEGV, Segmentation fault.
  0x402edae4 in strlen () from /lib/libc.so.6
  (gdb) backtrace
  #0  0x402edae4 in strlen () from /lib/libc.so.6
  #1  0x00096a4c in xf86optionListCreate ()
  #2  0x0008f8d8 in xf86CollectInputOptions ()
  #3  0x42d46b0c in EVTouchPreInit (drv=<value optimized out>, dev=0x329b88,
-     flags=<value optimized out>) at evtouch.c:1167
+     flags=<value optimized out>) at evtouch.c:1167
  #4  0x000861c8 in ?? ()
  #5  0x000861c8 in ?? ()
  
  However if i down-grade xserver-xorg-input-evtouch to version
  0.8.8-0ubuntu3, Touch screen works fine.
  
  So what's the possible difference cause this issue?

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xf86-input-evtouch in ubuntu.
https://bugs.launchpad.net/bugs/511491

Title:
  X crash when using touch screen on Freescale MX51 in Karmic



References