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

RE: [openldap] cygwin, ldbm, and slapdd: second request



HI Howard,

Thanks for your reply. I appreciate your consideration of my problem.

However, I notice on the machine where slapadd does work, the files
in the openldap*/tests/test-db directory all have the .gdbm suffix.

Do you happen to know how sleepycat is called: is a sleepycat lib
linked into slapadd or is there some kind of ipc? If a lib, do you
happen to know the name of the lib. I don't have ldd in cygwin so
do you know of another way to make sure the right library is included?
I can use gdb to step through slapadd, but when I hit the database
update statement, I just get a segmentation fault so it's hard to 
look behind that. Have you ever had this problem?

 >> > line 11 (pidfile     ./test-db/slapd.pid)
 >> > line 12 (argsfile    ./test-db/slapd.args)
 >> > line 18 (database	ldbm)

As you can see, some of it is working. All I want is a little more.

David


Your build environment is inconsistent. Since the database files are being
created with ".gdbm" suffix you clearly did not actually get Berkeley DB in
your build.

  -- 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 David
> Sent: Wednesday, March 13, 2002 6:02 AM
> To: openldap-software@OpenLDAP.org
> Subject: [openldap] cygwin, ldbm, and slapdd: second request
>
>
> Hi,
>
> I have run openldap on one cygwin / windows NT / intel
> and made it successfully through the test suite :-}.
>
> However, I have having a dickens of a time on a second
> unrelated machine. slapadd in scripts/test001 is failed
> with a Signal 11 - segmentation violation. I am including
> some of the debug output after my signature.
>
> I figured out late that I had to have Sleepcat Berkeley db
> on my machine, and after several failures, I am compling
> it after configure with these options
>
>     ../dist/configure --enable-debug --enable-debug_rop
> --enable-debug_wop --enable-diagnostic --enable-test --enable-tcl
> -with-tcl=/tcl8.0/unix
>
> Then, I run configure in openldap and make and install in and
> test000* runs just fine.
>
> But, slapadd fails.
>
> If anyone could help me with some debugging tips, I would
> appreciate it. I can see the .gdbm files be created in the
> test-db directory so I know it starts, but somehow it can't
> commit the key change. What could cause that?
>
> And, I can't run the debugging suite that came with the
> database because tcl in cygwin doesn't support the includes.
>
> I tried running /openldap*/configure --enable-ldbm but since
> that is the default, I didn't do that in the run which led to
> the output.
>
> I am using sleepcat db-4.0.14
>
> Any suggestions would be appreciated.
>
> David
>
>
> running defines.sh .
> Datadir is ./data
> Cleaning up in ./test-db...
> + echo Running slapadd to build slapd database...
> Running slapadd to build slapd database...
> + ../servers/slapd/tools/slapadd -f ./data/slapd.conf -l
> ./data/test.ldif -d -1
> slapadd init: initiated tool.
> reading config file ./data/slapd.conf
> line 6 (include ./schema/core.schema)
> reading config file ./schema/core.schema
> line 29 (attributetype ( 2.5.18.1 NAME 'createTimestamp' EQUALITY
> generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SYNTAX
> 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE NO-USER-MODIFICATION
> USAGE directoryOperation ))
> ...
> line 57 (attributetype ( 2.16.840.1.113730.3.1.3 NAME
> 'employeeNumber' DESC 'RFC2798: numerically identifies an
> employee within an organization' EQUALITY caseIgnoreMatch SUBSTR
> caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
> SINGLE-VALUE ))
> line 68 (attributetype ( 2.16.840.1.113730.3.1.4 NAME
> 'employeeType' DESC 'RFC2798: type of employment for a person'
> EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX
> 1.3.6.1.4.1.1466.115.121.1.15 ))
> line 79 (attributetype ( 0.9.2342.19200300.100.1.60 NAME
> 'jpegPhoto' DESC 'a JPEG image' SYNTAX 1.3.6.1.4.1.1466.115.121.1.28 ))
> line 94 (attributetype ( 2.16.840.1.113730.3.1.39 NAME
> 'preferredLanguage' DESC 'RFC2798: preferred written or spoken
> language for a person' EQUALITY caseIgnoreMatch SUBSTR
> caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
> SINGLE-VALUE ))
> line 110 (attributetype ( 2.16.840.1.113730.3.1.40 NAME
> 'userSMIMECertificate' DESC 'RFC2798: PKCS#7 SignedData used to
> support S/MIME' SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 ))
> line 123 (attributetype ( 2.16.840.1.113730.3.1.216 NAME
> 'userPKCS12' DESC 'RFC2798: PKCS #12 PFX PDU for exchange of
> personal identity information' SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 ))
> line 143 (objectclass	( 2.16.840.1.113730.3.2.2    NAME
> 'inetOrgPerson' DESC 'RFC2798: Internet Organizational Person'
> SUP organizationalPerson    STRUCTURAL MAY ( 	audio $
> businessCategory $ carLicense $ departmentNumber $ 	displayName
> $ employeeNumber $ employeeType $ givenName $ 	homePhone $
> homePostalAddress $ initials $ jpegPhoto $ 	labeledURI $ mail $
> manager $ mobile $ o $ pager $ 	photo $ roomNumber $
> secretary $ uid $ userCertificate $ 	x500uniqueIdentifier $
> preferredLanguage $ 	userSMIMECertificate $ userPKCS12 ) )  )
> line 10 (schemacheck	on)
> line 11 (pidfile     ./test-db/slapd.pid)
> line 12 (argsfile    ./test-db/slapd.args)
> line 18 (database	ldbm)
> line 19 (suffix		"o=University of Michigan, c=US")
> line 20 (directory	./test-db)
> line 21 (rootdn		"cn=Manager, o=University of
> Michigan, c=US")
> line 22 (rootpw		secret)
> line 23 (index		objectclass	eq)
> index objectClass 0x0004
> line 24 (index		uid	pres,eq,sub)
> index uid 0x0716
> line 25 (index		cn,sn	pres,eq,sub,subany)
> index cn 0x0716
> index sn 0x0716
> line 26 (dbnosync)
> line 27 (dbnolocking)
> line 29 (database	ldbm)
> line 30 (suffix		"dc=OpenLDAP,dc=org")
> line 31 (directory	./test-repl)
> line 32 (index		objectclass	eq)
> index objectClass 0x0004
> slapadd startup: initiated.
> backend_startup: starting database
> => ldbm_cache_open( "./test-db/id2entry.gdbm", 82, 600 )
> ldbm_cache_open (blksize 1024) (maxids 254) (maxindirect 33)
> <= ldbm_cache_open (opened 0)
> => str2entry
> <= str2entry(cn=All Staff,ou=Groups,o=University of
> Michigan,c=US) -> -1 (0x100cb140)
> oc_check_required entry (cn=All Staff,ou=Groups,o=University of
> Michigan,c=US), objectClass "groupofnames"
> oc_check_allowed type "member"
> oc_check_allowed type "owner"
> oc_check_allowed type "cn"
> oc_check_allowed type "description"
> oc_check_allowed type "objectClass"
> => ldbm_cache_open( "./test-db/nextid.gdbm", 82, 600 )
> ldbm_cache_open (blksize 1024) (maxids 254) (maxindirect 33)
> <= ldbm_cache_open (opened 1)
> => ldbm_tool_entry_put( 1, "cn=All Staff,ou=Groups,o=University
> of Michigan,c=US" )
> => dn2id( "CN=ALL STAFF,OU=GROUPS,O=UNIVERSITY OF MICHIGAN,C=US" )
> => ldbm_cache_open( "./test-db/dn2id.gdbm", 82, 600 )
> ldbm_cache_open (blksize 1024) (maxids 254) (maxindirect 33)
> <= ldbm_cache_open (opened 2)
> <= dn2id NOID
> => index_entry_add( 1, "cn=All Staff,ou=Groups,o=University of
> Michigan,c=US" )
> => ldbm_cache_open( "./test-db/cn.gdbm", 82, 600 )
> ldbm_cache_open (blksize 1024) (maxids 254) (maxindirect 33)
> <= ldbm_cache_open (opened 3)
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => key_change(ADD,1)
> <= key_change 0
> => ldbm_cache_open( "./test-db/objectClass.gdbm", 82, 600 )
> ldbm_cache_open (blksize 1024) (maxids 254) (maxindirect 33)
> <= ldbm_cache_open (opened 4)
> => key_change(ADD,1)
> Signal 11
> + RC=139
> + test 139 != 0
> + echo slapadd failed (139)!
> slapadd failed (139)!
> + exit 139