<?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>14319</bug_id>
          
          <creation_ts>2021-03-23 10:05:59 +0000</creation_ts>
          <short_desc>xz memory allocation failure during do_populate_sdk</short_desc>
          <delta_ts>2021-03-25 14:57:20 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14310</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Oleksiy Obitotskyy">oobitots</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>changqing.li</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>89693</commentid>
    <comment_count>0</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2021-03-23 10:05:59 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/3211

ERROR: buildtools-tarball-1.0-r0 do_populate_sdk: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:do_populate_sdk(d)
     0003:
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/meta/classes/populate_sdk_base.bbclass&apos;, lineno: 172, function: do_populate_sdk
     0168:
     0169:    populate_sdk(d)
     0170:
     0171:fakeroot python do_populate_sdk() {
 *** 0172:    populate_sdk_common(d)
     0173:}
     0174:SSTATETASKS += &quot;do_populate_sdk&quot;
     0175:SSTATE_SKIP_CREATION_task-populate-sdk = &apos;1&apos;
     0176:do_populate_sdk[cleandirs] = &quot;${SDKDEPLOYDIR}&quot;
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/meta/classes/populate_sdk_base.bbclass&apos;, lineno: 169, function: populate_sdk_common
     0165:                    manifest_type=Manifest.MANIFEST_TYPE_SDK_HOST)
     0166:    create_manifest(d, manifest_dir=d.getVar(&apos;SDK_DIR&apos;),
     0167:                    manifest_type=Manifest.MANIFEST_TYPE_SDK_TARGET)
     0168:
 *** 0169:    populate_sdk(d)
     0170:
     0171:fakeroot python do_populate_sdk() {
     0172:    populate_sdk_common(d)
     0173:}
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/meta/lib/oe/sdk.py&apos;, lineno: 129, function: populate_sdk
     0125:
     0126:    img_type = d.getVar(&apos;IMAGE_PKGTYPE&apos;)
     0127:    import importlib
     0128:    cls = importlib.import_module(&apos;oe.package_manager.&apos; + img_type + &apos;.sdk&apos;)
 *** 0129:    cls.PkgSdk(d, manifest_dir).populate()
     0130:
     0131:    os.environ.clear()
     0132:    os.environ.update(env_bkp)
     0133:
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/meta/lib/oe/sdk.py&apos;, lineno: 58, function: populate
     0054:                                 self.sysconfdir, &quot;ld.so.cache&quot;)
     0055:        self.mkdirhier(os.path.dirname(link_name))
     0056:        os.symlink(&quot;/etc/ld.so.cache&quot;, link_name)
     0057:
 *** 0058:        execute_pre_post_process(self.d, self.d.getVar(&apos;SDK_POSTPROCESS_COMMAND&apos;))
     0059:
     0060:    def movefile(self, sourcefile, destdir):
     0061:        try:
     0062:            # FIXME: this check of movefile&apos;s return code to None should be
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/meta/lib/oe/utils.py&apos;, lineno: 263, function: execute_pre_post_process
     0259:    for cmd in cmds.strip().split(&apos;;&apos;):
     0260:        cmd = cmd.strip()
     0261:        if cmd != &apos;&apos;:
     0262:            bb.note(&quot;Executing %s ...&quot; % cmd)
 *** 0263:            bb.build.exec_func(cmd, d)
     0264:
     0265:# For each item in items, call the function &apos;target&apos; with item as the first
     0266:# argument, extraargs as the other arguments and handle any exceptions in the
     0267:# parent thread
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/bitbake/lib/bb/build.py&apos;, lineno: 256, function: exec_func
     0252:    with bb.utils.fileslocked(lockfiles):
     0253:        if ispython:
     0254:            exec_func_python(func, d, runfile, cwd=adir)
     0255:        else:
 *** 0256:            exec_func_shell(func, d, runfile, cwd=adir)
     0257:
     0258:    try:
     0259:        curcwd = os.getcwd()
     0260:    except:
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/bitbake/lib/bb/build.py&apos;, lineno: 503, function: exec_func_shell
     0499:    with open(fifopath, &apos;r+b&apos;, buffering=0) as fifo:
     0500:        try:
     0501:            bb.debug(2, &quot;Executing shell function %s&quot; % func)
     0502:            with open(os.devnull, &apos;r+&apos;) as stdin, logfile:
 *** 0503:                bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])
     0504:        except bb.process.ExecutionError as exe:
     0505:            # Find the backtrace that the shell trap generated
     0506:            backtrace_marker_regex = re.compile(r&quot;WARNING: Backtrace \(BB generated script\)&quot;)
     0507:            stdout_lines = (exe.stdout or &quot;&quot;).split(&quot;\n&quot;)
