<?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>15723</bug_id>
          
          <creation_ts>2025-01-21 15:14:33 +0000</creation_ts>
          <short_desc>Rust based pydantic-core .so file fails to load on target when libstd-rs build with DEBUG_BUILD</short_desc>
          <delta_ts>2026-10-22 15:08:48 +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>devtools / tool chain</component>
          <version>5.0.9</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>NEEDINFO</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ernst Persson">ernstp</reporter>
          <assigned_to name="Ernst Persson">ernstp</assigned_to>
          <cc>deepesh.varatharajan</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sundeep.kokkonda</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100708</commentid>
    <comment_count>0</comment_count>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2025-01-21 15:14:33 +0000</bug_when>
    <thetext>Setup:
Yocto Scarthgap 5.0.7
MACHINE=qemuarm
DEBUG_BUILD = &quot;1&quot;
# Actually all you need is just DEBUG_BUILD:pn-libstd-rs = &quot;1&quot;
Add meta-openembedded with meta-oe and meta-python.

bitbake python3-pydantic-core

What happens:
objdump -TC tmp/work/cortexa*-neon-poky-linux-gnueabi/python3-pydantic-core/*/image/usr/lib/python3.12/site-packages/pydantic_core/_pydantic_core.cpython-312-arm-linux-gnueabihf.so  | grep panic
00000000      D  *UND*	00000000  Base        core::panicking::panic

On target it looks like this:
File &quot;/usr/lib/python3.12/site-packages/pydantic_core/__init__.py&quot;, line 6, in &lt;module&gt;
    from ._pydantic_core import (
ImportError: /usr/lib/python3.12/site-packages/pydantic_core/_pydantic_core.cpython-312-arm-linux-gnueabihf.so: undefined symbol: _ZN4core9panicking5panic17h3dccdbb9a3027529E

It&apos;s absolutely related to https://patchwork.yoctoproject.org/project/oe-core/patch/20211206054504.61115-1-pgowda.cve@gmail.com/#298 , though it&apos;s not exactly the same either...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100718</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-01-23 15:45:53 +0000</bug_when>
    <thetext>Ernst, Thanks for the bug report.
Sundeep will have someone take a look eventually.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100739</commentid>
    <comment_count>2</comment_count>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2025-01-24 11:07:45 +0000</bug_when>
    <thetext>Simply updating pydantic-core with Scarthgap did not solve it.

I tried to reproduce it on master now but could not reproduce it there however.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101968</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-15 18:45:46 +0000</bug_when>
    <thetext>Is this still a problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101975</commentid>
    <comment_count>4</comment_count>
    <who name="Ernst Persson">ernstp</who>
    <bug_when>2025-05-16 10:31:07 +0000</bug_when>
    <thetext>Yes, still happens on Scarthgap.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104217</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-02-10 16:24:53 +0000</bug_when>
    <thetext>Deepesh, Is there an upstream Rust bug to track and focus work on this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107060</commentid>
    <comment_count>6</comment_count>
    <who name="Deepesh Varatharajan">deepesh.varatharajan</who>
    <bug_when>2026-10-14 05:49:05 +0000</bug_when>
    <thetext>Hi,

I tested with the latest Scarthgap sources, adding meta-oe and meta-python on top of oe-core.

In local.conf:

MACHINE = &quot;qemuarm&quot;
DEBUG_BUILD:pn-libstd-rs = &quot;1&quot;

Then ran bitbake python3-pydantic-core and could not reproduce the issue.

Ernst, are you still experiencing this issue, or can we close it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107066</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-10-14 15:04:22 +0000</bug_when>
    <thetext>Ernest, See Deepesh&apos;s question please.

Deepesh, please use &quot;Need Info&quot; state. 
We track that for no response so  issues don&apos;t get forgotten.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>