Bug 15449

Summary: [riscv] libcamera `cam -l` causes `stack smashing detected`
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joel Winarske <joel.winarske>
Component: multimediaAssignee: William Lyu <william.lyu>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Medium CC: meta.mr.watcher, meta.watcher, raj.khem, randy.macleod
Version: unspecified   
Target Milestone: 5.0   
Hardware: Other   
OS: other   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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