[PATCH] Fix tsocket on solaris

Stefan (metze) Metzmacher metze at samba.org
Thu Apr 8 02:16:30 MDT 2010


Bernd Markgraf schrieb:
> On Thu, 2010-04-08 at 07:56 +1000, Andrew Bartlett wrote:
>> On Wed, 2010-04-07 at 15:35 +0200, Bernd Markgraf wrote:
>>> On Wed, 2010-04-07 at 22:14 +1000, Andrew Bartlett wrote:
>>>> Solaris seems to error out (EINVAL) if sendto has a socklen parameter
>>>> that isn't the same as the sizeof() for the relevant socket type.
>>>>
>>>> That is, we can't use sizeof(struct sockaddr_storage).
>>>>
>>>> This does not show up on the build farm, as we use socket_wrapper, which
>>>> plays other games.
>>> does configure.developer use the socket_wrapper as well? If so I would
>>> try that as well. 
>>> Using this patch I now even don't see the cldap netlogon request reach
>>> the S4 server. Attaching a debugger and setting a breakpoint to
>>> cldapd_netlogon_request doesn't break so it seems I don't run to that
>>> point when I try to join the S4 domain. I do see the request being sent
>>> in the network trace though. Instead I now see a "Node status reply
>>> being sent to xxx.xxx.xxx.xxx" but that packet doesn't seem to hit the
>>> wire...
>> Can you try again with metze's most recent patch?
> I already did :-)
> 
>> Also, so we can reproduce, what is the exact version of Solaris that
>> causes the problem?
> The S4 DC is running on
>  uname -a
> SunOS kauai 5.10 Generic_142901-07 i86pc i386 i86pc Solaris
> 
> cat /etc/release 
>                        Solaris 10 10/09 s10x_u8wos_08a X86
>            Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
>                         Use is subject to license terms.
>                            Assembled 16 September 2009
> 
> The clients that failed run the same OS, but i tried both the
> SUN-supplied Samba 3.0.37 and 3.4.3 (built by myself)

Can you also test with the 3.5.2 release?
It uses the same CLDAP library as master and may have a similar problem,
it would be good if you could be able to trigger this bug
and see if the patch (it should apply there too) would fix the problem
there too. We could fix it for 3.5.3 then.

metze


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100408/969a9a47/attachment.pgp>


More information about the samba-technical mailing list