<?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>15689</bug_id>
          
          <creation_ts>2024-12-12 09:35:16 +0000</creation_ts>
          <short_desc>AB-INT: bb.process.CmdError: Cannot allocate memory</short_desc>
          <delta_ts>2025-05-29 14:54:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</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>100409</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-12-12 09:35:16 +0000</bug_when>
    <thetext>&gt;   2117 ERROR: git-native-2.47.0-r0 do_create_package_spdx_setscene: Error executing a python function in exec_func_python() autogenerated:
&gt;   2118 
&gt;   2119 The stack trace of python calls that resulted in this exception/failure was:
&gt;   2120 File: &apos;exec_func_python() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
&gt;   2121      0001:
&gt;   2122  *** 0002:do_create_package_spdx_setscene(d)
&gt;   2123      0003:
&gt;   2124 File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/meta/classes/create-spdx-3.0.bbclass&apos;, lineno: 174, function: do_create_package_spdx_setscene
&gt;   2125      0170:do_create_package_spdx[sstate-outputdirs] = &quot;${DEPLOY_DIR_SPDX}&quot;
&gt;   2126      0171:do_create_package_spdx[file-checksums] += &quot;${SPDX3_LIB_DEP_FILES}&quot;
&gt;   2127      0172:
&gt;   2128      0173:python do_create_package_spdx_setscene () {
&gt;   2129  *** 0174:    sstate_setscene(d)
&gt;   2130      0175:}
&gt;   2131      0176:addtask do_create_package_spdx_setscene
&gt;   2132      0177:
&gt;   2133      0178:do_create_package_spdx[dirs] = &quot;${SPDXRUNTIMEDEPLOY}&quot;
&gt;   2134 File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/meta/classes-global/sstate.bbclass&apos;, lineno: 758, function: sstate_setscene
&gt;   2135      0754:            pass
&gt;   2136      0755:
&gt;   2137      0756:def sstate_setscene(d):
&gt;   2138      0757:    shared_state = sstate_state_fromvars(d)
&gt;   2139  *** 0758:    accelerate = sstate_installpkg(shared_state, d)
&gt;   2140      0759:    if not accelerate:
&gt;   2141      0760:        msg = &quot;No sstate archive obtainable, will run full task instead.&quot;
&gt;   2142      0761:        bb.warn(msg)
&gt;   2143      0762:        raise bb.BBHandledException(msg)
&gt;   2144 File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/meta/classes-global/sstate.bbclass&apos;, lineno: 398, function: sstate_installpkg
&gt;   2145      0394:    d.setVar(&apos;SSTATE_FIXMEDIR&apos;, ss[&apos;fixmedir&apos;])
&gt;   2146      0395:
&gt;   2147      0396:    for f in (d.getVar(&apos;SSTATEPREINSTFUNCS&apos;) or &apos;&apos;).split() + [&apos;sstate_unpack_package&apos;]:
&gt;   2148      0397:        # All hooks should run in the SSTATE_INSTDIR
&gt;   2149  *** 0398:        bb.build.exec_func(f, d, (sstateinst,))
&gt;   2150      0399:
&gt;   2151      0400:    return sstate_installpkgdir(ss, d)
&gt;   2152      0401:
&gt;   2153      0402:def sstate_installpkgdir(ss, d):
&gt;   2154 File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/bitbake/lib/bb/build.py&apos;, lineno: 262, function: exec_func
&gt;   2155      0258:    with bb.utils.fileslocked(lockfiles):
&gt;   2156      0259:        if ispython:
&gt;   2157      0260:            exec_func_python(func, d, runfile, cwd=adir)
&gt;   2158      0261:        else:
&gt;   2159  *** 0262:            exec_func_shell(func, d, runfile, cwd=adir)
&gt;   2160      0263:
&gt;   2161      0264:    try:
&gt;   2162      0265:        curcwd = os.getcwd()
&gt;   2163      0266:    except:
&gt;   2164 File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/bitbake/lib/bb/build.py&apos;, lineno: 529, function: exec_func_shell
&gt;   2165      0525:    with open(fifopath, &apos;r+b&apos;, buffering=0) as fifo:
&gt;   2166      0526:        try:
&gt;   2167      0527:            bb.debug(2, &quot;Executing shell function %s&quot; % func)
&gt;   2168      0528:            with open(os.devnull, &apos;r+&apos;) as stdin, logfile:
&gt;   2169  *** 0529:                bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
&gt;   2170      0530:        except bb.process.ExecutionError as exe:
&gt;   2171      0531:            # Find the backtrace that the shell trap generated
&gt;   2172      0532:            backtrace_marker_regex = re.compile(r&quot;WARNING: Backtrace \(BB generated script\)&quot;)
&gt;   2173      0533:            stdout_lines = (exe.stdout or &quot;&quot;).split(&quot;\n&quot;)
&gt;   2174 File: &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/bitbake/lib/bb/process.py&apos;, lineno: 174, function: run
&gt;   2175      0170:    except OSError as exc:
&gt;   2176      0171:        if exc.errno == 2:
&gt;   2177      0172:            raise NotFoundError(cmd)
&gt;   2178      0173:        else:
&gt;   2179  *** 0174:            raise CmdError(cmd, exc)
&gt;   2180      0175:
&gt;   2181      0176:    if log:
&gt;   2182      0177:        stdout, stderr = _logged_communicate(pipe, log, input, extrafiles)
&gt;   2183      0178:    else:
&gt;   2184 Exception: bb.process.CmdError: Execution of &apos;/srv/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-2771838/tmp/work/x86_64-linux/git-native/2.47.0/temp/run.sstat
&gt;   2184 e_unpack_package.171609&apos; failed: [Errno 12] Cannot allocate memory

