Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2018 10:04:18 +0300
From:      Vladimir Kondratyev <vladimir@kondratyev.su>
To:        Niclas Zeising <zeising+freebsd@daemonic.se>
Cc:        freebsd-x11@freebsd.org, owner-freebsd-x11@freebsd.org
Subject:   Re: [CFT] changes and updates to x11 input devices
Message-ID:  <a7568cbfeb0711273ec73a102583812f@kondratyev.su>
In-Reply-To: <5a73c771a7fe160689839647ad742759@kondratyev.su>
References:  <dbf6a804-887d-4683-c371-90785b76aa92@freebsd.org> <49a1235b-608d-aa98-c6da-b98f55e50e54@daemonic.se> <5a73c771a7fe160689839647ad742759@kondratyev.su>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2018-06-12 21:48, Vladimir Kondratyev wrote:
> On 2018-06-10 16:54, Niclas Zeising wrote:
>> On 06/10/18 09:01, Niclas Zeising wrote:
> 
>> On request, attached is a patch with all changes.
>> Regards
> 
> New libinput catches SIGSEGV in my setup. It looks like use-after-free
> somewhere in libinput->libudev interaction.
> 
> The simplest way to reproduce is to run 'libinput list-devices' from
> command line.

Finally I was able to fix both X11 and libinput with following steps:

1. Revert epoll-shim. It fixed X11 device driver attachment. (New 
version was working for me some time ago. I should check what has 
happened recently)
2. Fix its linkage with adding 'LDFLAGS= -pthread -lrt' line to Makefile
3. Remove patch-src_evdev.c.reopen from libinput to fix 'libinput 
list-devices' crash (The patch is integrated in to patch-src_evdev.c in 
last revision)
4. Restore libinput-record with replacing versionsort with alphasort. 
Add '${REINPLACE_CMD} -e 's|versionsort|alphasort|'  
${WRKSRC}/tools/libinput-record.c' to post-patch target.


-- 
WBR
Vladimir Kondratyev



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a7568cbfeb0711273ec73a102583812f>