<?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>8810</bug_id>
          
          <creation_ts>2015-12-16 03:43:55 +0000</creation_ts>
          <short_desc>Some strace ptests fail</short_desc>
          <delta_ts>2016-08-01 08:58:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>1.6.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="dawei">daweix.wu</reporter>
          <assigned_to name="dengke">dengke.du</assigned_to>
          <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>57289</commentid>
    <comment_count>0</comment_count>
    <who name="dawei">daweix.wu</who>
    <bug_when>2015-12-16 03:43:55 +0000</bug_when>
    <thetext>image arch: x86-64

From the log the failure due to file missing
----------------------------------------------------------------------------
awk: fatal: can&apos;t open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/caps.awk&apos; for reading (No such file or directory)
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP|CAP_MAC_OVERRIDE|CAP_MAC_ADMIN|CAP_SYSLOG|CAP_WAKE_ALARM|CAP_BLOCK_SUSPEND|CAP_AUDIT_READ, 0}) = 0
capset({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_DAC_OVERRIDE|CAP_WAKE_ALARM, CAP_DAC_READ_SEARCH|CAP_BLOCK_SUSPEND, 0}) = -1 EPERM (Operation not permitted)
+++ exited with 0 +++
caps.test: failed test: unexpected output
FAIL: caps.test
----------------------------------------------------------------------------

awk: fatal: can&apos;t open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/getrandom.awk&apos; for reading (No such file or directory)
getrandom(&quot;\xbf\xe0\x54&quot;, 3, 0)         = 3
getrandom(&quot;\x1d\x54\xd2&quot;..., 4, GRND_NONBLOCK) = 4
getrandom(0x7ffd3640cd90, 4, GRND_NONBLOCK|GRND_RANDOM|0x3000) = -1 EINVAL (Invalid argument)
+++ exited with 0 +++
getrandom.test: failed test: unexpected output
FAIL: getrandom.test
----------------------------------------------------------------------------
awk: fatal: can&apos;t open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/select.awk&apos; for reading (No such file or directory)
select(2, [0 1], [0 1], [0 1], NULL)    = 1 ()
select(-1, NULL, 0x55813c76f040, NULL, NULL) = -1 EINVAL (Invalid argument)
select(1025, [0], [], NULL, {0, 100})   = 0 (Timeout)
+++ exited with 0 +++
select.test: failed test: unexpected output
FAIL: select.test
----------------------------------------------------------------------------
./net-yy.test: line 36: /var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/../strace-log-merge: No such file or directory
net-yy.test: failed test: strace-log-merge failed
FAIL: net-yy.test
----------------------------------------------------------------------------
./sun_path.test: line 19: /var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/../strace-log-merge: No such file or directory
sun_path.test: failed test: strace-log-merge failed
FAIL: sun_path.test
----------------------------------------------------------------------------
gawk: fatal: can&apos;t open source file `/var/lib/jenkins/build-iot-os/build/tmp-glibc/work/corei7-64-iotos-linux/strace/4.10-r0/strace-4.10/tests/uid.awk&apos; for reading (No such file or directory)
getuid()                                = 0
setuid(0)                               = 0
getresuid([0], [0], [0])                = 0
setreuid(-1, -1)                        = 0
setresuid(0, -1, -1)                    = 0
chown(&quot;.&quot;, -1, -1)                      = 0
getgroups(0, NULL)                      = 1
getgroups(1, [0])                       = 1
+++ exited with 0 +++
uid.test: failed test: unexpected output
FAIL: uid.test
----------------------------------------------------------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59365</commentid>
    <comment_count>1</comment_count>
    <who name="dengke">dengke.du</who>
    <bug_when>2016-02-23 08:48:48 +0000</bug_when>
    <thetext>Strace ptests fail because when run the ptest on the target, the run-ptest invoke the /usr/lib/strace/ptest/tests/init.sh, this file find the necessary files using the varibale &quot;srcdir&quot;, this variable define in the /usr/lib/strace/ptest/tests/Makefile, after the do_install_ptest function, in the Makefile this varibale was &quot;srcdir = ../../strace-4.11/tests&quot;, but on the target the necessary files was under the directory /usr/lib/strace/ptest/tests, so using the string &quot;ptest&quot; replace the string &quot;strace-4.11&quot; to the variable srcdir in the Makefile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64712</commentid>
    <comment_count>2</comment_count>
    <who name="dengke">dengke.du</who>
    <bug_when>2016-08-01 08:58:43 +0000</bug_when>
    <thetext>Now, the strace ptest results doesn&apos;t contain those fails.

https://wiki.yoctoproject.org/wiki/Ptest_36feb38045b7a2af86ece147fec54b0db3bf491f

//dengke</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>