make test spin / Having trouble debugging samba on FreeBSD (threads)
Andrew Bartlett
abartlet at samba.org
Sat Sep 29 17:13:34 MDT 2012
I've been for some time puzzled as to why the build farm fails quite so
many tests, with name resolution errors.
I first thought it was to do with samba_dnsupdate not locking the
dns_hosts_file, so I reworked that code to have much more certain
locking behaviour.
Noticing that one of the failing platforms is FreeBSD, I've reproduced
it here on 8.2. When I run make test or make testenv I get:
/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate: Traceback
(most recent call last):
/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate: File
"/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate", line
507, in <module>
/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate:
get_credentials(lp)
/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate: File
"/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate", line
121, in get_credentials
/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate:
creds.get_named_ccache(lp, ccachename)
/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate:
RuntimeError: kinit for LOCALDC$@SAMBA.EXAMPLE.COM failed (Cannot
contact any KDC for requested realm)
For some reason the kdc, cldapd, dns and echo tasks spin:
/usr/local/samba-build/source4/scripting/bin/samba_dnsupdate:
97782 2 S+ 0:00.00 samba: task[dcesrv] (samba)
97783 2 I+ 0:00.01 samba: task[nbtd] (samba)
97784 2 S+ 0:00.01 samba: task[wreplsrv] (samba)
97785 2 S+ 0:00.01 samba: task[ldapsrv] (samba)
97786 2 R+ 0:15.38 samba: task[cldapd] (samba)
97787 2 R+ 0:13.64 samba: task[kdc] (samba)
97788 2 S+ 0:00.04 samba: task[dreplsrv] (samba)
97789 2 S+ 0:00.00 samba: task[winbind] (samba)
97790 2 S+ 0:00.00 samba: task[ntp_signd] (samba)
97791 2 I+ 0:00.09 samba: task[kccsrv] (samba)
97792 2 S+ 0:00.01 samba: task[dnsupdate] (samba)
97793 2 R+ 0:15.75 samba: task[dns] (samba)
97794 2 R+ 0:15.58 samba: task[echo] (samba)
97795 2 S+ 0:00.00 samba: task[smbsrv] (samba)
What I need help with is running gdb on samba. I know it sounds silly,
but neither gdb, nor gdb72 will attach to the process (gdb -p <PID>),
each giving internal assertions on threads. Is there a different
debugger I should use, or should I try a newer FreeBSD than 8.2? I
already tried compiling with --disable-pthredpool.
Volker:
Does the full (top level) 'make test' pass for you in your FreeBSD
development environment?
Thanks,
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
More information about the samba-technical
mailing list