Bug 14289 - failure in the command 'bitbake glibc-testsuite -c check'
Summary: failure in the command 'bitbake glibc-testsuite -c check'
Status: RESOLVED FIXED
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.4 M1
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2021-03-09 09:18 UTC by Köry Maincent
Modified: 2021-05-20 15:02 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Köry Maincent 2021-03-09 09:18:02 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/59/builds/3120/steps/19/logs/stdio


2021-02-28 02:37:38,046 - oe-selftest - INFO - 0: 3/3 14/15 (537.38s) (binutils.BinutilsCrossSelfTest.test_ld)
2021-02-28 03:09:50,866 - oe-selftest - INFO - glibc.GlibcSelfTestSystemEmulated.test_glibc (subunit.RemotedTestCase)
2021-02-28 03:09:51,030 - oe-selftest - INFO -  ... FAIL
2021-02-28 03:09:51,039 - oe-selftest - INFO - 8: 1/1 15/15 (4228.15s) (glibc.GlibcSelfTestSystemEmulated.test_glibc)
2021-02-28 03:09:51,039 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/cases/glibc.py", line 88, in test_glibc
    self.run_check_emulated()
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/cases/glibc.py", line 78, in run_check_emulated
    self.run_check(ssh = qemu.ip)
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/selftest/cases/glibc.py", line 30, in run_check
    bitbake("glibc-testsuite -c check")
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/commands.py", line 232, in bitbake
    return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/utils/commands.py", line 210, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'bitbake  glibc-testsuite -c check' returned non-zero exit status 1:
Loading cache...done.
Comment 3 Richard Purdie 2021-03-11 16:14:33 UTC
ERROR: glibc-testsuite-2.33-r0 do_check: Execution of event handler 'defaultrun_buildstats' failed
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass", line 196, in defaultrun_buildstats(e=<bb.build.TaskSucceeded object at 0x7f1ff12ca048>):
         elif isinstance(e, bb.build.TaskSucceeded):
    >        write_task_data("passed", os.path.join(taskdir, e.task), e, d)
             if e.task == "do_rootfs":
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass", line 88, in write_task_data(status='passed', logfile='/home/pokybuild/yocto-worker/qemux86/build/build-st-1369/tmp/buildstats/20210228021207/glibc-testsuite-2.33-r0/do_check', e=<bb.build.TaskSucceeded object at 0x7f1ff12ca048>, d=<bb.data_smart.DataSmart object at 0x7f1feb842ef0>):
                 f.write(d.expand("Elapsed time: %0.2f seconds\n" % elapsedtime))
    >            cpu, iostats, resources, childres = get_process_cputime(os.getpid())
                 if cpu:
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass", line 18, in get_process_cputime(pid=24115):
     def get_process_cputime(pid):
    >    import resource
         with open("/proc/%d/stat" % pid, "r") as f:
ImportError: /usr/lib64/python3.6/lib-dynload/resource.cpython-36m-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 "/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/build.py", line 752, in exec_task
    return _exec_task(fn, task, d, quieterr)
  File "/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/build.py", line 726, in _exec_task
    event.fire(TaskSucceeded(task, fn, logfn, localdata), localdata)
  File "/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py", line 216, in fire
    fire_class_handlers(event, d)
  File "/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py", line 123, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/home/pokybuild/yocto-worker/qemux86/build/bitbake/lib/bb/event.py", line 93, in execute_handler
    ret = handler(event)
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass", line 196, in defaultrun_buildstats
    write_task_data("passed", os.path.join(taskdir, e.task), e, d)
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass", line 88, in write_task_data
    cpu, iostats, resources, childres = get_process_cputime(os.getpid())
  File "/home/pokybuild/yocto-worker/qemux86/build/meta/classes/buildstats.bbclass", line 18, in get_process_cputime
    import resource
ImportError: /usr/lib64/python3.6/lib-dynload/resource.cpython-36m-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 '1'
Comment 4 Randy MacLeod 2021-05-20 15:02:22 UTC
Hopefully fixed by:

http://cgit.openembedded.org/openembedded-core/commit/?id=58d4f669bd46805669daf87626350fe9359feca5

glibc: Add 8GB VM usage cap for usermode test suite