File: &apos;/home/pokybuild/yocto-worker/qemumips64/build/bitbake/lib/bb/process.py&apos;, lineno: 184, function: run
     0180:        if not stderr is None:
     0181:            stderr = stderr.decode(&quot;utf-8&quot;)
     0182:
     0183:    if pipe.returncode != 0:
 *** 0184:        raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
     0185:    return stdout, stderr
Exception: bb.process.ExecutionError: Execution of &apos;/home/pokybuild/yocto-worker/qemumips64/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/temp/run.archive_sdk.29599&apos; failed with exit code 1:
xz: Adjusted the number of threads from 56 to 51 to not exceed the memory usage limit of 64,418 MiB
xz: (stdin): Cannot allocate memory
WARNING: exit code 1 from a shell command.


NOTE: recipe core-image-minimal-1.0-r0: task do_sdk_depends: Started
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/qemumips64/build/build/tmp/work/x86_64-nativesdk-pokysdk-linux/buildtools-tarball/1.0-r0/temp/log.do_populate_sdk.29599
NOTE: recipe buildtools-tarball-1.0-r0: task do_populate_sdk: Failed
ERROR: Task (/home/pokybuild/yocto-worker/qemumips64/build/meta/recipes-core/meta/buildtools-tarball.bb:do_populate_sdk) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89694</commentid>
    <comment_count>1</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2021-03-23 10:07:55 +0000</bug_when>
    <thetext>xz memory failure https://bugzilla.yoctoproject.org/show_bug.cgi?id=14310</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89696</commentid>
    <comment_count>2</comment_count>
    <who name="Oleksiy Obitotskyy">oobitots</who>
    <bug_when>2021-03-23 10:34:49 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/3211/steps/16/logs/stdio

ERROR: core-image-minimal-1.0-r0 do_testsdkext: The toolchain ext /home/pokybuild/yocto-worker/qemumips64/build/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-mips64r2-qemumips64-toolchain-ext-3.2+snapshot.sh is not built. Build it before running the tests: &apos;bitbake &lt;image&gt; -c populate_sdk_ext&apos; .
ERROR: core-image-sato-1.0-r0 do_testsdkext: The toolchain ext /home/pokybuild/yocto-worker/qemumips64/build/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-sato-mips64r2-qemumips64-toolchain-ext-3.2+snapshot.sh is not built. Build it before running the tests: &apos;bitbake &lt;image&gt; -c populate_sdk_ext&apos; .
ERROR: core-image-sato-1.0-r0 do_testsdk: The toolchain /home/pokybuild/yocto-worker/qemumips64/build/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-sato-mips64r2-qemumips64-toolchain-3.2+snapshot.sh is not built. Build it before running the tests: &apos;bitbake &lt;image&gt; -c populate_sdk&apos; .
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/qemumips64/build/build/tmp/work/qemumips64-poky-linux/core-image-sato/1.0-r0/temp/log.do_testsdk.21342
NOTE: recipe core-image-sato-1.0-r0: task do_testsdk: Failed
ERROR: Task (/home/pokybuild/yocto-worker/qemumips64/build/meta/recipes-sato/images/core-image-sato.bb:do_testsdk) failed with exit code &apos;1&apos;
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/qemumips64/build/build/tmp/work/qemumips64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_testsdkext.21340
NOTE: recipe core-image-minimal-1.0-r0: task do_testsdkext: Failed
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-worker/qemumips64/build/build/tmp/work/qemumips64-poky-linux/core-image-sato/1.0-r0/temp/log.do_testsdkext.21341
NOTE: recipe core-image-sato-1.0-r0: task do_testsdkext: Failed
ERROR: Task (/home/pokybuild/yocto-worker/qemumips64/build/meta/recipes-core/images/core-image-minimal.bb:do_testsdkext) failed with exit code &apos;1&apos;
ERROR: Task (/home/pokybuild/yocto-worker/qemumips64/build/meta/recipes-sato/images/core-image-sato.bb:do_testsdkext) failed with exit code &apos;1&apos;


Or should be filed as separate bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89752</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-03-25 14:57:20 +0000</bug_when>
    <thetext>Basically the same issue.

*** This bug has been marked as a duplicate of bug 14310 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>