Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2011 08:54:02 -0500 (EST)
From:      Wietse Venema <wietse@porcupine.org>
To:        Jase Thew <freebsd@beardz.net>
Cc:        Wietse Venema <wietse@porcupine.org>, Sahil Tandon <sahil+freebsd-ports@tandon.net>, Renato Botelho <garga@freebsd.org>, Kurt Jaeger <lists@opsec.eu>, freebsd-ports@FreeBSD.org, Chris Rees <utisoft@gmail.com>
Subject:   Re: "postfix-current" broken on amd64 platform
Message-ID:  <3SkkT66wwmzk2RT@spike.porcupine.org>
In-Reply-To: <4EC46B2B.40104@beardz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Jase Thew:
[ Charset ISO-8859-1 unsupported, converting... ]
> On 16/11/2011 23:30, Sahil Tandon wrote:
> > On Wed, 2011-11-16 at 13:16:34 -0500, Wietse Venema wrote:
> >
> [SNIP]
> >> It would be immensely helpful if run-time details could be made
> >> available including line of source code, and any system configuration
> >> details that are necessary to reproduce the condition.
> >
> > +1
> >
> > I hope someone with access to the cluster machine can provide this
> > information.  As much as I've tried to mimic the cluster conditions
> > myself, I am unable to reproduce the fatal socket error on any FreeBSD
> > version.
> >
> 
> I've just managed to reproduce the fatal socket error locally.
> 
> It can occur when IPv6 is enabled, but you don't have any IPv6 addresses 
> configured on any interfaces. (Yes, having an IPv6 enabled interface 
> with no addresses assigned is non-RFC3513 compliant, but it can and does 
> occur).
> 
> The cause (at least locally) is the socket call on line 214 in 
> util/inet_proto.c which fails with errno 43 (EPROTONOSUPPORT - Protocol 
> not supported).

Thanks, this is very helpful. That code has not changed in 6 years,
so we are looking at an incompatible change in build environment.

Would it be better to make the build environment RFC-compliant?

It is easy enough for me to work around a non-standard socket()
result (*), but the same bug may trip up other packages in the
future, especially packages that pay attention to errors. Sloppy
programmers should never be rewarded.

	Wietse

(*) Add a test for EPROTONOSUPPORT, to the existing test for EAFNOSUPPORT.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3SkkT66wwmzk2RT>