On Wed, 2011-08-31 at 09:16 +0800, Ian Kent wrote:
> On Tue, 2011-08-30 at 14:27 -0400, Leonardo Chiquitto wrote:
> > Hello,
> > A customer reported a segmentation fault in automount (one occurrence
> > so far, but we have a core dump). More information about the exact
> > autofs version and included patches below.
> Thanks for reporting this and for spending the time to try and work out
> what's going on.
> I'll have a look see too.
btw, you may find this patch useful too, although you may need to do a
bit of work for it to apply, not sure (since the line numbers you give
don't quite match mine).
When getting paged results from an LDAP server the server returns an
opaque cookie (of type berval) that is used to retrieve the next page.
The criteria for deciding if there are more pages is that the berval
value is non-null and has a non-zero length.
To determine if the berval value has non-zero length autofs checks the
strlen() of the value but on ppc64 and s390x this can return 0 even if
the value has non-zero length causing a premature termination of the
Fix this by also checking the berval length field.
Also make sure we free the opaque cookie when the query is finished.