Hi, On 19/11/16 at 22:35 +0100, Michael Biebl wrote: > control: tags -1 + moreinfo unreproducible > > Am 19.11.2016 um 08:04 schrieb Lucas Nussbaum: > > >> =============================================================================== > >> need to be root to run this test - skipping > >> SKIP sndrcv_relp_dflt_pt.sh (exit status: 77) > >> > > I can't reproduce the issue when building the package locally. > The package I uploaded 2 days ago also built fine > https://buildd.debian.org/status/package.php?p=rsyslog > > > Can you provide more information how I can reproduce the issue?
Hi, Note that the error you quoted is not the one that is making the build to fail. It's: FAIL: empty-hostname.sh ======================= ====================================================================== ------------------------------------------------------------ Test: ./empty-hostname.sh ------------------------------------------------------------ rsyslogd started with pid 71369 imdiag[13500]: mainqueue empty expected hostname "localhost" not found in logs, rsyslog.out.log is: 2016-11-18T23:01:17.942712+00:00 ip-172-31-8-210 rsyslogd: [origin software="rsyslogd" swVersion="8.23.0" x-pid="71369" x-info="http://www.rsyslog.com"] start 2016-11-18T23:01:19.984583+00:00 ip-172-31-8-210 rsyslogd: [origin software="rsyslogd" swVersion="8.23.0" x-pid="71369" x-info="http://www.rsyslog.com"] exiting on signal 15. FAIL empty-hostname.sh (exit status: 1) I can still reproduce the problem. That's the failing test: # cat empty-hostname.sh #!/bin/bash # This is part of the rsyslog testbench, licensed under ASL 2.0 echo ====================================================================== . $srcdir/diag.sh init . $srcdir/diag.sh generate-conf . $srcdir/diag.sh add-conf ' action(type="omfile" file="rsyslog.out.log") ' export RSYSLOG_PRELOAD=.libs/liboverride_gethostname.so . $srcdir/diag.sh startup . $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages . $srcdir/diag.sh wait-shutdown # we need to wait until rsyslogd is finished! grep " localhost " < rsyslog.out.log if [ ! $? -eq 0 ]; then echo "expected hostname \"localhost\" not found in logs, rsyslog.out.log is:" cat rsyslog.out.log . $srcdir/diag.sh error-exit 1 fi; . $srcdir/diag.sh exit It seems that export RSYSLOG_PRELOAD=.libs/liboverride_gethostname.so is supposed to load a library that will override gethostname? That file exists. It seems to work: (unstable-amd64-sbuild)root@ip-172-31-14-215:~/rsyslog-8.23.0/tests# export LD_PRELOAD=.libs/liboverride_gethostname.so (unstable-amd64-sbuild)root@ip-172-31-14-215:~/rsyslog-8.23.0/tests# hostname (unstable-amd64-sbuild)root@ip-172-31-14-215:~/rsyslog-8.23.0/tests# export LD_PRELOAD= (unstable-amd64-sbuild)root@ip-172-31-14-215:~/rsyslog-8.23.0/tests# hostname ip-172-31-14-215 But it doesn't seem to work when loaded during the test, by diag.sh. Strange. Lucas