crash in global constructor

Bug #1999300 reported by Christian Rauch
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libcamera (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned

Bug Description

An application built with libcamera-dev crashes instantly on start in a global constructor. This can be reproduced by the 'cam' example in package libcamera-tools (run 'cam -l') or via this simple example;

  #include <libcamera/libcamera.h>
  int main(int argc, char **argv) {
    libcamera::CameraManager camera_manager;
  }

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libcamera0 0~git20200629+e7aa92a-9
ProcVersionSignature: Ubuntu 5.15.0-56.62-generic 5.15.64
Uname: Linux 5.15.0-56-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Dec 10 01:21:46 2022
InstallationDate: Installed on 2022-06-25 (167 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
SourcePackage: libcamera
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Christian Rauch (christianrauch) wrote :
Revision history for this message
Dylan Aïssi (daissi) wrote :

Fixed in Lunar with libcamera 0.0.2.

cam -l doesn't crash anymore.

Changed in libcamera (Ubuntu):
status: New → Fix Released
Revision history for this message
Christian Rauch (christianrauch) wrote :

This was reported against jammy (see "DistroRelease: Ubuntu 22.04") which still has the same version and issues. The issue has not been fixed.

Changed in libcamera (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Dylan Aïssi (daissi) wrote :

The libcamera version in Jammy is a almost 3 years old snaptshot of libcamera because at this time, there was no release of libcamera. libcamera is in active development with an API not yet stabilized that means development around libcamera should at least target a released version of libcamera, so the version in Jammy is probably is unusable. Moreover, in Ubuntu repositories, libcamera is only used by pipewire but only since Lunar. It is more likely that this bug won't be fixed in Jammy. You should consider another way to get a more recent libcamera.

Changed in libcamera (Ubuntu Jammy):
status: New → Confirmed
Changed in libcamera (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Christian Rauch (christianrauch) wrote :

What does this mean for Ubuntu 22.04? The version of libcamera in 22.04 is broken and unusable. Is it going to stay this way? libcamera should either be removed entirely from the 22.04 repos or updated to a working version.

Keeping this broken version around does not make sense to me. Are there reasons why the broken version has to be kept in the repos?

Revision history for this message
Dylan Aïssi (daissi) wrote :

You can try to ask for an SRU https://wiki.ubuntu.com/StableReleaseUpdates but because libcamera in 22.04 is something low priority, I doubt someone will work on it. Or if you really want it to be fixed, the best way is to prepare the patch yourself and find a sponsor. It is always delicate to update software in a stable release (in opposite to rolling releases).

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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