<?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>14772</bug_id>
          
          <creation_ts>2022-03-31 19:05:31 +0000</creation_ts>
          <short_desc>ResourceWarning: Enable tracemalloc to get the object allocation traceback</short_desc>
          <delta_ts>2022-04-12 21:28:19 +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>core</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>normal</bug_severity>
          <target_milestone>4.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Martin Jansa">Martin.Jansa</assigned_to>
          <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>92906</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2022-03-31 19:05:31 +0000</bug_when>
    <thetext>I have started to get this warning on master lately in do_rootfs tasks, I am using archlinux with Python 3.10.4

openembedded-core/meta/classes/license_image.bbclass:23: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=&apos;/mnt/b/yoe/master/build/tmp/deploy/licenses/yoe-installer-image-raspberrypi4-64-20220331174313/package.manifest&apos; mode=&apos;w+&apos; encoding=&apos;UTF-8&apos;&gt;
  &apos;w+&apos;).write(output)
ResourceWarning: Enable tracemalloc to get the object allocation traceback


=====================

/mnt/b/yoe/master/sources/openembedded-core/meta/lib/oe/rootfs.py:331: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=&apos;/mnt/b/yoe/master/build/tmp/pkgdata/raspberrypi4-64/kernel-depmod/kernel-abiversion&apos; mode=&apos;r&apos; encoding=&apos;UTF-8&apos;&gt;
  kernel_ver = open(kernel_abi_ver_file).read().strip(&apos; \n&apos;)
ResourceWarning: Enable tracemalloc to get the object allocation traceback</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92938</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2022-04-07 14:30:45 +0000</bug_when>
    <thetext>I&apos;ve noticed this today as well and fix sent as:
https://lists.openembedded.org/g/openembedded-core/message/164109</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92940</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-04-07 14:36:22 +0000</bug_when>
    <thetext>Patch incoming... Thanks Martin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93015</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-12 21:28:19 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=632c83ab787211ef927a999f4ecde1d3ce40621d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>