<?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>14331</bug_id>
          
          <creation_ts>2021-03-29 03:34:07 +0000</creation_ts>
          <short_desc>Memory issues during oe-selftest</short_desc>
          <delta_ts>2021-05-20 15:08:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Trevor Gamblin">tvgamblin</assigned_to>
          <cc>alexandre.belloni</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>89804</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2021-03-29 03:34:07 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#builders/59/builds/3238

-------------- snip --------------
NOTE: recipe glibc-testsuite-2.33-r0: task do_check: Started
ERROR: glibc-testsuite-2.33-r0 do_check: Execution of event handler &apos;defaultrun_buildstats&apos; failed
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 224, in defaultrun_buildstats(e=&lt;bb.build.TaskSucceeded object at 0x7fc608caed00&gt;):
         elif isinstance(e, bb.build.TaskSucceeded):
    &gt;        write_task_data(&quot;passed&quot;, os.path.join(taskdir, e.task), e, d)
             if e.task == &quot;do_rootfs&quot;:
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 88, in write_task_data(status=&apos;passed&apos;, logfile=&apos;/home/pokybuild/yocto-worker/qemux86/build/build-st-12650/tmp/buildstats/20210328015616/glibc-testsuite-2.33-r0/do_check&apos;, e=&lt;bb.build.TaskSucceeded object at 0x7fc608caed00&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7fc60bb6b5e0&gt;):
                 f.write(d.expand(&quot;Elapsed time: %0.2f seconds\n&quot; % elapsedtime))
    &gt;            cpu, iostats, resources, childres = get_process_cputime(os.getpid())
                 if cpu:
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 18, in get_process_cputime(pid=5887):
     def get_process_cputime(pid):
    &gt;    import resource
         with open(&quot;/proc/%d/stat&quot; % pid, &quot;r&quot;) as f:
ImportError: /home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/lib-dynload/resource.cpython-39-x86_64-linux-gnu.so: failed to map segment from shared object
ERROR: glibc-testsuite-2.33-r0 do_check: Build of do_check failed
ERROR: glibc-testsuite-2.33-r0 do_check: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/build.py&quot;, line 752, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/build.py&quot;, line 726, in _exec_task
    event.fire(TaskSucceeded(task, fn, logfn, localdata), localdata)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py&quot;, line 216, in fire
    fire_class_handlers(event, d)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py&quot;, line 123, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py&quot;, line 93, in execute_handler
    ret = handler(event)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 224, in defaultrun_buildstats
    write_task_data(&quot;passed&quot;, os.path.join(taskdir, e.task), e, d)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 88, in write_task_data
    cpu, iostats, resources, childres = get_process_cputime(os.getpid())
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 18, in get_process_cputime
    import resource
ImportError: /home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/lib-dynload/resource.cpython-39-x86_64-linux-gnu.so: failed to map segment from shared object
ERROR: Task (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_check) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 340 tasks of which 333 didn&apos;t need to be rerun and 1 failed.
Summary: 1 task failed:
  /home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_check
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
2021-03-28 03:03:42,969 - oe-selftest - INFO - ======================================================================
2021-03-28 03:03:42,969 - oe-selftest - INFO - FAIL: glibc.GlibcSelfTestSystemEmulated.test_glibc (subunit.RemotedTestCase)
2021-03-28 03:03:42,969 - oe-selftest - INFO - ----------------------------------------------------------------------
2021-03-28 03:03:42,969 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/cases/glibc.py&quot;, line 88, in test_glibc
    self.run_check_emulated()
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/cases/glibc.py&quot;, line 78, in run_check_emulated
    self.run_check(ssh = qemu.ip)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/cases/glibc.py&quot;, line 30, in run_check
    bitbake(&quot;glibc-testsuite -c check&quot;)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/commands.py&quot;, line 232, in bitbake
    return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/commands.py&quot;, line 210, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;bitbake  glibc-testsuite -c check&apos; returned non-zero exit status 1:
Loading cache...done.
Loaded 0 entries from dependency cache.
Parsing recipes...done.
Parsing of 855 .bb files complete (0 cached, 855 parsed). 1486 targets, 46 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = &quot;1.49.2&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;universal&quot;
TARGET_SYS           = &quot;i686-poky-linux&quot;
MACHINE              = &quot;qemux86&quot;
DISTRO               = &quot;poky&quot;
DISTRO_VERSION       = &quot;3.2+snapshot-ea455ca8671d3bc2a1097989bfaabe92f3ca37ab&quot;
TUNE_FEATURES        = &quot;m32 core2&quot;
TARGET_FPU           = &quot;&quot;
meta                 
meta-poky            
meta-yocto-bsp       = &quot;master:ea455ca8671d3bc2a1097989bfaabe92f3ca37ab&quot;
meta-selftest        = &quot;master:81398c7e463d5e149913864f71c1c55afef62e93&quot;
Initialising tasks...done.
Sstate summary: Wanted 5 Local 5 Network 0 Missed 0 Current 72 (100% match, 100% complete)
NOTE: Executing Tasks
NOTE: Running setscene task 73 of 77 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_deploy_source_date_epoch_setscene)
NOTE: recipe glibc-testsuite-2.33-r0: task do_deploy_source_date_epoch_setscene: Started
NOTE: recipe glibc-testsuite-2.33-r0: task do_deploy_source_date_epoch_setscene: Succeeded
NOTE: Setscene tasks completed
NOTE: Running task 333 of 340 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_fetch)
NOTE: recipe glibc-testsuite-2.33-r0: task do_fetch: Started
NOTE: recipe glibc-testsuite-2.33-r0: task do_fetch: Succeeded
NOTE: Running task 334 of 340 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_unpack)
NOTE: Running task 335 of 340 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_prepare_recipe_sysroot)
NOTE: recipe glibc-testsuite-2.33-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe glibc-testsuite-2.33-r0: task do_unpack: Started
NOTE: recipe glibc-testsuite-2.33-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: recipe glibc-testsuite-2.33-r0: task do_unpack: Succeeded
NOTE: Running task 336 of 340 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_patch)
NOTE: recipe glibc-testsuite-2.33-r0: task do_patch: Started
NOTE: recipe glibc-testsuite-2.33-r0: task do_patch: Succeeded
NOTE: Running task 338 of 340 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_configure)
NOTE: recipe glibc-testsuite-2.33-r0: task do_configure: Started
NOTE: recipe glibc-testsuite-2.33-r0: task do_configure: Succeeded
NOTE: Running task 339 of 340 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_compile)
NOTE: recipe glibc-testsuite-2.33-r0: task do_compile: Started
NOTE: recipe glibc-testsuite-2.33-r0: task do_compile: Succeeded
NOTE: Running task 340 of 340 (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_check)
NOTE: recipe glibc-testsuite-2.33-r0: task do_check: Started
ERROR: glibc-testsuite-2.33-r0 do_check: Execution of event handler &apos;defaultrun_buildstats&apos; failed
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 224, in defaultrun_buildstats(e=&lt;bb.build.TaskSucceeded object at 0x7fc608caed00&gt;):
         elif isinstance(e, bb.build.TaskSucceeded):
    &gt;        write_task_data(&quot;passed&quot;, os.path.join(taskdir, e.task), e, d)
             if e.task == &quot;do_rootfs&quot;:
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 88, in write_task_data(status=&apos;passed&apos;, logfile=&apos;/home/pokybuild/yocto-worker/qemux86/build/build-st-12650/tmp/buildstats/20210328015616/glibc-testsuite-2.33-r0/do_check&apos;, e=&lt;bb.build.TaskSucceeded object at 0x7fc608caed00&gt;, d=&lt;bb.data_smart.DataSmart object at 0x7fc60bb6b5e0&gt;):
                 f.write(d.expand(&quot;Elapsed time: %0.2f seconds\n&quot; % elapsedtime))
    &gt;            cpu, iostats, resources, childres = get_process_cputime(os.getpid())
                 if cpu:
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 18, in get_process_cputime(pid=5887):
     def get_process_cputime(pid):
    &gt;    import resource
         with open(&quot;/proc/%d/stat&quot; % pid, &quot;r&quot;) as f:
