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

back-glue paged results segfault (ITS#3182)



Full_Name: Kurt Zeilenga
Version: HEAD
OS: FreeBSD RELENG_4
URL: 
Submission from: (NULL) (198.144.202.241)


While executing:
    ldapsearch -H ldap://localhost:9011 -x -b "dc=example,dc=com" -E
\!pr=1/noprompt

>>>>> Starting test011-glue-slapadd ...
running defines.sh
Running slapadd to build glued slapd databases...
Starting slapd on TCP/IP port 9011...
Using ldapsearch to retrieve all the entries...
Waiting 5 seconds for slapd to start...
Segmentation fault (core dumped)

stack back trace:
#0  0x80716d3 in send_ldap_control (ber=0x8a468fc, c=0x1) at result.c:228
#1  0x8071783 in send_ldap_controls (o=0x81fa600, ber=0x8a468fc, c=0x8986704)
    at result.c:275
#2  0x8071a70 in send_ldap_response (op=0x81fa600, rs=0x8a46db8)
    at result.c:404
#3  0x8071f99 in slap_send_ldap_result (op=0x81fa600, rs=0x8a46db8)
    at result.c:634
#4  0x809b089 in glue_back_search (op=0x81fa600, rs=0x8a46db8)
    at backglue.c:392
#5  0x806953f in do_search (op=0x81fa600, rs=0x8a46db8) at search.c:405
#6  0x806778d in connection_operation (ctx=0x8a46e3c, arg_v=0x81fa600)
    at connection.c:1042
#7  0x80fea71 in ldap_int_thread_pool_wrapper (xpool=0x81c39c0) at tpool.c:467
#8  0x284753e4 in _thread_start () from /usr/lib/libc_r.so.4
#9  0x0 in ?? ()

rs->sr_ctrls[0] appears to be the paged results response controls
rs->sr_ctrls[1] == 0x1