Bug 15449 - [riscv] libcamera `cam -l` causes `stack smashing detected`
Summary: [riscv] libcamera `cam -l` causes `stack smashing detected`
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: multimedia (show other bugs)
Version: unspecified
Hardware: Other other
: Medium major
Target Milestone: 5.0
Assignee: William Lyu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-03-20 18:41 UTC by Joel Winarske
Modified: 2024-03-25 01:36 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Winarske 2024-03-20 18:41:08 UTC
In master there is a problem running the libcamera "cam" app on a RISC-V device:

*** stack smashing detected ***: terminated

If I remove the patches in the libcamera recipe, it builds and runs on target without issue.

libcamera bug has the details:
https://bugs.libcamera.org/show_bug.cgi?id=214
Comment 1 Randy MacLeod 2024-03-21 14:47:29 UTC
Not an oe-core bug but William, could you take care of it?
Comment 2 Khem Raj 2024-03-22 22:14:36 UTC
@joel, how is cam invoked to reach this issue, I can see one problem which is a segfault which I think I understand and will soon fix it, however, it may not be the problem you are seeing, so I just want to be sure that we can reproduce the problem you are seeing. So please describe the steps to reproduce it.
Comment 4 Khem Raj 2024-03-25 01:36:21 UTC
Patch is now in meta-openembedded master branch


https://git.openembedded.org/meta-openembedded/commit/?id=c17d8d9de484b09ad634751d2b94a123c0b3e064