<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - libinput-1.7.2 segfault when built with clang"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100976">100976</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libinput-1.7.2 segfault when built with clang
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>libinput
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>krejzi@email.com
</td>
</tr></table>
<p>
<div>
<pre>As the title says. When built with gcc, it's fine. Backtrace when running
libinput-list-devices is below (it also crashes X server when using
xf86-input-libinput):
Starting program: /usr/bin/libinput-list-devices
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
fallback_dispatch_create (libinput_device=<optimized out>) at evdev.c:1809
1809 if (fallback_dispatch_init_slots(dispatch, device) == -1) {
(gdb) bt
#0 fallback_dispatch_create (libinput_device=<optimized out>) at evdev.c:1809
#1 evdev_configure_device (device=<optimized out>) at evdev.c:2680
#2 evdev_device_create (seat=<optimized out>, udev_device=<optimized out>) at
evdev.c:2909
#3 0x00007ffff7bcc611 in device_added (udev_device=0x62c8c0, input=0x611f60,
seat_name=0x7ffff7bd23db <default_seat_name> "default") at udev-seat.c:85
#4 0x00007ffff7bcc2ed in udev_input_add_devices (udev=<optimized out>,
input=<optimized out>) at udev-seat.c:154
#5 udev_input_enable (libinput=0x611f60) at udev-seat.c:264
#6 0x00007ffff7bcc149 in libinput_udev_assign_seat (libinput=0x611f60,
seat_id=<optimized out>) at udev-seat.c:392
#7 0x0000000000403b4a in open_udev (interface=<optimized out>,
userdata=<optimized out>, seat=<optimized out>, verbose=<optimized out>) at
shared.c:411
#8 tools_open_backend (context=<optimized out>) at shared.c:488
#9 0x0000000000402e56 in main (argc=<optimized out>, argv=<optimized out>) at
libinput-list-devices.c:393</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>