[libcamera-devel] [PATCH v2 0/1] Fix SIGSEGV in ChromeOS camera3 test

Hirokazu Honda hiroh at chromium.org
Wed May 26 10:46:27 CEST 2021


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.

Change in v2:
- Keep src/android/cros/camera3_hal.cpp built independently by including
  android_includes and libcamera_includes.


Hirokazu Honda (1):
  android: CameraHalManager: Create a static object dynamically

 src/android/camera3_hal.cpp        | 13 ++++++-------
 src/android/camera_hal_manager.cpp |  7 +++++++
 src/android/camera_hal_manager.h   |  5 ++++-
 src/android/cros/camera3_hal.cpp   |  3 +++
 src/android/cros/meson.build       |  3 ++-
 5 files changed, 22 insertions(+), 9 deletions(-)

--
2.31.1.818.g46aad6cb9e-goog


More information about the libcamera-devel mailing list