lunaryorn/synaptiks — Issue #23: Synaptiks crashes with ALPS touchpad after first suspend
Author: Yamakuzure
Created: 2011-10-11 07:06:39+00:00
State: open

This is a bit weird, but here we go.

For ages the ALPS touchpad was not usable with Linux but as a (faked) IMPS/2 mouse thanks to a kernel patch developed by a Dell employer. But now Seth Forshee of Canonical wrote a complete new patch, making the touchpad being recognized completely. Both synclient and synaptiks work very well with it.

I am using a 3.0.4 kernel with gentoo patches and the ALPS-enabling patch from here: http://people.canonical.com/~sforshee/alps-touchpad/ (version 0.9) discussed here: https://bugs.gentoo.org/show_bug.cgi?id=318567 making the
system to accept the ALPS touchpad as if it were a synaptics tp.

No as DrKonqi suggests so, I have reported crashes of synaptiks here: https://bugs.kde.org/show_bug.cgi?id=283173 - But it's the wrong place.

The weird thing is, that I can reproduce the crash only once in the following way: Boot laptop - Susopend - Wakeup - Crash. After restarting synaptiks, I can suspend and resume at will and the program is never crashing again, until the next reboot.

As I can not attach files here, I'll copy&paste only the last backtrace from this morning (After upgrading to KDE 4.7.2):

============
Application: synaptiks (python2.7), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f2175f0c700 (LWP 4459))]

