Mir-on-Mir deadlocks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
High
|
Alan Griffiths |
Bug Description
Running lp:mir on Zesty: lockup in miral-shell.
1. Use mir_demo_shell as a host:
$ sudo mir_demo_server --arw-file --vt 4 --window-manager system-compositor
2. Run miral-shell as a guest:
$ miral-app --host /tmp/mir_socket
3. Start egltriangle & eglplasma and start switching, resizing, maximizing etc. After a while it seems the "RPC thread" starts making blocking calls to the client API.
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f1811eafc80 (LWP 4525) "miral-shell" 0x00007f181036e18d in poll () at ../sysdeps/
2 Thread 0x7f180a305700 (LWP 4526) "RPC Thread" pthread_
at ../sysdeps/
3 Thread 0x7f1803fff700 (LWP 4532) "Mir/Snapshot" pthread_
at ../sysdeps/
4 Thread 0x7f18037fe700 (LWP 4533) "Mir/Comp" pthread_
at ../sysdeps/
5 Thread 0x7f1802ffd700 (LWP 4534) "Mir/Input Reade" 0x00007f181036e18d in poll () at ../sysdeps/
6 Thread 0x7f18027fc700 (LWP 4535) "Mir/IPC" pthread_
at ../sysdeps/
7 Thread 0x7f1801ffb700 (LWP 4536) "Mir/IPC" pthread_
at ../sysdeps/
8 Thread 0x7f18017fa700 (LWP 4537) "RPC Thread" 0x00007f181036e18d in poll () at ../sysdeps/
9 Thread 0x7f1800ff9700 (LWP 4538) "miral-shell" pthread_
at ../sysdeps/
(gdb) t 2
[Switching to thread 2 (Thread 0x7f180a305700 (LWP 4526))]
#0 pthread_
185 ../sysdeps/
(gdb) bt
#0 0x00007f180f842510 in pthread_
#1 0x00007f181090580c in std::condition_
#2 0x00007f1810e3c18b in wait () at /usr/include/
#3 0x00007f1810e3c18b in wait_for_result (this=0x7f180a3
#4 0x00007f1810e3c18b in mir_connection_
#5 0x00007f180ffc4f67 in set_cursor_image (image=..., this=0x55c1dbfb
at ./src/server/
#6 0x00007f180ffc4f67 in set_cursor_image (this=0x55c1dbd
at ./src/server/
#7 0x00007f180ffcc076 in mir::input:
#8 0x00007f180ff2487c in update_cursor_image (this=0x55c1dbe
#9 0x00007f180ff3c1c3 in std::function<void (std::shared_
#10 0x00007f180ff3c1c3 in for_each (this=<optimised out>, f=...) at ./src/include/
#11 0x00007f180ff3cf11 in mir::scene:
at ./src/server/
#12 0x00007f1811aaf378 in miral::
#13 0x00007f1811abe071 in miral::
#14 0x00007f1811abb507 in miral::
#15 0x00007f1811abe831 in miral::
Related branches
- Brandon Schaefer (community): Approve
- Andreas Pokorny (community): Approve
- Mir CI Bot: Approve (continuous-integration)
-
Diff: 193 lines (+82/-12)2 files modifiedsrc/server/graphics/nested/input_platform.cpp (+77/-12)
tests/unit-tests/input/test_nested_input_platform.cpp (+5/-0)
tags: | added: nested |
Changed in mir: | |
status: | Fix Committed → Fix Released |
Fix committed into lp:mir at revision None, scheduled for release in mir, milestone 0.27.0