[Date Prev][Date Next]
(ITS#3404) sockber stack SEGVs
> RCS file: /repo/OpenLDAP/pkg/ldap/servers/slapd/controls.c,v
> retrieving revision 22.214.171.124
Thanks for the patch; unfortunately, I'm still able to reproduce the above
trace (eg followup 2) with it applied. For completeness, I note that there
are some rui warnings on "from" (daemon.c:1612, 1665, 1721), then this one:
<rtc> Read from uninitialized (rui) on thread 3:
Attempting to read 1 byte at address 0x63f034
which is 532 bytes into a heap block of size 1048576 bytes at 0x63ee20
This block was allocated from:
 ber_memalloc_x() at line 232 in "memory.c"
 ch_malloc() at 0x7fe38
 sl_mem_create() at line 82 in "sl_malloc.c"
 connection_operation() at line 1030 in "connection.c"
 ldap_int_thread_pool_wrapper() at line 467 in "tpool.c"
 _lwp_start() at 0xde1157b4
Location of error:
current thread: t@3
=> sl_realloc(ptr = 0x63f02c, size = 16U, ctx = 0x61f2b0), line 206 in "sl_malloc.c"
 get_ctrls(0x624248, 0xa7bffd58, 0x1, 0xa7bffcc8, 0x0, 0x624280), at 0x95c64
 do_search(op = 0x624248, rs = 0xa7bffd58), line 196 in "search.c"
 connection_operation(ctx = 0xa7bffe14, arg_v = 0x624248), line 1079 in "connection.c"
 ldap_int_thread_pool_wrapper(xpool = 0x558d20), line 467 in "tpool.c"
Finally, one in parseLDAPsync (now controls.c:1397 with the four-line patch)
that is substantially similar to followup #2.
On a related topic, when I stress tested overnight, there was a warning
(of the same flavor) on
 parseLDAPsync(op = 0x629ba0, rs = -1514144424, ctrl = 62014932), line 1414 in "controls.c"
unpatched line numbers, eg fmt = "o". I haven't yet reproduced this with
the patch, but even without the patch it took a substantial amount of time
for this to appear.