<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - infinite loop when lid events are repeated - list item points to itself"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103298#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - infinite loop when lid events are repeated - list item points to itself"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103298">bug 103298</a>
from <span class="vcard"><a class="email" href="mailto:prahal@yahoo.com" title="Alban Browaeys <prahal@yahoo.com>"> <span class="fn">Alban Browaeys</span></a>
</span></b>
<pre>Created <span class=""><a href="attachment.cgi?id=135092" name="attach_135092" title="debug: trigger a core dump on list corruption">attachment 135092</a> <a href="attachment.cgi?id=135092&action=edit" title="debug: trigger a core dump on list corruption">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=103298&attachment=135092'>[review]</a>
debug: trigger a core dump on list corruption
I send this hack to get a coredump / backtrace instead of busy loop to help
other debug this issue. I will investigate anew as time passed and I somehow
lost track of the in and outs of this fix.
The core of the debug
with this debug patch I get these journald entries and the adhoc coredumpctl
backtrace.
Note that 0x5647705b6c20 is added 0x564770541940 twice in a raw.
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device
init event listener - 0x564770541940 which has prev (nil) and next (nil)
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - to 0x564770545110
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - 0x5647705a72e0 which has prev (nil) and next (nil)
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device
POST add event listener - 0x5647705a72e0 which has prev 0x564770545110 and
next 0x564770545110
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - to 0x5647705b6c20
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - 0x5647705a71a8 which has prev (nil) and next (nil)
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device
POST add event listener - 0x5647705a71a8 which has prev 0x5647705b6c20 and
next 0x5647705b6c20
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - to 0x56477059c930
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - 0x5647705a70f8 which has prev (nil) and next (nil)
sept. 27 02:32:55 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device
POST add event listener - 0x5647705a70f8 which has prev 0x56477059c930 and
next 0x56477059c930
sept. 27 02:33:14 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - to 0x5647705b6c20
sept. 27 02:33:14 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - 0x564770541940 which has prev 0x564770541940 and next
0x564770541940
sept. 27 02:33:14 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device
POST add event listener - 0x564770541940 which has prev 0x5647705b6c20 and
next 0x5647705a71a8
sept. 27 02:33:18 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - to 0x5647705b6c20
sept. 27 02:33:18 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device PRE
add event listener - 0x564770541940 which has prev 0x5647705b6c20 and next
0x5647705a71a8
sept. 27 02:33:18 cyclope org.gnome.Shell.desktop[14480]: LIBINPUT : device
POST add event listener - 0x564770541940 which has prev 0x564770541940 and
next 0x564770541940
PID: 14799 (gnome-shell)
UID: 1000 (prahal)
GID: 1000 (prahal)
Signal: 6 (ABRT)
Timestamp: Wed 2017-09-27 02:33:18 CEST (1min 1s ago)
Command Line: /usr/bin/gnome-shell
Executable: /usr/bin/gnome-shell
Control Group: /user.slice/user-1000.slice/session-396.scope
Unit: session-396.scope
Slice: user-1000.slice
Session: 396
Owner UID: 1000 (prahal)
Boot ID: c29df59057834e2bb77ae569ae135cfb
Machine ID: 2b483dcbcecb6729df407c5b5382b0d1
Hostname: cyclope
Storage:
/var/lib/systemd/coredump/core.gnome-shell.1000.c29df59057834e2bb77ae569ae135cfb.14799.1506472398000000.lz4
Message: Process 14799 (gnome-shell) of user 1000 dumped core.
Stack trace of thread 14799:
#0 0x00007fd6b1220fff __GI_raise (libc.so.6)
#1 0x00007fd6b122242a __GI_abort (libc.so.6)
#2 0x00007fd6a859cea4 create_dump (libinput.so.10)
#3 0x00007fd6a85a626b lid_switch_process_switch
(libinput.so.10)
#4 0x00007fd6a85a10a9 evdev_process_event (libinput.so.10)
#5 0x00007fd6a859cd2f libinput_dispatch (libinput.so.10)
#6 0x00007fd6b22feeac dispatch_libinput
(libmutter-clutter-1.0.so)
#7 0x00007fd6b17f2f67 g_main_dispatch (libglib-2.0.so.0)
#8 0x00007fd6b17f31a0 g_main_context_iterate
(libglib-2.0.so.0)
#9 0x00007fd6b17f34b2 g_main_loop_run (libglib-2.0.so.0)
#10 0x00007fd6b2fa6a8c meta_run (libmutter.so.0)
#11 0x000056476f0224b7 main (gnome-shell)
#12 0x00007fd6b120e2e1 __libc_start_main (libc.so.6)
#13 0x000056476f0225fa _start (gnome-shell)
Thread 1 (Thread 0x7fd6b47a9a80 (LWP 14799)):
#0 0x00007fd6b1220fff in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007fd6b122242a in __GI_abort () at abort.c:89
#2 0x00007fd6a859cea4 in create_dump () at libinput.c:2013
#3 0x00007fd6a859cea4 in libinput_device_add_event_listener (device=<optimized
out>, listener=0x564770541940, notify_func=<optimized out>,
notify_func_data=<optimized out>) at libinput.c:2047
#4 0x00007fd6a85a626b in lid_switch_process_switch (e=<optimized out>,
e=<optimized out>, time=105062899623, device=0x5647705450f0,
dispatch=0x5647705418f0) at evdev-lid.c:135
#5 0x00007fd6a85a626b in lid_switch_process (evdev_dispatch=0x5647705418f0,
device=0x5647705450f0, event=<optimized out>, time=105062899623) at
evdev-lid.c:155
#6 0x00007fd6a85a10a9 in evdev_process_event (e=0x7ffd18541870,
device=0x5647705450f0) at evdev.c:1904
#7 0x00007fd6a85a10a9 in evdev_device_dispatch_one (ev=0x7ffd18541870,
device=0x5647705450f0) at evdev.c:1912
#8 0x00007fd6a85a10a9 in evdev_device_dispatch (data=0x5647705450f0) at
evdev.c:1971
#9 0x00007fd6a859cd2f in libinput_dispatch (libinput=0x56477052bdf0) at
libinput.c:1998
#10 0x00007fd6b22feeac in dispatch_libinput (manager_evdev=0x56477052a8c0
[ClutterDeviceManagerEvdev]) at evdev/clutter-device-manager-evdev.c:788
#11 0x00007fd6b22feeac in clutter_event_dispatch
(g_source=g_source@entry=0x5647705d7de0, callback=<optimized out>,
user_data=<optimized out>) at evdev/clutter-device-manager-evdev.c:810
#12 0x00007fd6b17f2f67 in g_main_dispatch (context=0x56477035bc00) at
../../../../glib/gmain.c:3148
#13 0x00007fd6b17f2f67 in g_main_context_dispatch
(context=context@entry=0x56477035bc00) at ../../../../glib/gmain.c:3813
#14 0x00007fd6b17f31a0 in g_main_context_iterate (context=0x56477035bc00,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../../../../glib/gmain.c:3886
#15 0x00007fd6b17f34b2 in g_main_loop_run (loop=0x5647706054b0) at
../../../../glib/gmain.c:4082
#16 0x00007fd6b2fa6a8c in meta_run () at core/main.c:572
#17 0x000056476f0224b7 in main (argc=<optimized out>, argv=<optimized out>) at
main.c:471</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>