[libcamera-devel,RFC,0/2] Fix SIGSEGV in ChromeOS camera3 test
mbox series

Message ID 20210524115640.2334778-1-hiroh@chromium.org
Headers show
Series
  • Fix SIGSEGV in ChromeOS camera3 test
Related show

Message

Hirokazu Honda May 24, 2021, 11:56 a.m. UTC
SIGSEV is caused in the termination of ChromeOS camera3 test. It is
because CameraHalManager touches, through CameraManager, other static
objects that have been destroyed. This series fixes the issue by
destroying CameraHalManager in tear_down() on ChromeOS or leaking it
on other platforms.

Hirokazu Honda (2):
  android: Move ChromeOS specific Camera HAL calls to camera3_hal.cpp
  android: CameraHalManager: Create a static object dynamically

 src/android/camera3_hal.cpp        | 41 +++++++++++++++++++++++++-----
 src/android/camera_hal_manager.cpp |  7 +++++
 src/android/camera_hal_manager.h   |  5 +++-
 src/android/cros/camera3_hal.cpp   | 21 ---------------
 src/android/cros/meson.build       | 17 -------------
 src/android/meson.build            |  3 +--
 6 files changed, 46 insertions(+), 48 deletions(-)
 delete mode 100644 src/android/cros/camera3_hal.cpp
 delete mode 100644 src/android/cros/meson.build

--
2.31.1.818.g46aad6cb9e-goog