Thread 2 (Thread 0x7f215e43e700 (LWP 4472)):
#0 0x00007f2175492173 in poll () from /lib64/libc.so.6
#1 0x00007f216d084c7d in _xcb_conn_wait () from /usr/lib64/libxcb.so.1
#2 0x00007f216d086604 in xcb_wait_for_reply () from /usr/lib64/libxcb.so.1
#3 0x00007f216d71f0dc in _XReply () from /usr/lib64/libX11.so.6
#4 0x00007f216b02561c in XRecordEnableContext () from /usr/lib64/libXtst.so.6
#5 0x00007f216a385d50 in ffi_call_unix64 () from /usr/lib64/libffi.so.5
#6 0x00007f216a3856d4 in ffi_call (cif=0x7f215e43d410, fn=0x7f216b0254d7 , rvalue=, avalue=) at src/x86/ffi64.c:484
#7 0x00007f216a599005 in _call_function_pointer (argcount=4, resmem=0x7f215e43d300, restype=, atypes=, avalues=0x7f215e43d2d0, pProc=0x7f216b0254d7 , flags=4353) at /var/tmp/portage/dev-lang/python-2.7.2-r2/work/Python-2.7.2/Modules/_ctypes/callproc.c:827
#8 _ctypes_callproc (pProc=0x7f216b0254d7 , argtuple=, flags=4353, argtypes=, restype=0xbc7de0, checker=0x0) at /var/tmp/portage/dev-lang/python-2.7.2-r2/work/Python-2.7.2/Modules/_ctypes/callproc.c:1174
#9 0x00007f216a592b58 in PyCFuncPtr_call (self=, inargs=, kwds=0x0) at /var/tmp/portage/dev-lang/python-2.7.2-r2/work/Python-2.7.2/Modules/_ctypes/_ctypes.c:3911
#10 0x00007f21759b5062 in PyObject_Call (func=0xc41c80, arg=, kw=) at Objects/abstract.c:2529
#11 0x00007f2175a4cda6 in do_call (nk=, na=, pp_stack=0x7f215e43d680, func=0xc41c80) at Python/ceval.c:4231
#12 call_function (oparg=, pp_stack=0x7f215e43d680) at Python/ceval.c:4036
#13 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#14 0x00007f2175a4f229 in PyEval_EvalCodeEx (co=0xc61c30, globals=, locals=, args=, argcount=4, kws=0x10c32f0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
#15 0x00007f2175a4d9ad in fast_function (nk=, na=4, n=, pp_stack=0x7f215e43d8a0, func=0xc6ab18) at Python/ceval.c:4109
#16 call_function (oparg=, pp_stack=0x7f215e43d8a0) at Python/ceval.c:4034
#17 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#18 0x00007f2175a4f229 in PyEval_EvalCodeEx (co=0xc4d330, globals=, locals=, args=, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
#19 0x00007f21759daf91 in function_call (func=0xcd20c8, arg=0x9ed0d0, kw=0x0) at Objects/funcobject.c:526
#20 0x00007f21759b5062 in PyObject_Call (func=0xcd20c8, arg=, kw=) at Objects/abstract.c:2529
#21 0x00007f21759c408d in instancemethod_call (func=0xcd20c8, arg=0x9ed0d0, kw=0x0) at Objects/classobject.c:2578
#22 0x00007f21759b5062 in PyObject_Call (func=0xba8370, arg=, kw=) at Objects/abstract.c:2529
#23 0x00007f2175a47cd6 in PyEval_CallObjectWithKeywords (func=0xba8370, arg=0x7f2175ecb050, kw=) at Python/ceval.c:3882
#24 0x00007f2170b119db in sip_api_call_method () from /usr/lib64/python2.7/site-packages/sip.so
#25 0x00007f217072f8f7 in sipVH_QtCore_11(PyGILState_STATE, _object*) () from /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so
#26 0x00007f21707635d0 in sipQThread::run() () from /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so
#27 0x00007f2172b30e95 in QThreadPrivate::start (arg=0x10b7840) at thread/qthread_unix.cpp:331
#28 0x00007f2175755d4c in start_thread () from /lib64/libpthread.so.0
#29 0x00007f217549aded in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f2175f0c700 (LWP 4459)):
[KCrash Handler]
#6 0x000000000000455a in ?? ()
#7 0x00007f2170841bdc in pyqtBoundSignal_emit () from /usr/lib64/python2.7/site-packages/PyQt4/QtCore.so
#8 0x00007f2175a4d626 in ext_do_call (nk=0, na=0, flags=, pp_stack=0x7fffe1d05930, func=0xe56c68) at Python/ceval.c:4323
#9 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2705
#10 0x00007f2175a4dd81 in fast_function (nk=, na=, n=, pp_stack=0x7fffe1d05aa0, func=0xdcacf8) at Python/ceval.c:4099
#11 call_function (oparg=, pp_stack=0x7fffe1d05aa0) at Python/ceval.c:4034
#12 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#13 0x00007f2175a4f229 in PyEval_EvalCodeEx (co=0xdbe3b0, globals=, locals=, args=, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
#14 0x00007f21759daf91 in function_call (func=0xdcc1b8, arg=0x1119c68, kw=0x0) at Objects/funcobject.c:526
#15 0x00007f21759b5062 in PyObject_Call (func=0xdcc1b8, arg=, kw=) at Objects/abstract.c:2529
#16 0x00007f21759c408d in instancemethod_call (func=0xdcc1b8, arg=0x1119c68, kw=0x0) at Objects/classobject.c:2578
#17 0x00007f21759b5062 in PyObject_Call (func=0xba81e0, arg=, kw=) at Objects/abstract.c:2529
#18 0x00007f21759b5868 in PyObject_CallFunctionObjArgs (callable=0xba81e0) at Objects/abstract.c:2760
#19 0x00007f216827469b in DBusPyConnection_HandleMessage (conn=, msg=, callable=) at conn.c:79
#20 0x00007f2168275451 in _filter_message (conn=, message=, user_data=0xba81e0) at conn-methods.c:197
#21 0x00007f2170d34e6c in dbus_connection_dispatch (connection=0x10aeed0) at /var/tmp/portage/sys-apps/dbus-1.4.14/work/dbus-1.4.14/dbus/dbus-connection.c:4603
#22 0x00007f2167c3ef55 in message_queue_dispatch (source=, callback=, user_data=) at /var/tmp/portage/dev-libs/dbus-glib-0.94-r1/work/dbus-glib-0.94/dbus/dbus-gmain.c:90
#23 0x00007f21711f083e in g_main_dispatch (context=0xf1de40) at gmain.c:2441
#24 g_main_context_dispatch (context=0xf1de40) at gmain.c:3014
#25 0x00007f21711f1028 in g_main_context_iterate (context=0xf1de40, block=1, dispatch=1, self=) at gmain.c:3092
#26 0x00007f21711f12bd in g_main_context_iteration (context=0xf1de40, may_block=1) at gmain.c:3155
#27 0x00007f2172c458ef in QEventDispatcherGlib::processEvents (this=0xf1ab40, flags=) at kernel/qeventdispatcher_glib.cpp:422
#28 0x00007f216f0433ce in QGuiEventDispatcherGlib::processEvents (this=, flags=) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007f2172c19ce2 in QEventLoop::processEvents (this=, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007f2172c19f24 in QEventLoop::exec (this=0x7fffe1d06330, flags=...) at kernel/qeventloop.cpp:201
#31 0x00007f2172c1e3ab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#32 0x00007f216ff6500b in meth_QApplication_exec_ () from /usr/lib64/python2.7/site-packages/PyQt4/QtGui.so
#33 0x00007f2175a4d558 in call_function (oparg=, pp_stack=0x7fffe1d064a0) at Python/ceval.c:4013
#34 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#35 0x00007f2175a4f229 in PyEval_EvalCodeEx (co=0x9c9e30, globals=, locals=, args=, argcount=0, kws=0x6e4bf8, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
#36 0x00007f2175a4d9ad in fast_function (nk=, na=0, n=, pp_stack=0x7fffe1d066c0, func=0xe9c488) at Python/ceval.c:4109
#37 call_function (oparg=, pp_stack=0x7fffe1d066c0) at Python/ceval.c:4034
#38 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#39 0x00007f2175a4f229 in PyEval_EvalCodeEx (co=0x7f2175e4fa30, globals=, locals=, args=, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3253
#40 0x00007f2175a4f342 in PyEval_EvalCode (co=, globals=, locals=) at Python/ceval.c:667
#41 0x00007f2175a6918c in run_mod (mod=, filename=, globals=0x659f60, locals=0x659f60, flags=, arena=) at Python/pythonrun.c:1346
#42 0x00007f2175a69fa2 in PyRun_FileExFlags (fp=0x6ebde0, filename=0x7fffe1d08381 "/usr/bin/synaptiks", start=, globals=0x659f60, locals=0x659f60, closeit=1, flags=0x7fffe1d06a10) at Python/pythonrun.c:1332
#43 0x00007f2175a6ab7f in PyRun_SimpleFileExFlags (fp=0x6ebde0, filename=0x7fffe1d08381 "/usr/bin/synaptiks", closeit=1, flags=0x7fffe1d06a10) at Python/pythonrun.c:936
#44 0x00007f2175a7bd96 in Py_Main (argc=, argv=) at Modules/main.c:606
#45 0x00007f21753e2ebd in __libc_start_main () from /lib64/libc.so.6
#46 0x00000000004007d9 in _start ()
============