Hello,

Below the core dump logs :
Core was generated by `/opt/openldap/libexec/slapd -h ldap://0.0.0.0:389 ld=
api://%2fvar%2frun%2fslapd%'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000049e251 in mdb_hasSubordinates (op=3D0x7f61a140d460, e=3D<va=
lue optimized out>, hasSubordinates=3D0x7f61a090e010) at operational.c:78
78                                           LDAP_SLIST_REMOVE( &op->o_extr=
a, &moi->moi_oe, OpExtra, oe_next );
(gdb) bt
#0  0x000000000049e251 in mdb_hasSubordinates (op=3D0x7f61a140d460, e=3D<va=
lue optimized out>, hasSubordinates=3D0x7f61a090e010) at operational.c:78
#1  0x00000000004a08ac in mdb_search (op=3D0x7f61a140ea30, rs=3D<value opti=
mized out>) at search.c:950
#2  0x0000000000000000 in ?? ()

Below slapd.conf file :
###########################################################################=
########
###########################################################################=
########
# Configuration commune

# Schema and objectClass definitions
include         /appli/ldap/conf/schema/core.schema
include         /appli/ldap/conf/schema/cosine.schema
include         /appli/ldap/conf/schema/nis.schema
include         /appli/ldap/conf/schema/inetorgperson.schema

# Schema de l annuaire defini dans le SDET des ENT
include         /appli/ldap/conf/schema/sdet.schema
include         /appli/ldap/conf/schema/ent.schema

# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile         /appli/ldap/tmp/slapd.pid

# List of arguments that were passed to the server
argsfile        /appli/ldap/tmp/slapd.args

# Read slapd.conf(5) for possible values
loglevel        stats sync
logfile         /appli/ldap/logs/sldap.log

# Where the dynamically loaded modules are stored
# No module is needed : there are statically loaded

ServerID        001

# The tool-threads parameter sets the actual amount of cpu's that is used f=
or indexing.
tool-threads 3
threads 16
concurrency 16

#conn_max_pending 1000
#conn_max_pending_auth 10000

backend         mdb

###########################################################################=
########
# Configuration du back-end=20
###########################################################################=
########
# Database ENT=20
database        mdb

# The base of your directory in database #1
suffix          "dc=3Dent,dc=3Dfr"
directory       /appli/ldap/data/slapd
rootdn          "cn=3Dadmin,ou=3Dsystem,dc=3Dent,dc=3Dfr"
rootpw          {MD5}XZkSIKB+Zet6uFQ0FpHKfQ=3D=3D
password-hash   {MD5}

# Parametres MDB
maxreaders 126
mode 0600
# Should be more than enough...
searchstack 16
#32 Gb should be enough...
# Set to 32 Go
maxsize 161061273600
# default values
lastmod TRUE
maxderefdepth 15
readonly FALSE
sync_use_subentry FALSE

# At some point, to get some stats, it could be interested to turn this on
monitoring FALSE

# ecriture diff=E9r=E9e
dbnosync TRUE
# ecriture tous les 15 minutes
checkpoint 0 15

###########################################################################=
#####
# Configuration INDEX
###########################################################################=
#####

#Globaux
index   objectClass                                             eq
index   active                                                  eq
index   ou                                                      eq
index   cn,uid                                                  eq
index   sn                                                      pres,sub,eq
index   entryCSN,entryUUID                                      eq
#Personnes
index   ENTPersonJointure                                       sub,eq
index   ENTPersonLogin                                          eq
index   mail                                                    eq
index   snNormalise                                             pres,sub,eq
index   ENTPersonneDN                                           eq,pres
index   ENTPersonProfils                                        eq
index   ENTPersonAlias                                          eq
index   givenNameNormalise                                      sub,eq
index   ENTCodeActivationParent                                 eq
index   cnNormalise                                             pres,sub,eq
index   ENTAuxPersonInit                                        eq
index   ENTEleveStructRattachId                                 eq
index   ENTAuxPersonCompteAAF                                   eq
index   ENTAuxPersRelEleveEleve                                 eq
index   ENTPersonStructRattach                                  eq
index   ENTAuxOtherEtab                                         eq
index   ENTPersonCodePostal                                     eq
index   ENTCodeActivationEleve                                  eq
index   ENTAuxPersonDeleteDate                                  pres,eq
index   ENTEleveClasses                                         eq
index   ENTEleveMEF                                             eq
index   ENTGroupeAnnuaireFiliere                                eq
index   userPassword                                            eq
#index  ENTPersonNomPatro                                       eq
index   givenName                                               pres,sub,eq
index   ENTEleveRelationValidee                                 eq=20

#Structures
index   ENTStructureJointure                                    eq
index   ENTPorteurCode                                          eq
index   ENTEtablissementStructRattachFctl                       eq
index   ENTStructureNomCourant                                  pres,sub,eq
index   ENTStructureUAI                                         eq=20
#Groupes
index   description                                             pres,sub,eq
index   descriptionNormalise                                    pres,sub,eq
index   ENTGroupeAnnuaireTitreNormalise                         pres,sub,eq
index   member                                                  pres,eq
index   owner                                                   eq
index   ENTGroupeAdminLocal                                     eq
index   ENTProfilDN                                             pres,eq
index   ENTReferentielCode                                      eq
index   ENTGroupeAnnuaireFonction                               pres,eq
index   ENTGroupeAnnuaireClasseId                               eq
index   ENTGroupeAnnuaireType                                   eq
index   ENTGroupeAnnuaireMefId                                  eq
index   ENTGroupeAnnuaireFiliereId                              eq
index   ENTDisciplineDN                                         eq
index   ENTGroupeAdminPere                                      eq
index   ENTFonctionDN                                           eq
index   ENTClasseDN                                             eq
index   ENTGroupeAnnuaireClasse                                 pres,eq
index   ENTAdminLocalEtab                                       eq
#Synchro portail
index   ENTSuiviSynchroEffectuee                                eq=20
# New AMEU 20130827
index   ENTGroupeAdminLienGroupeAnnuairePartenariat             eq
index   ENTPersonFonctions                                      eq
index   ENTGroupeAnnuaireGroupeEnseignement                     eq
index   ENTPersonNomPatro                                       pres,sub,eq
index   ENTStructureAcademie                                    eq
index   ENTStructureCommune                                     eq
index   ENTGroupeAdminLienGroupeAnnuaire                        eq
# New RLAR 20130904
index   ENTGroupeAnnuaireFonctionId                             eq
# New 20130914 =E0 20h00
index   ENTAuxPersonEtabAcces                                   eq
# New 20130917 =E0 17h38 confcall Serges Barbosa / Proc=E8dure export de je=
u de donn=E9es
index   modifyTimestamp                                         eq

# TMA-8585 04/11/2013
index   ENTGroupeAnnuaireMef                                    eq
index   ENTCodeActivationCode                                   eq
index   ENTEleveParents                                         eq

#2.1.1RC4
index   ENTAdminLocalCreateur                                   eq


# Save the time that the entry gets modified, for database #1
lastmod         on

# The admin dn has full write access, everyone else
# can read everything.
access to *
        by * read

###########################################################################=
####
# Configuration SYNCHRO
###########################################################################=
#####

# MULTI MASTER EN SE SYNCHRONISANT AVEC LE LDAP02 TP #
syncrepl rid=3D201
        provider=3Dldap://ldapp02:389
        type=3DrefreshAndPersist
        retry=3D"5 5 300 +"
        searchbase=3D"dc=3Dent,dc=3Dfr"
        attrs=3D"*,+"
        bindmethod=3Dsimple
        binddn=3D"cn=3Dadmin,ou=3Dsystem,dc=3Dent,dc=3Dfr"
        credentials=3Djungle
        logbase=3D"cn=3Ddelta-sync"
        logfilter=3D"(&(objectClass=3DauditWriteObject)(reqResult=3D0))"
        syncdata=3Daccesslog

mirrormode on

# Overlay configuration should be added after the database configuration
# D=E9finition de l'overlay li=E9 =E0 la r=E9plication maitre
overlay syncprov

syncprov-checkpoint 100 10
# D=E9finition de l'overlay li=E9 =E0 la r=E9plication maitre en delta-sync
overlay accesslog
logdb "cn=3Ddelta-sync"
logops writes
logsuccess TRUE
logpurge 3+00:00 1+00:00

###########################################################################=
#####
# Configuration de l'accesslog
###########################################################################=
#####
# Database delta-sync :
database mdb
suffix "cn=3Ddelta-sync"
directory /appli/ldap/data/cn=3Ddelta-sync
rootdn "cn=3Dadmin,ou=3Dsystem,dc=3Dent,dc=3Dfr"

#Some options to optimize acceslog :
index default,reqDN eq
index entryCSN,objectClass,reqEnd,reqResult,reqStart eq

#Parametres MDB
maxreaders 126
mode 0600
searchstack 16
# set to 10 Go
maxsize 21474836480
lastmod TRUE
maxderefdepth 15
readonly FALSE
dbnosync TRUE
checkpoint 0 15

overlay syncprov
syncprov-nopresent TRUE
syncprov-reloadhint TRUE


-----Message d'origine-----
De=A0: Howard Chu [mailto:[email protected]]=20
Envoy=E9=A0: jeudi 9 juillet 2015 17:13
=C0=A0: LARRIEU-MANAN, Richard; [email protected]
Objet=A0: Re: (ITS#8194) Service slapd falldown in a search with client lda=
psearch

[email protected] wrote:
> Full_Name: CGI - Richard Larrieu-Manan
> Version: 2.4.41
> OS: Red Hat 4.4.7-4
> URL: ftp://ftp.openldap.org/incoming/CGI_20150709.core.33604.tgz
> Submission from: (NULL) (195.6.127.108)
>
>
> Hello,
>
> When searching in the directory ldap 2.4.41 with ldapsearch client, 1=20
> out of 4 ldap service falldown. So I have provided you a core dump
> (ftp://ftp.openldap.org/incoming/CGI_20150709.core.33604.tgz) during=20
> the bug. In
> 2.4.38 version of the problem does not arise.

Thanks for the report but we cannot use your core file. Please send your sl=
apd configuration and the stack trace from the core.

http://www.openldap.org/faq/data/cache/59.html

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



Reply via email to