linuxmint / linuxmint/muffin

Crash in _clutter_input_device_reset_scroll_info

Open
#678 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
245
Forks
127
PR merge metrics
No merged PRs in 30d

Description

Distribution

Arch

Package version

5.8.4

Graphics hardware in use

Nvidia 1070 Ti

Frequency

Only occasionally

Bug description

I built a new system. Twice (so far), Cinnamon has crashed shortly after login. It's not reliable, but both times were shortly after login, as I was moving the mouse towards the panel.

System log:

Nov 13 15:49:44 dejarik kernel: cinnamon[850]: segfault at e0 ip 00007f8f74aaa3e4 sp 00007fff45020808 error 4 in libmuffin-clutter-0.so.0.0.0[7f8f74a68000+9b000] likely on CPU 7 (core 7, socket 0)
Nov 13 15:49:44 dejarik kernel: Code: 4c 89 70 10 eb ac 48 8d 15 49 a8 06 00 48 8d 35 f2 be 06 00 48 8d 3d 40 8c 05 00 ff 15 75 b4 0a 00 eb be 0f 1f 00 f3 0f 1e fa <48> 8b 87 e0 00 00 00 48 85 c0 74 25 8b 50 08 85 d2 74 1e 48 8b 00

Possibly related comment: https://github.com/linuxmint/muffin/issues/640#issuecomment-1290118958

Can't tell if related top level: #640

Backtrace:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  _clutter_input_device_reset_scroll_info (device=device@entry=0x0) at ../muffin-5.8.1/clutter/clutter/clutter-input-device.c:1914
Downloading source file /usr/src/debug/muffin/build/../muffin-5.8.1/clutter/clutter/clutter-input-device.c
1914	  if (device->scroll_info == NULL)
[Current thread is 1 (Thread 0x7f8f6fc9efc0 (LWP 850))]
(gdb) bt
#0  _clutter_input_device_reset_scroll_info (device=device@entry=0x0) at ../muffin-5.8.1/clutter/clutter/clutter-input-device.c:1914
#1  0x00007f8f747f7c4c in meta_seat_x11_translate_event (event=0x55ff3dfcbb50, xevent=<optimized out>, seat=<optimized out>)
    at ../muffin-5.8.1/src/backends/x11/meta-seat-x11.c:2310
#2  meta_clutter_backend_x11_translate_event (backend=<optimized out>, native=<optimized out>, event=0x55ff3dfcbb50)
    at ../muffin-5.8.1/src/backends/x11/meta-clutter-backend-x11.c:98
#3  0x00007f8f7487564b in meta_x11_handle_event.isra.0 (xevent=xevent@entry=0x7fff450209e0) at ../muffin-5.8.1/src/backends/x11/meta-event-x11.c:106
#4  0x00007f8f747f62f2 in handle_host_xevent (event=0x7fff450209e0, backend=0x55ff3d5b2410) at ../muffin-5.8.1/src/backends/x11/meta-backend-x11.c:426
#5  x_event_source_dispatch (source=<optimized out>, callback=<optimized out>, user_data=<optimized out>) at ../muffin-5.8.1/src/backends/x11/meta-backend-x11.c:479
#6  0x00007f8f74bb2f69 in g_main_dispatch (context=0x55ff3d5af940) at ../glib/glib/gmain.c:3476
#7  0x00007f8f74c11327 in g_main_context_dispatch_unlocked (context=0x55ff3d5af940) at ../glib/glib/gmain.c:4284
#8  g_main_context_iterate_unlocked.isra.0 (context=0x55ff3d5af940, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349
#9  0x00007f8f74bb3b97 in g_main_loop_run (loop=0x55ff3dcb0990) at ../glib/glib/gmain.c:4551
#10 0x00007f8f74830579 in meta_run () at ../muffin-5.8.1/src/core/main.c:663
#11 0x000055ff3bfc0566 in main (argc=<optimized out>, argv=<optimized out>) at ../cinnamon-5.8.4/src/main.c:404

Core (taken by systemd):
core.cinnamon.1000.9304e690fe9047289fccc8681b4c927d.850.1699908584000000.gz

Steps to reproduce

Log in and move the mouse to the panel?

Expected behavior
Additional information

Arch Linux fully updated 2023-11-23
Intel 9700K
Nvidia 1070 Ti
Gigabyte AORUS FV43U Monitor. Plugged in to the monitor:

  • Logitech G502 wireless mouse
  • Logitech K295 wireless keyboard

Other devices: LG G535 headset (was not turned on - receiver still plugged in). Supersonic SC-1420SB soundbar (not turned on).
Apps set to start on login: Steam, Discord, Solaar
Cinnamon 5.8.4
Muffin 5.8.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with clutter/clutter/clutter-input-device.c at _clutter_input_device_reset_scroll_info and follow its caller in src/backends/x11/meta-seat-x11.c:2310. Review the X11 event path named in the backtrace and try to reproduce the intermittent crash after login while moving the mouse; done means the reported null-device segfault is understood and no longer occurs in that scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.