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

Re: (ITS#4734) Segmentation fault



Christopher Moore wrote:

>> This trace indicates that an attribute in the given entry had NULL for
>> its AttributeDescription, which is pretty much a "this-can't-happen"
>> situation. It would probably be useful to look at the contents of the
>> Entry e in frame 2, and all of its attributes. How was this database
>> created, how was the entry created?
>>
> 
> I forgot to mention that I have just upgraded from Openldap 2.2.23 and the
> database was created by open-xchange.
> Here is entry e in frame 2. I hope this is what you are after:
> (gdb) frame 2
> #2  0x0807e491 in test_filter (op=0x8265c88, e=0x8266140, f=0x40d3b14c) at
> filterentry.c:797
> 797             for(a = attrs_find( e->e_attrs, desc );
> (gdb) print *e
> $1 = {e_id = 16777216, e_name = {bv_len = 100, bv_val = 0x8265ef5
> "c=open-xchange,dc=org"},
>   e_nname = {bv_len = 103, bv_val = 0x8265f5b "e"}, e_attrs = 0x8266168,
> e_ocflags = 0, e_bv = {
>     bv_len = 585, bv_val = 0x8265ef0 "\202\001è\026dc=open-xchange,dc=org"},
> e_private = 0x8265e90}
> (gdb)

Apparently you are using the OpenLDAP 2.2 database files with OpenLDAP 
2.3. This is not supported since the database format changed between 2.2 
and 2.3; you have to export with 2.2 slapcat and import with 2.3 slapadd 
as described in the docs on upgrading. This ITS will be closed.

-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc
   OpenLDAP Core Team            http://www.openldap.org/project/