synaptics driver fails to load (dlopen error)

Bug #54290 reported by Mathieu Bérard
40
Affects Status Importance Assigned to Milestone
xserver-xorg-input-synaptics (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Relevant part of Xorg.0.log:

(II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
dlopen: /usr/lib/xorg/modules/input/synaptics_drv.so: undefined symbol: __stack_chk_fail_local
(EE) Failed to load /usr/lib/xorg/modules/input/synaptics_drv.so

This error seems to be somewhat related with gcc's stack smashing protection...

Revision history for this message
Mathieu Bérard (mathieu-berard) wrote :

Workaround:
the driver loads and works correctly if ssp is disabled at build time by
adding '-fno-stack-protector' to CCOPTIONS in the makefile.

Revision history for this message
Adam Israel (aisrael) wrote :

I am also seeing this happen, as of version 0.14-6-0ubuntu1.

Changed in xserver-xorg-input-synaptics:
status: Unconfirmed → Confirmed
Revision history for this message
Mathieu Bérard (mathieu-berard) wrote :

Better-workaround (which keep ssp enabled):
I have no clue about how ssp works but there seems to be a problem related
to the linking stage in the build process.
I have tried to change various ld options with no success...
It seems that gcc knows how to properly invoke ld, so if you pass LD=gcc to the makefile, then gcc is used in the linking stage and calls ld with he good options to deal with ssp.
There is then no trace of this __stack_chk_fail_local symbol in the final binary which loads and work as expected.

Revision history for this message
Rodrigo Novo (rodarvus) wrote :

0.14-6-0ubuntu2 uploaded (with Stack Protection disabled).

Thanks for the report guys!

Changed in xserver-xorg-input-synaptics:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.