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

Re: Segmentation fault on 2.1.13



Howard Chu wrote:
Your debug level 32 is really not very informative. A higher debug level may
help identify the problem. The best thing would be to run slapadd under gdb
and get a backtrace from the crash.

OK now I use -d -1 , there is far more information , but I can't interpret the crash, exept that it happens on the last ldif entry. I am not used to gdb neither :-( , I'll read the doc ...

however, for now I give the result of my seg fault with slapadd -d -1 in case it gives someone a clue to where the problem is.

[root@corbeau /var/lib/ldap/enstb_meta]
$ /usr/local/jehan/openldap-2.1.13/sbin/slapadd -f /etc/openldap/slapd_meta.conf -l /Ldif/arbre-enstb_meta.ldif -n 3 -d -1
slapadd init: initiated tool.
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
reading config file /etc/openldap/slapd_meta.conf
....
backend_startup: starting "dc=enstb,dc=fr"
bdb_db_open: dc=enstb,dc=fr
bdb_db_open: dbenv_open(/var/lib/ldap/enstb_meta)
=> str2entry
>>> dnPrettyNormal: <dc=enstb,dc=fr>
<<< dnPrettyNormal: <dc=enstb,dc=fr>, <dc=enstb,dc=fr>
<= str2entry(dc=enstb,dc=fr) -> 0x8169f20
oc_check_required entry (dc=enstb,dc=fr), objectClass "domain"
oc_check_allowed type "dc"
oc_check_allowed type "objectClass"
oc_check_allowed type "structuralObjectClass"
=> bdb_tool_entry_put( -1, "dc=enstb,dc=fr" )
=> bdb_dn2id( "dc=enstb,dc=fr" )
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30991)
=> bdb_dn2id_add( "dc=enstb,dc=fr", 0x00000001 )
<= bdb_dn2id_add: 0
=> entry_encode(0x00000001): dc=enstb,dc=fr
=> index_entry_add( 1, "dc=enstb,dc=fr" )
=> key_change(ADD,1)
bdb_idl_insert_key: 1 [0096defd]
<= key_change 0
=> key_change(ADD,1)
bdb_idl_insert_key: 1 [5ff6806c]
<= key_change 0
<= index_entry_add( 1, "dc=enstb,dc=fr" ) success
=> str2entry
>>> dnPrettyNormal: <ou=People,dc=enstb,dc=fr>
<<< dnPrettyNormal: <ou=People,dc=enstb,dc=fr>, <ou=people,dc=enstb,dc=fr>
<= str2entry(ou=People,dc=enstb,dc=fr) -> 0x8169f20
oc_check_required entry (ou=People,dc=enstb,dc=fr), objectClass "organizationalUnit"
oc_check_allowed type "ou"
oc_check_allowed type "objectClass"
oc_check_allowed type "structuralObjectClass"
=> bdb_tool_entry_put( -1, "ou=People,dc=enstb,dc=fr" )
=> bdb_dn2id( "ou=people,dc=enstb,dc=fr" )
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30991)
=> bdb_dn2id( "dc=enstb,dc=fr" )
<= bdb_dn2id: got id=0x00000001
=> bdb_dn2id_add( "ou=people,dc=enstb,dc=fr", 0x00000002 )
bdb_idl_insert_key: 2 %dc=enstb,dc=fr
<= bdb_dn2id_add: 0
=> entry_encode(0x00000002): ou=People,dc=enstb,dc=fr
=> index_entry_add( 2, "ou=People,dc=enstb,dc=fr" )
=> key_change(ADD,2)
bdb_idl_insert_key: 2 [0096defd]
<= key_change 0
=> key_change(ADD,2)
bdb_idl_insert_key: 2 [9bee355f]
<= key_change 0
<= index_entry_add( 2, "ou=People,dc=enstb,dc=fr" ) success
=> str2entry
>>> dnPrettyNormal: <cn=brou,ou=People,dc=enstb,dc=fr>
<<< dnPrettyNormal: <cn=brou,ou=People,dc=enstb,dc=fr>, <cn=brou,ou=people,dc=enstb,dc=fr>
<= str2entry(cn=brou,ou=People,dc=enstb,dc=fr) -> 0x8169f20
is_object_subclass(2.5.6.6,2.16.840.1.113730.3.2.2) 0
is_object_subclass(2.5.6.6,2.5.6.7) 0
is_object_subclass(2.5.6.6,2.5.6.6) 1
is_object_subclass(2.5.6.6,2.16.840.1.113730.3.2.2) 0
is_object_subclass(2.5.6.6,2.5.6.7) 0
is_object_subclass(2.5.6.6,2.5.6.6) 1
Segmentation fault


ldif file:

dn: dc=enstb,dc=fr
dc: enstb
objectClass: top
objectClass: domain

dn: ou=People,dc=enstb,dc=fr
ou: People
objectClass: top
objectClass: organizationalUnit

dn: cn=brou,ou=People,dc=enstb,dc=fr
cn: Jean Brou
sn: Brou
objectClass: top
objectClass: person
objectClass: inetOrgPerson
mail: Jean.Brou@enstb.fr
givenName: Jean

$ ldd  /usr/local/jehan/openldap-2.1.13/sbin/slapadd
	libdb-4.1.so => /usr/local/jehan/db-4.1.25.NC/lib/libdb-4.1.so (0x40013000)
	libssl.so.2 => /lib/libssl.so.2 (0x400ba000)
	libcrypto.so.2 => /lib/libcrypto.so.2 (0x400ea000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x401be000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x401eb000)
	libdl.so.2 => /lib/libdl.so.2 (0x401fd000)
	libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40200000)
	libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

$ cat /etc/redhat-release
Red Hat Linux release 8.0 (Psyche)

Thanks

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support


-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Jehan PROCACCIA


I still confirm the segmentation fault !! misunderstanding of
me or a bug ?

I recompile (without playing with rpm packages ...) from
scratch the tar
.gz using this time BDB as share library (not statically link):

$ export CPPFLAGS="-I/usr/local/jehan/db-4.1.25.NC/include"
$ export LDFLAGS="-L/usr/local/jehan/db-4.1.25.NC/lib"

[jehan@corbeau /usr/local/src/openldap-2.1.13]
$ ./configure --prefix=/usr/local/jehan/openldap-2.1.13/
--enable-passwd
--enable-shell --enable-cleartext --enable-crypt --enable-spasswd
--enable-modules --enable-lmpasswd --enable-monitor --enable-rewrite
--enable-ldap --enable-meta --enable-shell --enable-password
--enable-debug --enable-bdb --enable-ldbm --with-ldbm-api=berkeley

$ export LD_LIBRARY_PATH=/usr/local/jehan/db-4.1.25.NC/lib/
$ /usr/local/jehan/openldap-2.1.13/sbin/slapadd -f
/etc/openldap/slapd_meta.conf -l /Ldif/meta.ldif -n 2 -d 32
 bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25:
(December 19,
2002)
bdb_db_init: Initializing BDB database
bdb_db_init: Initializing BDB database
Segmentation fault






-- Jehan Procaccia | Ingenieur Systemes & Reseaux Institut National des Telecommunications| Tel : +33 (0) 160764436 MCI, Moyens Communs Informatiques | Mail: Jehan.Procaccia@int-evry.fr 9 rue Charles Fourier 91011 Evry France | Fax : +33 (0) 160764321