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

Re: (ITS#5355) back-meta calls back-ldap directly



vorlon@debian.org wrote:
> On Sun, Jun 29, 2008 at 05:23:57PM -0700, Howard Chu wrote:
>> Steve Langasek wrote:
>>> Is the correct fix to add
>>> this function to the ldap_extra_t struct, as in the attached patch?
> 
>> Pretty much. There are a few other functions that need to be added as 
>> well. All of them are provided in current CVS HEAD, just grab the 
>> relevant changes from there.
> 
> Ok.  With the patch from CVS HEAD applied, I'm seeing a segfault in make
> test (specifically, the meta backend test):
> 
>  >>>>> Starting test035-meta ...
>  running defines.sh
> 
>  Starting slapd on TCP/IP port 9011...
>  Using ldapsearch to check that slapd is running...
>  Using ldapadd to populate the database...
>  Starting slapd on TCP/IP port 9012...
>  Using ldapsearch to check that slapd is running...
>  Using ldapadd to populate the database...
>  Starting slapd on TCP/IP port 9013...
>  /home/devel/openldap/build-area/openldap2.3-2.4.10/tests/scripts/test035-meta: line 118: 22990 Segmentation fault      $SLAPD -f $CONF3 -h $URI3 -d $LVL /$TIMING > $LOG3 2>&1

I'm not seeing anything like that, but I don't build back-meta as a 
module.  It would be helpful if you provide at least a stack backtrace 
for that sigsegv, to help understand where and why it occurred.

> Are you seeing this as well, or is this somehow specific to Debian?  (It
> doesn't seem like it should be related to libltdl in any way, and we don't
> have any other patches that touch the meta backend; and I saw this segfault
> both with the version of the patch I sent, and the one extracted from CVS.)
> Unfortunately, running these tests under gdb seems to be pretty awkward. :/

One thing that is still missing from that test is that if you build 
back-ldap as a module, you need to load it before opening a back-meta 
database, in order load the requested symbols.  I'm fixing this right now.

p.


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
-----------------------------------
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   ando@sys-net.it
-----------------------------------