Dummy sensor backend can block
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
platform-api (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
See the attached gdb output, it's likely that the dummy/test sensor backend is blocking unity8 startup.
(gdb) info threads
Id Target Id Frame
14 Thread 0xb3781410 (LWP 31081) "unity8" 0xb61e1970 in recvmsg () at ../sysdeps/
13 Thread 0xb2f81410 (LWP 31082) "unity8" syscall () at ../sysdeps/
12 Thread 0xb225c410 (LWP 31083) "MirServerThread" 0xb61da4e2 in poll () at ../sysdeps/
11 Thread 0xb18a0410 (LWP 31085) "RPC Thread" 0xb61da4e2 in poll () at ../sysdeps/
10 Thread 0xb0eff410 (LWP 31086) "arch_worker" 0xb4422840 in ?? ()
9 Thread 0xb2523b40 (LWP 31087) "MirServerThread" __libc_do_syscall () at ../sysdeps/
8 Thread 0xb04ff410 (LWP 31088) "SWD-GPU Job" __libc_do_syscall () at ../sysdeps/
7 Thread 0xafcff410 (LWP 31089) "SWD-Frame" __libc_do_syscall () at ../sysdeps/
6 Thread 0xaf301410 (LWP 31090) "Input dispatch" 0xb61da4e2 in poll () at ../sysdeps/
5 Thread 0xaeb01410 (LWP 31091) "Mir/Snapshot" __libc_do_syscall () at ../sysdeps/
4 Thread 0xae301410 (LWP 31092) "Mir/IPC" 0xb61e1132 in epoll_wait () at ../sysdeps/
3 Thread 0xadb01410 (LWP 31093) "Mir/IPC" 0xb61e1132 in epoll_wait () at ../sysdeps/
2 Thread 0xac76d410 (LWP 31094) "unity8" 0xb61d6ae0 in read () at ../sysdeps/
* 1 Thread 0xb6f9f000 (LWP 31079) "unity8" __libc_do_syscall () at ../sysdeps/
Thread 2 (Thread 0xac76d410 (LWP 31094)):
#0 0xffffffff in read () at ../sysdeps/
#1 0xffffffff in SensorControlle
#2 0xffffffff in SensorControlle
#3 0xffffffff in std::thread:
at /build/
#4 0xffffffff in std::thread:
#5 0xffffffff in std::thread:
#6 0xffffffff in std::thread:
#7 0xffffffff in std::(anonymous namespace)
#8 0xffffffff in start_thread (arg=0x0) at pthread_
#9 0xffffffff in () at ../sysdeps/
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: ubuntu-
Uname: Linux 3.4.67 armv7l
ApportVersion: 2.17.2-
Architecture: armhf
Date: Tue Dec 8 15:08:53 2015
InstallationDate: Installed on 2015-12-08 (0 days ago)
InstallationMedia: Ubuntu 15.04 - armhf (20151208-020303)
SourcePackage: platform-api
UpgradeStatus: No upgrade log present (probably fresh install)
Comes from Mock sensor backend, which reads the pipe fifo-$PID
/tmp/sensor-
if nothing feeding that pipe, this will block