Bug 14173

Summary: psplash: do_package_write_* fails on arm host
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Naveen Saini <naveen.kumar.saini>
Component: coreAssignee: Unassigned <unassigned>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher, richard.purdie, ross.burton
Version: 3.3   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Naveen Saini 2020-12-31 07:53:35 UTC
Patch series:  https://lists.openembedded.org/g/openembedded-core/message/146162?p=,,,20,0,0,0::Created,,Trevor+Woerner,20,2,0,79184680

psplash do_package_write_* fails (master-next)

  /home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/recipes-core/psplash/psplash_git.bb:do_package_write_ipk
  /home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/recipes-core/psplash/psplash_git.bb:do_package_write_rpm
  /home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/recipes-core/psplash/psplash_git.bb:do_package_write_deb

Build Configuration:
BB_VERSION           = "1.49.0"
BUILD_SYS            = "aarch64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "qemuarm64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.2+snapshot-2ce5b1ce9cfa22a9edd4ab534f0eb86c9d4a334a"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa57"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "master-next:2ce5b1ce9cfa22a9edd4ab534f0eb86c9d4a334a"




Error log: 


ERROR: psplash-0.1+gitAUTOINC+0a902f7cd8-r15 do_package_write_rpm: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:sstate_task_postfunc(d)
     0003:
File: '/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/classes/sstate.bbclass', lineno: 776, function: sstate_task_postfunc
     0772:
     0773:    sstateinst = d.getVar("SSTATE_INSTDIR")
     0774:    d.setVar('SSTATE_FIXMEDIR', shared_state['fixmedir'])
     0775:
 *** 0776:    sstate_installpkgdir(shared_state, d)
     0777:
     0778:    bb.utils.remove(d.getVar("SSTATE_BUILDDIR"), recurse=True)
     0779:}
     0780:sstate_task_postfunc[dirs] = "${WORKDIR}"
File: '/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/classes/sstate.bbclass', lineno: 405, function: sstate_installpkgdir
     0401:
     0402:    for state in ss['dirs']:
     0403:        prepdir(state[1])
     0404:        os.rename(sstateinst + state[0], state[1])
 *** 0405:    sstate_install(ss, d)
     0406:
     0407:    for plain in ss['plaindirs']:
     0408:        workdir = d.getVar('WORKDIR')
     0409:        sharedworkdir = os.path.join(d.getVar('TMPDIR'), "work-shared")
File: '/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/classes/sstate.bbclass', lineno: 330, function: sstate_install
     0326:
     0327:    # Run the actual file install
     0328:    for state in ss['dirs']:
     0329:        if os.path.exists(state[1]):
 *** 0330:            oe.path.copyhardlinktree(state[1], state[2])
     0331:
     0332:    for postinst in (d.getVar('SSTATEPOSTINSTFUNCS') or '').split():
     0333:        # All hooks should run in the SSTATE_INSTDIR
     0334:        bb.build.exec_func(postinst, d, (sstateinst,))
File: '/home/pokybuild/yocto-worker/qemuarm64-armhost/build/meta/lib/oe/path.py', lineno: 132, function: copyhardlinktree
     0128:        else:
     0129:            source = src
     0130:            s_dir = os.getcwd()
     0131:        cmd = 'cp -afl --preserve=xattr %s %s' % (source, os.path.realpath(dst))
 *** 0132:        subprocess.check_output(cmd, shell=True, cwd=s_dir, stderr=subprocess.STDOUT)
     0133:    else:
     0134:        copytree(src, dst)
     0135:
     0136:def copyhardlink(src, dst):
File: '/usr/lib/python3.6/subprocess.py', lineno: 356, function: check_output
     0352:        # empty string. That is maintained here for backwards compatibility.
     0353:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0354:
     0355:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0356:               **kwargs).stdout
     0357:
     0358:
     0359:class CompletedProcess(object):
     0360:    """A process that has finished running.
File: '/usr/lib/python3.6/subprocess.py', lineno: 438, function: run
     0434:            raise
     0435:        retcode = process.poll()
     0436:        if check and retcode:
     0437:            raise CalledProcessError(retcode, process.args,
 *** 0438:                                     output=stdout, stderr=stderr)
     0439:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0440:
     0441:
     0442:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr ./* /home/pokybuild/yocto-worker/qemuarm64-armhost/build/build/tmp/deploy/rpm' returned non-zero exit status 139.

Subprocess output:
Segmentation fault (core dumped)


https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/2179
Comment 1 Richard Purdie 2020-12-31 17:55:21 UTC
The issue looks to be related to including a fifo in the packages. That shouldn't cause a segfault, seems arm host specific (occurred on multiple armhost builds but nowhere else)...
Comment 2 Ross Burton 2021-01-04 14:36:49 UTC
Looks like 14133 to me.

*** This bug has been marked as a duplicate of bug 14133 ***