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

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

Message

Hirokazu Honda May 26, 2021, 8:46 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.

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