failing tests in the testsuite on debian

Michael Tokarev mjt at tls.msk.ru
Sat Nov 12 12:46:19 UTC 2022


Hi!

I tried to run samba selftests in debian, at least the --quick tests.
But I always end up with whole thing failing.

There's seems to be a constant issue with rpc_proxy tests. Regular `waf test --quick' fails
in the way as shown in rpc_proxyQ.log (attached).  But when run just this single test, --
`waf test --tests=samba4.ntvfs.cifs.ntlm.base.unlink', it fails too but differently, as shown
in  rpc_proxy1.log. It is interesting that in first case it fails with undef-ptr-deref in
in selftest/selftest.pl:

sub getlog_env($)
{
         my ($envname) = @_;
         return "" if ($envname eq "none");
         my $env = get_running_env($envname);
         return $env->{target}->getlog_env($env);  <<== here, apparently $env->{target} is undef
}


but this does not happen when just this (set of 2) test is requested.


Next, there are a few more tests failing, even from the --quick set:

[35(230)/370 at 58s] samba3.smb2.session enc(nt4_dc)
UNEXPECTED(failure): samba3.smb2.session enc.reauth1(nt4_dc)
REASON: Exception: Exception: ../../source4/torture/smb2/session.c:247: (&io1)->out.file_attr was 128 (0x80), expected 32 (0x20): out.file_attr incorrect
UNEXPECTED(failure): samba3.smb2.session enc.reauth2(nt4_dc)
REASON: Exception: Exception: ../../source4/torture/smb2/session.c:323: (&io1)->out.file_attr was 128 (0x80), expected 32 (0x20): out.file_attr incorrect
UNEXPECTED(failure): samba3.smb2.session enc.reauth3(nt4_dc)
REASON: Exception: Exception: ../../source4/torture/smb2/session.c:414: (&io1)->out.file_attr was 128 (0x80), expected 32 (0x20): out.file_attr incorrect
UNEXPECTED(failure): samba3.smb2.session enc.reauth4(nt4_dc)

(whole samba3.smb2.session enc.reauth4 seems to be failing)


[50(509)/370 at 5m31s, 1 errors] samba3.rpc.schannel_anon_setpw anonymous password set (schannel enforced server-side)(nt4_dc_schannel)
smbtorture 4.17.2-Debian
Using seed 1668256024
Failed with dcerpc_flags=0x800220
WARNING!: ../../source4/torture/rpc/schannel.c:796: status was NT_STATUS_CONNECTION_DISCONNECTED, expected NT_STATUS_OK: Failed to connect without 
schannel
Failed with dcerpc_flags=0x800220
UNEXPECTED(failure): samba3.rpc.schannel_anon_setpw anonymous password set (schannel enforced server-side).schannel_anon_setpw(nt4_dc_schannel)


Testing unlink after ntcreatex with DELETE access
UNEXPECTED(uxsuccess): samba4.ntvfs.cifs.ntlm.base.unlink.unlink(ad_dc_ntvfs)

(this is a part of the unlink test above, which also fails with rpc_proxy).


The test "framework" in samba is insanely twisted.  I'd love to get some help
here - with general explanation about how the selftest works, and about the
tests which are failing, especially the rpc_proxy one as I can't seem to be
able to bypass its failure.


It currently seems like I'm just doing something wrong here, and samba on debian
is quite broken, as it can't pass even the minimal of its own testsuite.

All the *_wrapper bits are the ones coming from samba source.

Thank you!

/mjt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpc_proxyQ.log
Type: text/x-log
Size: 4763 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20221112/5f0b3091/rpc_proxyQ.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rpc_proxy1.log
Type: text/x-log
Size: 6298 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20221112/5f0b3091/rpc_proxy1.bin>


More information about the samba-technical mailing list