Mock Version: 1.3.4 Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sslh.spec'], chrootPath='/var/lib/mock/f27-build-12168443-895240/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': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/sslh.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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/sslh-1.19c-1.fc27.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/sslh.spec'], chrootPath='/var/lib/mock/f27-build-12168443-895240/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': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/sslh.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': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6kV9u3 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + /usr/bin/gzip -dc /builddir/build/SOURCES/sslh-1.19c-3a61c8b.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/00-systemd-tuning.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/01-remove-lcov-testing.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PMta3o + umask 022 + cd /builddir/build/BUILD + cd sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + ./genver.sh + make -j48 USELIBWRAP=1 USELIBCAP=1 USESYSTEMD=1 sslh echosrv cc -Wall -g -DLIBWRAP -DENABLE_REGEX -DLIBPCRE -DLIBCONFIG -DLIBCAP -DSYSTEMD -c common.c cc -Wall -g -DLIBWRAP -DENABLE_REGEX -DLIBPCRE -DLIBCONFIG -DLIBCAP -DSYSTEMD -c sslh-main.c cc -Wall -g -DLIBWRAP -DENABLE_REGEX -DLIBPCRE -DLIBCONFIG -DLIBCAP -DSYSTEMD -c probe.c cc -Wall -g -DLIBWRAP -DENABLE_REGEX -DLIBPCRE -DLIBCONFIG -DLIBCAP -DSYSTEMD -c tls.c cc -Wall -g -DLIBWRAP -DENABLE_REGEX -DLIBPCRE -DLIBCONFIG -DLIBCAP -DSYSTEMD -c sslh-fork.c cc -Wall -g -DLIBWRAP -DENABLE_REGEX -DLIBPCRE -DLIBCONFIG -DLIBCAP -DSYSTEMD -c sslh-select.c cc -Wall -g -DLIBWRAP -DENABLE_REGEX -DLIBPCRE -DLIBCONFIG -DLIBCAP -DSYSTEMD -c echosrv.c common.c: In function 'check_access_rights': common.c:616:20: warning: passing argument 1 of 'hosts_ctl' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if (!hosts_ctl(service, host, addr_str, STRING_UNKNOWN)) { ^~~~~~~ In file included from common.c:49:0: /usr/include/tcpd.h:200:12: note: expected 'char *' but argument is of type 'const char *' extern int hosts_ctl(char *daemon, char *client_name, char *client_addr, ^~~~~~~~~ cc -Wall -g -o sslh-fork sslh-fork.o common.o sslh-main.o probe.o tls.o -lwrap -lpcreposix -lconfig -lcap -lsystemd cc -Wall -g -o sslh-select sslh-select.o common.o sslh-main.o probe.o tls.o -lwrap -lpcreposix -lconfig -lcap -lsystemd cc -Wall -g -o echosrv echosrv.o probe.o common.o tls.o -lwrap -lpcreposix -lconfig -lcap -lsystemd #strip sslh-fork #strip sslh-select + pod2man --section=8 --release=1.19c '--center= ' sslh.pod + iconv --from=ISO-8859-1 --to=UTF-8 ChangeLog + touch -r ChangeLog ChangeLog.conv + mv ChangeLog.conv ChangeLog + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Jdgv9K + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64 ++ dirname /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64 + cd sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + mkdir -p /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/etc/sysconfig + mkdir -p /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/doc/sslh + mkdir -p /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/lib/systemd/system + cp -p sslh-fork /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/sbin/sslh + cp -p sslh-select /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/sbin/sslh-select + cp -p basic.cfg /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/etc/sslh.cfg + cp -p sslh.8 /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/man/man8/ + cp -p scripts/systemd.sslh.service /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/lib/systemd/system/sslh.service + cat + cat + /usr/lib/rpm/find-debuginfo.sh -j48 --strict-build-id -m -i --build-id-seed 1.19c-1.fc27 --unique-debug-suffix -1.19c-1.fc27.x86_64 --unique-debug-src-base sslh-1.19c-1.fc27.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 extracting debug info from /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/sbin/sslh-select extracting debug info from /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/sbin/sslh /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. 185 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.O5UBn8 + umask 022 + cd /builddir/build/BUILD + cd sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + sed -i s/ip6-localhost/localhost6/g t + make test ./t Testing sslh-select spawned 11066 ./sslh-select -v -f -u mockbuild --listen localhost:9002 --ssh localhost6:9000 --ssl localhost6:9001 -P /tmp/sslh_test.pid ==11066== Memcheck, a memory error detector ==11066== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==11066== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==11066== Command: ./sslh-select -v -f -u mockbuild --listen localhost:9002 --ssh localhost6:9000 -ssl localhost6:9001 -P /tmp/sslh_test.pid ==11066== ssh addr: localhost:cslistener. libwrap service: sshd log_level: 1 family 10 10 [] [fork] ssl addr: localhost:etlservicemgr. libwrap service: (null) log_level: 1 family 10 10 [] [] listening on: localhost:dynamid [] localhost:dynamid [] timeout: 2 on-timeout: ssh listening to 2 addresses sslh-select 3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 started turning into mockbuild capabilities: = selecting... max_fd=5 num_probing=0 ***Test: SSL connection accepted fd 5 on slot 0 selecting... max_fd=6 num_probing=1 processing fd0 slot 0 hexdump of incoming packet: 0x000000: 16 03 03 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 0a ...hello world.. **** writing deferred on fd -1 probing for ssh probing for ssl connecting to localhost:etlservicemgr family 10 len 28 ssl:connection from localhost:39592 to localhost:dynamid forwarded from localhost:35148 to localhost:etlservicemgr flushing deferred data to fd 6 selecting... max_fd=7 num_probing=0 processing fd1 slot 0 activity on fd6 selecting... max_fd=7 num_probing=0 ok 1 - SSL connection ***Test: Shy SSH connection processing fd0 slot 0 activity on fd5 closing fd 5 closing fd 6 selecting... max_fd=7 num_probing=0 accepted fd 5 on slot 0 selecting... max_fd=7 num_probing=1 selecting... max_fd=7 num_probing=1 processing fd0 slot 0 timed out, connect to ssh closing fd 5 selecting... max_fd=7 num_probing=0 connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39596 to localhost:dynamid forwarded from localhost:45088 to localhost:cslistener ok 2 - Shy SSH connection ***Test: Bold SSH connection socket closed connection closed down accepted fd 5 on slot 0 selecting... max_fd=7 num_probing=1 processing fd0 slot 0 hexdump of incoming packet: 0x000000: 53 53 48 2d 32 2e 30 20 74 65 73 74 73 75 69 74 SSH-2.0 testsuit 0x000010: 65 09 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a e.hello world. **** writing deferred on fd -1 probing for ssh closing fd 5 selecting... max_fd=7 num_probing=0 ==11070== ==11070== HEAP SUMMARY: ==11070== in use at exit: 1,183 bytes in 9 blocks ==11070== total heap usage: 194 allocs, 185 frees, 195,723 bytes allocated ==11070== ==11070== LEAK SUMMARY: ==11070== definitely lost: 0 bytes in 0 blocks ==11070== indirectly lost: 0 bytes in 0 blocks ==11070== possibly lost: 0 bytes in 0 blocks ==11070== still reachable: 1,183 bytes in 9 blocks ==11070== suppressed: 0 bytes in 0 blocks ==11070== Reachable blocks (those to which a pointer was found) are not shown. ==11070== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11070== ==11070== For counts of detected and suppressed errors, rerun with: -v ==11070== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39600 to localhost:dynamid forwarded from localhost:45092 to localhost:cslistener flushing deferred data to fd 4 ok 3 - Bold SSH connection ***Test: incomplete SSH first frame socket closed accepted fd 5 on slot 0 selecting... max_fd=7 num_probing=1 processing fd0 slot 0 connection closed down hexdump of incoming packet: 0x000000: 53 53 SS **** writing deferred on fd -1 probing for ssh selecting... max_fd=7 num_probing=1 ==11072== ==11072== HEAP SUMMARY: ==11072== in use at exit: 1,183 bytes in 9 blocks ==11072== total heap usage: 202 allocs, 193 frees, 209,737 bytes allocated ==11072== ==11072== LEAK SUMMARY: ==11072== definitely lost: 0 bytes in 0 blocks ==11072== indirectly lost: 0 bytes in 0 blocks ==11072== possibly lost: 0 bytes in 0 blocks ==11072== still reachable: 1,183 bytes in 9 blocks ==11072== suppressed: 0 bytes in 0 blocks ==11072== Reachable blocks (those to which a pointer was found) are not shown. ==11072== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11072== ==11072== For counts of detected and suppressed errors, rerun with: -v ==11072== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) processing fd0 slot 0 hexdump of incoming packet: 0x000000: 48 2d 32 2e 30 20 74 65 73 74 73 75 69 74 65 09 H-2.0 testsuite. 0x000010: 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a hello world. **** writing deferred on fd -1 probing for ssh closing fd 5 selecting... max_fd=7 num_probing=0 connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39604 to localhost:dynamid forwarded from localhost:45096 to localhost:cslistener flushing deferred data to fd 4 ok 4 - Incomplete first SSH frame ***Test: One SSL half-started then one SSH socket closed accepted fd 5 on slot 0 selecting... max_fd=7 num_probing=1 processing fd0 slot 0 connection closed down hexdump of incoming packet: 0x000000: 16 03 03 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 0a ...hello world.. **** writing deferred on fd -1 probing for ssh probing for ssl ==11074== ==11074== HEAP SUMMARY: ==11074== in use at exit: 1,213 bytes in 10 blocks ==11074== total heap usage: 211 allocs, 201 frees, 223,753 bytes allocated ==11074== ==11074== 30 bytes in 1 blocks are definitely lost in loss record 3 of 8 ==11074== at 0x4C2CAAC: malloc (vg_replace_malloc.c:298) ==11074== by 0x4C2EC5F: realloc (vg_replace_malloc.c:785) ==11074== by 0x404CE9: defer_write (common.c:297) ==11074== by 0x407EB4: probe_client_protocol (probe.c:359) ==11074== by 0x403CCA: main_loop (sslh-select.c:405) ==11074== by 0x4075D8: main (sslh-main.c:663) ==11074== ==11074== LEAK SUMMARY: ==11074== definitely lost: 30 bytes in 1 blocks ==11074== indirectly lost: 0 bytes in 0 blocks ==11074== possibly lost: 0 bytes in 0 blocks ==11074== still reachable: 1,183 bytes in 9 blocks ==11074== suppressed: 0 bytes in 0 blocks ==11074== Reachable blocks (those to which a pointer was found) are not shown. ==11074== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11074== ==11074== For counts of detected and suppressed errors, rerun with: -v ==11074== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) connecting to localhost:etlservicemgr family 10 len 28 ssl:connection from localhost:39608 to localhost:dynamid forwarded from localhost:35166 to localhost:etlservicemgr flushing deferred data to fd 6 selecting... max_fd=7 num_probing=0 accepted fd 7 on slot 1 selecting... max_fd=8 num_probing=1 processing fd1 slot 0 activity on fd6 selecting... max_fd=8 num_probing=1 selecting... max_fd=8 num_probing=1 processing fd0 slot 1 timed out, connect to ssh closing fd 7 selecting... max_fd=8 num_probing=0 connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39610 to localhost:dynamid forwarded from localhost:45106 to localhost:cslistener ok 5 - SSH during SSL being established ok 6 - SSL connection interrupted by SSH ***Test: One SSH half-started then one SSL processing fd0 slot 0 activity on fd5 closing fd 5 closing fd 6 socket closed selecting... max_fd=8 num_probing=0 accepted fd 5 on slot 0 selecting... max_fd=8 num_probing=1 connection closed down ==11077== ==11077== HEAP SUMMARY: ==11077== in use at exit: 1,243 bytes in 11 blocks ==11077== total heap usage: 244 allocs, 233 frees, 284,433 bytes allocated ==11077== ==11077== 30 bytes in 1 blocks are definitely lost in loss record 3 of 9 ==11077== at 0x4C2CAAC: malloc (vg_replace_malloc.c:298) ==11077== by 0x4C2EC5F: realloc (vg_replace_malloc.c:785) ==11077== by 0x404CE9: defer_write (common.c:297) ==11077== by 0x407EB4: probe_client_protocol (probe.c:359) ==11077== by 0x403CCA: main_loop (sslh-select.c:405) ==11077== by 0x4075D8: main (sslh-main.c:663) ==11077== ==11077== 30 bytes in 1 blocks are definitely lost in loss record 4 of 9 ==11077== at 0x4C2EC15: realloc (vg_replace_malloc.c:785) ==11077== by 0x404CE9: defer_write (common.c:297) ==11077== by 0x407EB4: probe_client_protocol (probe.c:359) ==11077== by 0x403CCA: main_loop (sslh-select.c:405) ==11077== by 0x4075D8: main (sslh-main.c:663) ==11077== ==11077== LEAK SUMMARY: ==11077== definitely lost: 60 bytes in 2 blocks ==11077== indirectly lost: 0 bytes in 0 blocks ==11077== possibly lost: 0 bytes in 0 blocks ==11077== still reachable: 1,183 bytes in 9 blocks ==11077== suppressed: 0 bytes in 0 blocks ==11077== Reachable blocks (those to which a pointer was found) are not shown. ==11077== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11077== ==11077== For counts of detected and suppressed errors, rerun with: -v ==11077== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) selecting... max_fd=8 num_probing=1 accepted fd 6 on slot 1 processing fd0 slot 0 timed out, connect to ssh closing fd 5 selecting... max_fd=8 num_probing=1 processing fd0 slot 1 hexdump of incoming packet: 0x000000: 16 03 03 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 0a ...hello world.. **** writing deferred on fd -1 probing for ssh probing for ssl connecting to localhost:etlservicemgr family 10 len 28 connecting to localhost:cslistener family 10 len 28 ssl:connection from localhost:39620 to localhost:dynamid forwarded from localhost:35176 to localhost:etlservicemgr flushing deferred data to fd 5 selecting... max_fd=8 num_probing=0 processing fd1 slot 1 activity on fd5 selecting... max_fd=8 num_probing=0 ok 7 - SSL during SSH being established ssh:connection from localhost:39618 to localhost:dynamid forwarded from localhost:45114 to localhost:cslistener ok 8 - SSH connection interrupted by SSL processing fd0 slot 1 activity on fd6 closing fd 6 closing fd 5 selecting... max_fd=8 num_probing=0 socket closed connection closed down killing 11066 ==11079== ==11079== HEAP SUMMARY: ==11079== in use at exit: 1,243 bytes in 11 blocks ==11079== total heap usage: 251 allocs, 240 frees, 298,417 bytes allocated ==11079== ==11079== 30 bytes in 1 blocks are definitely lost in loss record 3 of 9 ==11079== at 0x4C2CAAC: malloc (vg_replace_malloc.c:298) ==11079== by 0x4C2EC5F: realloc (vg_replace_malloc.c:785) ==11079== by 0x404CE9: defer_write (common.c:297) ==11079== by 0x407EB4: probe_client_protocol (probe.c:359) ==11079== by 0x403CCA: main_loop (sslh-select.c:405) ==11079== by 0x4075D8: main (sslh-main.c:663) ==11079== ==11079== 30 bytes in 1 blocks are definitely lost in loss record 4 of 9 ==11079== at 0x4C2EC15: realloc (vg_replace_malloc.c:785) ==11079== by 0x404CE9: defer_write (common.c:297) ==11079== by 0x407EB4: probe_client_protocol (probe.c:359) ==11079== by 0x403CCA: main_loop (sslh-select.c:405) ==11079== by 0x4075D8: main (sslh-main.c:663) ==11079== ==11079== LEAK SUMMARY: ==11079== definitely lost: 60 bytes in 2 blocks ==11079== indirectly lost: 0 bytes in 0 blocks ==11079== possibly lost: 0 bytes in 0 blocks ==11079== still reachable: 1,183 bytes in 9 blocks ==11079== suppressed: 0 bytes in 0 blocks ==11079== Reachable blocks (those to which a pointer was found) are not shown. ==11079== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11079== ==11079== For counts of detected and suppressed errors, rerun with: -v ==11079== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ==11066== ==11066== HEAP SUMMARY: ==11066== in use at exit: 5,291 bytes in 12 blocks ==11066== total heap usage: 252 allocs, 240 frees, 298,433 bytes allocated ==11066== ==11066== 30 bytes in 1 blocks are definitely lost in loss record 3 of 10 ==11066== at 0x4C2CAAC: malloc (vg_replace_malloc.c:298) ==11066== by 0x4C2EC5F: realloc (vg_replace_malloc.c:785) ==11066== by 0x404CE9: defer_write (common.c:297) ==11066== by 0x407EB4: probe_client_protocol (probe.c:359) ==11066== by 0x403CCA: main_loop (sslh-select.c:405) ==11066== by 0x4075D8: main (sslh-main.c:663) ==11066== ==11066== 30 bytes in 1 blocks are definitely lost in loss record 4 of 10 ==11066== at 0x4C2EC15: realloc (vg_replace_malloc.c:785) ==11066== by 0x404CE9: defer_write (common.c:297) ==11066== by 0x407EB4: probe_client_protocol (probe.c:359) ==11066== by 0x403CCA: main_loop (sslh-select.c:405) ==11066== by 0x4075D8: main (sslh-main.c:663) ==11066== ==11066== LEAK SUMMARY: ==11066== definitely lost: 60 bytes in 2 blocks ==11066== indirectly lost: 0 bytes in 0 blocks ==11066== possibly lost: 0 bytes in 0 blocks ==11066== still reachable: 5,231 bytes in 10 blocks ==11066== suppressed: 0 bytes in 0 blocks ==11066== Reachable blocks (those to which a pointer was found) are not shown. ==11066== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11066== ==11066== For counts of detected and suppressed errors, rerun with: -v ==11066== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) Testing sslh-fork spawned 11083 ./sslh-fork -v -f -u mockbuild --listen localhost:9002 --ssh localhost6:9000 --ssl localhost6:9001 -P /tmp/sslh_test.pid ==11083== Memcheck, a memory error detector ==11083== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==11083== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==11083== Command: ./sslh-fork -v -f -u mockbuild --listen localhost:9002 --ssh localhost6:9000 -ssl localhost6:9001 -P /tmp/sslh_test.pid ==11083== ssh addr: localhost:cslistener. libwrap service: sshd log_level: 1 family 10 10 [] [fork] ssl addr: localhost:etlservicemgr. libwrap service: (null) log_level: 1 family 10 10 [] [] listening on: localhost:dynamid [] localhost:dynamid [] timeout: 2 on-timeout: ssh listening to 2 addresses sslh-fork 3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 started turning into mockbuild capabilities: = ***Test: SSL connection accepted fd 5 hexdump of incoming packet: 0x000000: 16 03 03 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 0a ...hello world.. **** writing deferred on fd -1 probing for ssh probing for ssl connecting to localhost:etlservicemgr family 10 len 28 ssl:connection from localhost:39626 to localhost:dynamid forwarded from localhost:35182 to localhost:etlservicemgr flushing deferred data to fd 3 ok 9 - SSL connection ***Test: Shy SSH connection server socket closed accepted fd 5 connection closed down ==11086== ==11086== HEAP SUMMARY: ==11086== in use at exit: 1,189 bytes in 10 blocks ==11086== total heap usage: 162 allocs, 152 frees, 131,015 bytes allocated ==11086== ==11086== LEAK SUMMARY: ==11086== definitely lost: 0 bytes in 0 blocks ==11086== indirectly lost: 0 bytes in 0 blocks ==11086== possibly lost: 0 bytes in 0 blocks ==11086== still reachable: 1,189 bytes in 10 blocks ==11086== suppressed: 0 bytes in 0 blocks ==11086== Reachable blocks (those to which a pointer was found) are not shown. ==11086== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11086== ==11086== For counts of detected and suppressed errors, rerun with: -v ==11086== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) timed out, connect to ssh connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39630 to localhost:dynamid forwarded from localhost:45122 to localhost:cslistener flushing deferred data to fd 3 ok 10 - Shy SSH connection ***Test: Bold SSH connection accepted fd 5 server socket closed connection closed down hexdump of incoming packet: 0x000000: 53 53 48 2d 32 2e 30 20 74 65 73 74 73 75 69 74 SSH-2.0 testsuit 0x000010: 65 09 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a e.hello world. **** writing deferred on fd -1 probing for ssh ==11088== ==11088== HEAP SUMMARY: ==11088== in use at exit: 1,189 bytes in 10 blocks ==11088== total heap usage: 168 allocs, 158 frees, 144,983 bytes allocated ==11088== ==11088== LEAK SUMMARY: ==11088== definitely lost: 0 bytes in 0 blocks ==11088== indirectly lost: 0 bytes in 0 blocks ==11088== possibly lost: 0 bytes in 0 blocks ==11088== still reachable: 1,189 bytes in 10 blocks ==11088== suppressed: 0 bytes in 0 blocks ==11088== Reachable blocks (those to which a pointer was found) are not shown. ==11088== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11088== ==11088== For counts of detected and suppressed errors, rerun with: -v ==11088== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39634 to localhost:dynamid forwarded from localhost:45126 to localhost:cslistener flushing deferred data to fd 3 ok 11 - Bold SSH connection ***Test: incomplete SSH first frame server socket closed accepted fd 5 connection closed down hexdump of incoming packet: 0x000000: 53 53 SS **** writing deferred on fd -1 probing for ssh ==11090== ==11090== HEAP SUMMARY: ==11090== in use at exit: 1,189 bytes in 10 blocks ==11090== total heap usage: 169 allocs, 159 frees, 145,013 bytes allocated ==11090== ==11090== LEAK SUMMARY: ==11090== definitely lost: 0 bytes in 0 blocks ==11090== indirectly lost: 0 bytes in 0 blocks ==11090== possibly lost: 0 bytes in 0 blocks ==11090== still reachable: 1,189 bytes in 10 blocks ==11090== suppressed: 0 bytes in 0 blocks ==11090== Reachable blocks (those to which a pointer was found) are not shown. ==11090== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11090== ==11090== For counts of detected and suppressed errors, rerun with: -v ==11090== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) hexdump of incoming packet: 0x000000: 48 2d 32 2e 30 20 74 65 73 74 73 75 69 74 65 09 H-2.0 testsuite. 0x000010: 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a hello world. **** writing deferred on fd -1 probing for ssh connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39638 to localhost:dynamid forwarded from localhost:45130 to localhost:cslistener flushing deferred data to fd 3 ok 12 - Incomplete first SSH frame ***Test: One SSL half-started then one SSH accepted fd 5 server socket closed connection closed down accepted fd 5 hexdump of incoming packet: 0x000000: 16 03 03 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 0a ...hello world.. **** writing deferred on fd -1 probing for ssh probing for ssl ==11092== ==11092== HEAP SUMMARY: ==11092== in use at exit: 1,189 bytes in 10 blocks ==11092== total heap usage: 170 allocs, 160 frees, 145,015 bytes allocated ==11092== ==11092== LEAK SUMMARY: ==11092== definitely lost: 0 bytes in 0 blocks ==11092== indirectly lost: 0 bytes in 0 blocks ==11092== possibly lost: 0 bytes in 0 blocks ==11092== still reachable: 1,189 bytes in 10 blocks ==11092== suppressed: 0 bytes in 0 blocks ==11092== Reachable blocks (those to which a pointer was found) are not shown. ==11092== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11092== ==11092== For counts of detected and suppressed errors, rerun with: -v ==11092== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) connecting to localhost:etlservicemgr family 10 len 28 ssl:connection from localhost:39642 to localhost:dynamid forwarded from localhost:35200 to localhost:etlservicemgr flushing deferred data to fd 3 timed out, connect to ssh connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39644 to localhost:dynamid forwarded from localhost:45138 to localhost:cslistener flushing deferred data to fd 3 ok 13 - SSH during SSL being established ok 14 - SSL connection interrupted by SSH ***Test: One SSH half-started then one SSL server socket closed accepted fd 5 server socket closed connection closed down connection closed down ==11095== ==11095== HEAP SUMMARY: ==11095== in use at exit: 1,189 bytes in 10 blocks ==11095== total heap usage: 168 allocs, 158 frees, 144,983 bytes allocated ==11095== ==11095== LEAK SUMMARY: ==11095== definitely lost: 0 bytes in 0 blocks ==11095== indirectly lost: 0 bytes in 0 blocks ==11095== possibly lost: 0 bytes in 0 blocks ==11095== still reachable: 1,189 bytes in 10 blocks ==11095== suppressed: 0 bytes in 0 blocks ==11095== Reachable blocks (those to which a pointer was found) are not shown. ==11095== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11095== ==11095== For counts of detected and suppressed errors, rerun with: -v ==11095== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==11094== ==11094== HEAP SUMMARY: ==11094== in use at exit: 1,189 bytes in 10 blocks ==11094== total heap usage: 162 allocs, 152 frees, 131,015 bytes allocated ==11094== ==11094== LEAK SUMMARY: ==11094== definitely lost: 0 bytes in 0 blocks ==11094== indirectly lost: 0 bytes in 0 blocks ==11094== possibly lost: 0 bytes in 0 blocks ==11094== still reachable: 1,189 bytes in 10 blocks ==11094== suppressed: 0 bytes in 0 blocks ==11094== Reachable blocks (those to which a pointer was found) are not shown. ==11094== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11094== ==11094== For counts of detected and suppressed errors, rerun with: -v ==11094== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) timed out, connect to ssh connecting to localhost:cslistener family 10 len 28 ssh:connection from localhost:39652 to localhost:dynamid forwarded from localhost:45144 to localhost:cslistener flushing deferred data to fd 3 accepted fd 5 hexdump of incoming packet: 0x000000: 16 03 03 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 0a ...hello world.. **** writing deferred on fd -1 probing for ssh probing for ssl connecting to localhost:etlservicemgr family 10 len 28 ssl:connection from localhost:39656 to localhost:dynamid forwarded from localhost:35212 to localhost:etlservicemgr flushing deferred data to fd 3 ok 15 - SSL during SSH being established ok 16 - SSH connection interrupted by SSL server socket closed server socket closed connection closed down connection closed down killing 11083 ==11100== ==11100== HEAP SUMMARY: ==11100== in use at exit: 1,189 bytes in 10 blocks ==11100== total heap usage: 162 allocs, 152 frees, 131,015 bytes allocated ==11100== ==11100== LEAK SUMMARY: ==11100== definitely lost: 0 bytes in 0 blocks ==11100== indirectly lost: 0 bytes in 0 blocks ==11100== possibly lost: 0 bytes in 0 blocks ==11100== still reachable: 1,189 bytes in 10 blocks ==11100== suppressed: 0 bytes in 0 blocks ==11100== Reachable blocks (those to which a pointer was found) are not shown. ==11100== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11100== ==11100== For counts of detected and suppressed errors, rerun with: -v ==11100== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==11098== ==11098== HEAP SUMMARY: ==11098== in use at exit: 1,189 bytes in 10 blocks ==11098== total heap usage: 168 allocs, 158 frees, 144,983 bytes allocated ==11098== ==11098== LEAK SUMMARY: ==11098== definitely lost: 0 bytes in 0 blocks ==11098== indirectly lost: 0 bytes in 0 blocks ==11098== possibly lost: 0 bytes in 0 blocks ==11098== still reachable: 1,189 bytes in 10 blocks ==11098== suppressed: 0 bytes in 0 blocks ==11098== Reachable blocks (those to which a pointer was found) are not shown. ==11098== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11098== ==11098== For counts of detected and suppressed errors, rerun with: -v ==11098== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==11083== ==11083== HEAP SUMMARY: ==11083== in use at exit: 1,189 bytes in 10 blocks ==11083== total heap usage: 134 allocs, 124 frees, 84,279 bytes allocated ==11083== ==11083== 8 bytes in 1 blocks are definitely lost in loss record 2 of 8 ==11083== at 0x4C2CB6B: malloc (vg_replace_malloc.c:299) ==11083== by 0x402B87: start_listen_sockets (common.c:122) ==11083== by 0x405CB8: main (sslh-main.c:630) ==11083== ==11083== LEAK SUMMARY: ==11083== definitely lost: 8 bytes in 1 blocks ==11083== indirectly lost: 0 bytes in 0 blocks ==11083== possibly lost: 0 bytes in 0 blocks ==11083== still reachable: 1,181 bytes in 9 blocks ==11083== suppressed: 0 bytes in 0 blocks ==11083== Reachable blocks (those to which a pointer was found) are not shown. ==11083== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11083== ==11083== For counts of detected and suppressed errors, rerun with: -v ==11083== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ==11084== ==11085== ==11084== HEAP SUMMARY: ==11084== in use at exit: 1,189 bytes in 10 blocks ==11084== total heap usage: 134 allocs, 124 frees, 84,279 bytes allocated ==11084== ==11085== HEAP SUMMARY: ==11085== in use at exit: 1,189 bytes in 10 blocks ==11085== total heap usage: 134 allocs, 124 frees, 84,279 bytes allocated ==11085== ==11085== LEAK SUMMARY: ==11084== LEAK SUMMARY: ==11085== definitely lost: 0 bytes in 0 blocks ==11084== definitely lost: 0 bytes in 0 blocks ==11085== indirectly lost: 0 bytes in 0 blocks ==11084== indirectly lost: 0 bytes in 0 blocks ==11085== possibly lost: 0 bytes in 0 blocks ==11084== possibly lost: 0 bytes in 0 blocks ==11085== still reachable: 1,189 bytes in 10 blocks ==11084== still reachable: 1,189 bytes in 10 blocks ==11085== suppressed: 0 bytes in 0 blocks ==11084== suppressed: 0 bytes in 0 blocks ==11085== Reachable blocks (those to which a pointer was found) are not shown. ==11084== Reachable blocks (those to which a pointer was found) are not shown. ==11085== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11084== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==11085== ==11084== ==11085== For counts of detected and suppressed errors, rerun with: -v ==11084== For counts of detected and suppressed errors, rerun with: -v ==11085== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==11084== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ***Test: Connecting to non-existant server spawned 11103 ssh addr: localhost:9003. libwrap service: sshd log_level: 1 family 10 10 [] [fork] ssl addr: localhost:9003. libwrap service: (null) log_level: 1 family 10 10 [] [] listening on: localhost:dynamid [] localhost:dynamid [] timeout: 2 on-timeout: ssh listening to 2 addresses sslh-select 3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 started turning into mockbuild capabilities: = selecting... max_fd=5 num_probing=0 accepted fd 5 on slot 0 selecting... max_fd=6 num_probing=1 processing fd0 slot 0 hexdump of incoming packet: 0x000000: 68 65 6c 6c 6f hello **** writing deferred on fd -1 probing for ssh probing for ssl selecting... max_fd=6 num_probing=1 ***Test: No hostname in address spawned 11105 ok 17 - Exit status on illegal option ***Test: Changing to non-existant username 9002: names must be fully specified as hostname:port exited with 1 spawned 11106 ssh addr: localhost:cslistener. libwrap service: sshd log_level: 1 family 10 10 [] [fork] ssl addr: localhost:etlservicemgr. libwrap service: (null) log_level: 1 family 10 10 [] [] listening on: localhost:dynamid [] localhost:dynamid [] timeout: 2 on-timeout: ssh listening to 2 addresses sslh-select 3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 started mockbuild_doesnt_exist: not found exited with 2 ok 18 - Exit status on non-existant username ***Test: Can't open PID file spawned 11107 ssh addr: localhost:cslistener. libwrap service: sshd log_level: 1 family 10 10 [] [fork] ssl addr: localhost:etlservicemgr. libwrap service: (null) log_level: 1 family 10 10 [] [] listening on: localhost:dynamid [] localhost:dynamid [] timeout: 2 on-timeout: ssh listening to 2 addresses /dont_exist//tmp/sslh_test.pid: No such file or directory exited with 3 ok 19 - Exit status if can't open PID file ***Test: Can't resolve address spawned 11108 Name or service not known `blahblah.dontexist:9000' Name or service not known `blahblah.dontexist' exited with 4 ok 20 - Exit status if can't resolve address 1..20 + exit 0 Processing files: sslh-1.19c-1.fc27.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.iCjtp2 + umask 022 + cd /builddir/build/BUILD + cd sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + DOCDIR=/builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/doc/sslh + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/doc/sslh + cp -pr README.md /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/doc/sslh + cp -pr ChangeLog /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/doc/sslh + cp -pr example.cfg /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/doc/sslh + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.rzy6sW + umask 022 + cd /builddir/build/BUILD + cd sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + LICENSEDIR=/builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/licenses/sslh + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/licenses/sslh + cp -pr COPYING /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64/usr/share/licenses/sslh + exit 0 Provides: config(sslh) = 1.19c-1.fc27 sslh = 1.19c-1.fc27 sslh(x86-64) = 1.19c-1.fc27 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh shadow-utils Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libcap.so.2()(64bit) libconfig.so.9()(64bit) libpcreposix.so.0()(64bit) libsystemd.so.0()(64bit) libsystemd.so.0(LIBSYSTEMD_209)(64bit) libwrap.so.0()(64bit) rtld(GNU_HASH) Processing files: sslh-debugsource-1.19c-1.fc27.x86_64 Provides: sslh-debugsource = 1.19c-1.fc27 sslh-debugsource(x86-64) = 1.19c-1.fc27 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: sslh-debuginfo-1.19c-1.fc27.x86_64 Provides: debuginfo(build-id) = 3625cb2378bb33202bb99e5017ef5eb9a2198ca2 debuginfo(build-id) = d5b630ff33ebb62d4a02e880d78b2ea393a81eeb sslh-debuginfo = 1.19c-1.fc27 sslh-debuginfo(x86-64) = 1.19c-1.fc27 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: sslh-debugsource(x86-64) = 1.19c-1.fc27 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64 Wrote: /builddir/build/RPMS/sslh-1.19c-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/sslh-debugsource-1.19c-1.fc27.x86_64.rpm Wrote: /builddir/build/RPMS/sslh-debuginfo-1.19c-1.fc27.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.irc1ZQ + umask 022 + cd /builddir/build/BUILD + cd sslh-3a61c8b0b1cd846d0cd3a2c590a52fe9bc5974f7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/sslh-1.19c-1.fc27.x86_64 + exit 0 Child return code was: 0