<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15449</bug_id>
          
          <creation_ts>2024-03-20 18:41:08 +0000</creation_ts>
          <short_desc>[riscv] libcamera `cam -l` causes `stack smashing detected`</short_desc>
          <delta_ts>2024-03-25 01:36:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>multimedia</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>5.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joel Winarske">joel.winarske</reporter>
          <assigned_to name="William Lyu">william.lyu</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98543</commentid>
    <comment_count>0</comment_count>
    <who name="Joel Winarske">joel.winarske</who>
    <bug_when>2024-03-20 18:41:08 +0000</bug_when>
    <thetext>In master there is a problem running the libcamera &quot;cam&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98558</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-03-21 14:47:29 +0000</bug_when>
    <thetext>Not an oe-core bug but William, could you take care of it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98597</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2024-03-22 22:14:36 +0000</bug_when>
    <thetext>@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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98599</commentid>
    <comment_count>3</comment_count>
    <who name="Joel Winarske">joel.winarske</who>
    <bug_when>2024-03-23 15:16:14 +0000</bug_when>
    <thetext>Patch resolves issue:
https://lore.kernel.org/openembedded-devel/20240323065503.4149463-1-raj.khem@gmail.com/T/#u</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98600</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2024-03-25 01:36:21 +0000</bug_when>
    <thetext>Patch is now in meta-openembedded master branch


https://git.openembedded.org/meta-openembedded/commit/?id=c17d8d9de484b09ad634751d2b94a123c0b3e064</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>