Mir

Stressed Mir server terminates on input

Bug #1407935 reported by Alan Griffiths
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
New
Undecided
Unassigned

Bug Description

Running a Mir server with the mir_stress client causes a crash when input events occur:

$ sudo gdb --args bin/mir_demo_server --vt 1 --test-client bin/mir_stress

(move the cursor)

Program received signal SIGTERM, Terminated.
[Switching to Thread 0x7fffe67fc700 (LWP 10321)]
0x00007ffff6e4bb5b in raise (sig=15) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
37 ../nptl/sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff6e4bb5b in raise (sig=15) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
#1 0x00007ffff77892f8 in mir::terminate_with_current_exception ()
    at /home/alan/display_server/mir/src/server/run_mir.cpp:126
#2 0x00007ffff799927c in mir_input::Thread::run(char const*, int, unsigned long)::{lambda()#1}::operator()() const (
    __closure=0x8b09b8) at /home/alan/display_server/mir/3rd_party/android-deps/std/Thread.h:74
#3 0x00007ffff79ac2e6 in std::_Bind_simple<mir_input::Thread::run(char const*, int, unsigned long)::{lambda()#1} ()>::_M_invoke<>(std::_Index_tuple<>) (this=0x8b09b8) at /usr/include/c++/4.9/functional:1700
#4 0x00007ffff79ac1c0 in std::_Bind_simple<mir_input::Thread::run(char const*, int, unsigned long)::{lambda()#1} ()>::operator()() (this=0x8b09b8) at /usr/include/c++/4.9/functional:1688
#5 0x00007ffff79ac0ca in std::thread::_Impl<std::_Bind_simple<mir_input::Thread::run(char const*, int, unsigned long)::{lambda()#1} ()> >::_M_run() (this=0x8b09a0) at /usr/include/c++/4.9/thread:115
#6 0x00007ffff6be7dd0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff6e440a5 in start_thread (arg=0x7fffe67fc700) at pthread_create.c:309
#8 0x00007ffff664b77d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

(gdb) c
Continuing.
[1420544340.174200] (II) server_example_test_client.cpp: Terminating client
[1420544340.174324] (II) Server: Stopping
[Thread 0x7fffe67fc700 (LWP 10321) exited]
[Thread 0x7fffe6ffd700 (LWP 10320) exited]
[Thread 0x7fffdffff700 (LWP 10318) exited]
[Thread 0x7fffe7fff700 (LWP 10317) exited]
[Thread 0x7fffeca1a700 (LWP 10315) exited]
[Thread 0x7fffe77fe700 (LWP 10319) exited]
ERROR: /home/alan/display_server/mir/src/server/input/android/android_input_registrar.cpp(104): Throw in function virtual android::sp<android::InputWindowHandle> mir::input::android::InputRegistrar::handle_for_channel(const std::shared_ptr<const mir::input::InputChannel>&)
Dynamic exception type: N5boost16exception_detail10clone_implINS0_19error_info_injectorISt11logic_errorEEEE
std::exception::what: Requesting handle for an unregistered channel

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.