Mock Version: 2.16 Mock Version: 2.16 Mock Version: 2.16 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/reptyr.spec'], chrootPath='/var/lib/mock/epel9-build-34003921-4543372/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/reptyr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1647993600 Wrote: /builddir/build/SRPMS/reptyr-0.8.0-4.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/reptyr.spec'], chrootPath='/var/lib/mock/epel9-build-34003921-4543372/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/reptyr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1647993600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vBvJZq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf reptyr-reptyr-0.8.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/reptyr-0.8.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd reptyr-reptyr-0.8.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i s/python2/python3/g Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1DI859 + umask 022 + cd /builddir/build/BUILD + cd reptyr-reptyr-0.8.0 + make -j6 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' cc -MD -Wall -Werror -D_GNU_SOURCE -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o reptyr.o reptyr.c cc -MD -Wall -Werror -D_GNU_SOURCE -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o reallocarray.o reallocarray.c cc -MD -Wall -Werror -D_GNU_SOURCE -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o attach.o attach.c cc -MD -Wall -Werror -D_GNU_SOURCE -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o platform/linux/linux_ptrace.o platform/linux/linux_ptrace.c cc -MD -Wall -Werror -D_GNU_SOURCE -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o platform/linux/linux.o platform/linux/linux.c cc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 reptyr.o reallocarray.o attach.o platform/linux/linux_ptrace.o platform/linux/linux.o -o reptyr + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.F5BrFX + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 + cd reptyr-reptyr-0.8.0 + rm -rf /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 + make install PREFIX=/usr DESTDIR=/builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 install -d -m 755 /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/bin install -m 755 reptyr /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/bin/reptyr install -d -m 755 /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/man/man1 install -m 644 reptyr.1 /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/man/man1/reptyr.1 install -d -m 755 /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/man/fr/man1 install -m 644 reptyr.fr.1 /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/man/fr/man1/reptyr.1 bashcompdir= ; \ test -z "$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \ install -d -m 755 /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64$bashcompdir ; \ install -m 644 reptyr.bash /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64$bashcompdir/reptyr + /usr/lib/rpm/find-lang.sh /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 reptyr --with-man + /usr/lib/rpm/find-debuginfo.sh -j6 --strict-build-id -m -i --build-id-seed 0.8.0-4.el9 --unique-debug-suffix -0.8.0-4.el9.x86_64 --unique-debug-src-base reptyr-0.8.0-4.el9.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/reptyr-reptyr-0.8.0 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/bin/reptyr extracting debug info from /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/bin/reptyr original debug info size: 132kB, size after compression: 124kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 135 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.9iDs3P + umask 022 + cd /builddir/build/BUILD + cd reptyr-reptyr-0.8.0 + make test 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' cc -MD -Wall -Werror -D_GNU_SOURCE -g -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o test/victim.o test/victim.c cc -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 test/victim.o -o test/victim python3 test/basic.py hello ECHO: hello world [+] Checking for problematic process group members... [+] Making sure we have permission to attach... [+] Using tty: /dev/pts/2 world [-] Timed out waiting for child stop. [+] Allocated scratch page: 7f4e439d4000 [+] Looking up fds for tty in child. [+] Resolved child tty: 8800 [+] Found an alias for the tty: 0 [+] Found an alias for the tty: 1 [+] Found an alias for the tty: 2 [+] Opened the new tty in the child: 3 [+] Set the controlling tty ECHO: world final python3 test/tty-steal.py world [+] Making sure we have permission to attach... [+] session leader of pid 1635363 = 1635363 [+] found terminal emulator process: 1635362 [+] Listening on socket: /tmp/reptyr.wcG9RN/reptyr.sock [+] Attaching terminal emulator pid=1635362 [+] Allocated scratch page: 7ff37b03d000 [+] Attached to terminal emulator (pid 1635362) [+] Checking fd: 0: st_dev=103 [+] Checking fd: 1: st_dev=0 [+] Checking fd: 2: st_dev=0 [+] Checking fd: 5: st_dev=502 [+] found a ptmx fd: 5 [+] found a master fd: 5 [+] Checking fd: 6: st_dev=502 [+] found a ptmx fd: 6 [+] Opened fd 3 in the child. [+] Connected to the shared socket. [+] Sent the pty fd, going to receive it. [+] Got a message: 0 bytes, 24 control [+] Got tty fd: 5 [+] Allocated scratch page: 7f313b18b000 ECHO: world Unable to find `prctl.set_ptracer`, skipping `PR_SET_PTRACER`. spawned children: me=1635362 victim=1635363 reptyr=1635364 + RPM_EC=0 ++ jobs -p + exit 0 Processing files: reptyr-0.8.0-4.el9.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.YwLpyP + umask 022 + cd /builddir/build/BUILD + cd reptyr-reptyr-0.8.0 + DOCDIR=/builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/doc/reptyr + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/doc/reptyr + cp -pr ChangeLog /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/doc/reptyr + cp -pr NOTES /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/doc/reptyr + cp -pr README.md /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/doc/reptyr + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.QKZy3s + umask 022 + cd /builddir/build/BUILD + cd reptyr-reptyr-0.8.0 + LICENSEDIR=/builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/licenses/reptyr + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/licenses/reptyr + cp -pr COPYING /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64/usr/share/licenses/reptyr + RPM_EC=0 ++ jobs -p + exit 0 Provides: reptyr = 0.8.0-4.el9 reptyr(x86-64) = 0.8.0-4.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) rtld(GNU_HASH) Processing files: reptyr-debugsource-0.8.0-4.el9.x86_64 Provides: reptyr-debugsource = 0.8.0-4.el9 reptyr-debugsource(x86-64) = 0.8.0-4.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: reptyr-debuginfo-0.8.0-4.el9.x86_64 Provides: debuginfo(build-id) = b67907606688f4b1e117bfad51c0683673fde04f reptyr-debuginfo = 0.8.0-4.el9 reptyr-debuginfo(x86-64) = 0.8.0-4.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: reptyr-debugsource(x86-64) = 0.8.0-4.el9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 Wrote: /builddir/build/RPMS/reptyr-0.8.0-4.el9.x86_64.rpm Wrote: /builddir/build/RPMS/reptyr-debugsource-0.8.0-4.el9.x86_64.rpm Wrote: /builddir/build/RPMS/reptyr-debuginfo-0.8.0-4.el9.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.81IitQ + umask 022 + cd /builddir/build/BUILD + cd reptyr-reptyr-0.8.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/reptyr-0.8.0-4.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0