[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4168) autofs with ldap triggers segfault in kernel

On Mon, 2005-11-14 at 21:24 +0100, Guillaume Rousse wrote:
> Pierangelo Masarati wrote:
> > On Mon, 2005-11-14 at 16:29 +0000, Guillaume.Rousse@inria.fr wrote:
> > 
> >>Pierangelo Masarati wrote:
> >>
> >>>Did you compile with -DLDAP_DEPRECATED?
> >>
> >>I guess you're speaking of autofs here ? No, I did not. Should I try ?
> > 
> > 
> > Yes.  Just in case, as I cannot see a possible difference between
> > OpenLDAP 2.2 and 2.3 up to there.  The only noticeable thing that
> > happens during ldap_init() is that global opts get copied into the LDAP
> > handler.  Unless the issue is over there (but it would have appeared
> > ages ago...)
> It works OK. It seems to imply all apps build against openldap should 
> define it, otherwise strange things may happen.

Well, as I said, everything has worked fine so far on my x86_64 (but I
don't use autofs); I had issues on Solaris 8 with 64 bit compiles, and I
had to fix them accordingly.  Typically these issues show up when
explicit casts are used, because they don't allow compilers to issue
warnings.  In this specific case there seems to be little to do on the
OpenLDAP side, because ldap_{s,g}et_option() interface heavily relies on
explicit casts.

Another approach would be to recommend apps developers to move to the
non-deprecated APIs.  However, I always find a lot of resistance when it
comes to modify code that "ever worked so far".

Do you think I can close this ITS?


Ing. Pierangelo Masarati
Responsabile Open Solution

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it