https://valkyrie.yoctoproject.org/#/builders/76/builds/521/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100411</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2024-12-12 09:53:16 +0000</bug_when>
    <thetext>oe-selftest-centos rocky9-vk-2 mathieu/master-next completed at 2024-12-01T17:18:25Z
https://valkyrie.yoctoproject.org/#/builders/76/builds/521/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100428</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-12-12 15:50:00 +0000</bug_when>
    <thetext>Let&apos;s see if this happens again.
It would be nice to a utility to snapshot what was happening on the build host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100429</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2024-12-12 15:52:25 +0000</bug_when>
    <thetext>Looking at the logs for rocky9-vk-2 there didn&apos;t appear to be anything else other than indexing running at the time which makes this all the more strange.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100524</commentid>
    <comment_count>4</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-01-03 12:09:15 +0000</bug_when>
    <thetext>Not sure this is the same one: same issue with failed memory allocation, but a
completely different place in the code.

musl-qemux86-64 stream9-vk-1 master completed at 2024-12-29T01:13:19Z
https://valkyrie.yoctoproject.org/#/builders/3/builds/738/steps/11/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100894</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-02-10 13:02:03 +0000</bug_when>
    <thetext>oe-selftest-centos alma9-vk-1 master completed at 2025-02-08T02:31:18Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/76/builds/932/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101722</commentid>
    <comment_count>6</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-04-24 14:13:58 +0000</bug_when>
    <thetext>qemuppc alma9-vk-2 stable/kirkstone-nut completed at 2025-03-20T15:47:43Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/31/builds/1215/steps/18/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101825</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-01 14:07:09 +0000</bug_when>
    <thetext>Bulk move of all unassigned 5.2 medium importance bugs to 5.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101978</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-05-16 12:32:02 +0000</bug_when>
    <thetext>oe-selftest-fedora rocky9-vk-3 master-next completed at 2025-05-13T17:35:58Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/1495/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102095</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-29 14:54:57 +0000</bug_when>
    <thetext>We think this was diffoscope abusing RAM usage which is now limited.
Re-open if seen again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>