[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Assert failed in schema_init.c (ITS#1270)
Full_Name: Joshua Reich
Version: 2.0.11
OS: IRIX 6.5.11
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (203.89.194.194)
Im running a custom schema using numericStrings, and all my entries import fine
(~60k entries). However, when I do an ldapsearch, slapd dumps core with:
Assertion failed: newval->bv_val < p, file schema_init.c, line 3221, pid e43401
Abort (core dumped)
I modified the code (for debugging purposes) to display p and q from the numeric
string normalize function:
3209 p = val->bv_val;
3210 q = newval->bv_val;
3211
3212 printf ("p: '%s'\n", p); /* ADDED BY JOSH */
3213
3214 while ( *p ) {
3215 if ( ASCII_SPACE( *p ) ) {
3216 /* Ignore whitespace */
3217 p++;
3218 } else {
3219 *q++ = *p++;
3220 }
3221 }
3222
3223 printf ("q: '%s'\n", p); /* ADDED BY JOSH */
3224
3225 assert( newval->bv_val < p );
3226 assert( q <= p );
3227
I then restarted slapd and performed a search :
albion 19% /usr/local/bin/ldapsearch "trfSetupID=12"
version: 2
#
# filter: trfSetupID=12
# requesting: ALL
#
ldap_result: Can't contact LDAP server
With the complete log of slapd :
albion 44# ./slapd-josh -d 1
@(#) $OpenLDAP: slapd 2.0.11-Release (Thu Aug 2 16:11:15 AEST 2001) $
josh@albion:/usr/people/josh/installs/openldap-2.0.11/servers/slapd
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: initialized ldap:///
daemon_init: 1 listeners opened
slapd-josh init: initiated server.
slapd-josh startup: initiated.
slapd starting
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_get_next
do_bind
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
ber_scanf fmt ({iat) ber:
ber_scanf fmt (o}) ber:
do_bind: version=3 dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 7
do_bind: v3 anonymous bind
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 58 contents:
ber_get_next
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
do_search
ber_scanf fmt ({aiiiib) ber:
ber_scanf fmt ({oo}) ber:
p: '12'
q: ''
Assertion failed: newval->bv_val < p, file schema_init.c, line 3225, pid e62329
Abort (core dumped)
Perhaps its a problem with my schema...
Any ideas ?
Joshua Reich