ImportError: /home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/lib-dynload/resource.cpython-39-x86_64-linux-gnu.so: failed to map segment from shared object
ERROR: glibc-testsuite-2.33-r0 do_check: Build of do_check failed
ERROR: glibc-testsuite-2.33-r0 do_check: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/build.py&quot;, line 752, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/build.py&quot;, line 726, in _exec_task
    event.fire(TaskSucceeded(task, fn, logfn, localdata), localdata)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py&quot;, line 216, in fire
    fire_class_handlers(event, d)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py&quot;, line 123, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py&quot;, line 93, in execute_handler
    ret = handler(event)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 224, in defaultrun_buildstats
    write_task_data(&quot;passed&quot;, os.path.join(taskdir, e.task), e, d)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 88, in write_task_data
    cpu, iostats, resources, childres = get_process_cputime(os.getpid())
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass&quot;, line 18, in get_process_cputime
    import resource
ImportError: /home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/lib-dynload/resource.cpython-39-x86_64-linux-gnu.so: failed to map segment from shared object
ERROR: Task (/home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_check) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 340 tasks of which 333 didn&apos;t need to be rerun and 1 failed.
Summary: 1 task failed:
  /home/pokybuild/yocto-worker/qemux86/build/meta/recipes-core/glibc/glibc-testsuite_2.33.bb:do_check
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
----------------------------------------------------------------------
2021-03-28 03:03:42,970 - oe-selftest - INFO - Ran 15 tests in 4465.873s
2021-03-28 03:03:42,970 - oe-selftest - INFO - FAILED
2021-03-28 03:03:42,970 - oe-selftest - INFO -  (failures=1, skipped=1)
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/scripts/oe-selftest&quot;, line 60, in &lt;module&gt;
    ret = main()
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/scripts/oe-selftest&quot;, line 47, in main
    results = args.func(logger, args)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/context.py&quot;, line 400, in run
    rc = self._internal_run(logger, args)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/context.py&quot;, line 364, in _internal_run
    configuration = self.get_configuration(args)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/context.py&quot;, line 336, in get_configuration
    metadata = metadata_from_bb()
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/metadata.py&quot;, line 42, in metadata_from_bb
    info_dict[&apos;layers&apos;] = get_layers(data_dict[&apos;BBLAYERS&apos;])
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/metadata.py&quot;, line 97, in get_layers
    layer_dict[layer_name] = git_rev_info(layer)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/metadata.py&quot;, line 84, in git_rev_info
    info[&apos;commit&apos;] = repo.head.commit.hexsha
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/refs/symbolic.py&quot;, line 197, in _get_commit
    obj = self._get_object()
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/refs/symbolic.py&quot;, line 190, in _get_object
    return Object.new_from_sha(self.repo, hex_to_bin(self.dereference_recursive(self.repo, self.path)))
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/objects/base.py&quot;, line 64, in new_from_sha
    oinfo = repo.odb.info(sha1)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/db.py&quot;, line 37, in info
    hexsha, typename, size = self._git.get_object_header(bin_to_hex(sha))
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/cmd.py&quot;, line 1068, in get_object_header
    cmd = self._get_persistent_cmd(&quot;cat_file_header&quot;, &quot;cat_file&quot;, batch_check=True)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/cmd.py&quot;, line 1051, in _get_persistent_cmd
    cmd = self._call_process(cmd_name, *args, **options)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/cmd.py&quot;, line 1006, in _call_process
    return self.execute(call, **exec_kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/site-packages/git/cmd.py&quot;, line 721, in execute
    proc = Popen(command,
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/subprocess.py&quot;, line 947, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File &quot;/home/pokybuild/yocto-worker/qemux86/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.9/subprocess.py&quot;, line 1752, in _execute_child
    self.pid = _posixsubprocess.fork_exec(
OSError: [Errno 12] Cannot allocate memory
-------------- snip --------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89843</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-01 14:42:25 +0000</bug_when>
    <thetext>May be related to 14289.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90429</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-05-20 15:08:00 +0000</bug_when>
    <thetext>Probably fixed by c124290d90040806103b8c273948c4863e7bc1b4 &quot;glibc: Add 8GB VM usage cap for usermode test suite&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>