Issue 6128 - slapd pcache assert
Summary: slapd pcache assert
Status: VERIFIED SUSPENDED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.16
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 14:08 UTC by Luca Scamoni
Modified: 2021-06-03 16:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Luca Scamoni 2009-05-15 14:08:19 UTC
Full_Name: Luca Scamoni
Version: RE24
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (82.63.140.131)


Slapd configured as proxy with pcache hits assert and dumped core.
Here the interesting log lines:
May 15 12:55:11 ficus01 slapd[14753]: conn=42385 fd=60 ACCEPT from
IP=213.205.2.82:38177 (IP=10.12.160.23:9011)
May 15 12:55:11 ficus01 slapd[14753]: conn=42385 op=0 SRCH base="ou=Actalis CA
per Firma Digitale Qualificata,o=CNIPA" scope=0 deref=0 filter="(objectClass=*
)"
[...]
May 15 12:55:21 ficus01 slapd[14753]: connection_input: conn=42385 deferring
operation: awaiting write
May 15 12:55:21 ficus01 slapd[14753]: connection_operation: conn 42385 unknown
LDAP request 0x70
May 15 12:55:22 ficus01 slapd[14753]: conn=42385 op=1 DISCONNECT tag=120 err=2
text=unknown LDAP request
May 15 12:55:22 ficus01 slapd[14753]: send_search_entry: conn 42385  ber write
failed.
Note the 10 seconds gap between the lines. In the meantime 6 more identical
request completed without problems.

Here the backtrace:
#0  0x006207a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
No symbol table info available.
#1  0x0022e7a5 in raise () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x00230209 in abort () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x00227d91 in __assert_fail () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x080782b8 in connection_destroy (c=0xb7f57638) at
../../../servers/slapd/connection.c:623
        connid = 2397679448
        close_reason = 0x816e740 "\210�\026\b�tc"
        sb = (Sockbuf *) 0x816e740
        sd = 158208128
        __PRETTY_FUNCTION__ = "connection_destroy"
#5  0x08078d29 in connection_close (c=0xb7f57638) at
../../../servers/slapd/connection.c:828
        __PRETTY_FUNCTION__ = "connection_close"
#6  0x0807af2e in connection_resched (conn=0xb7f57638) at
../../../servers/slapd/connection.c:1679
        op = (Operation *) 0x9ace698
        __PRETTY_FUNCTION__ = "connection_resched"
#7  0x08079a97 in connection_operation (ctx=0x1e5e210, arg_v=0x8ee9ae80) at
../../../servers/slapd/connection.c:1160
        rc = -1025
        op = (Operation *) 0x8ee9ae80
        rs = {sr_type = REP_EXTENDED, sr_tag = 120, sr_msgid = 0, sr_err = 2,
sr_matched = 0x0, sr_text = 0x812a91f "unknown LDAP request", sr_ref = 0x0,
  sr_ctrls = 0x0, sr_un = {sru_sasl = {r_sasldata = 0x812cf25}, sru_extended =
{r_rspoid = 0x812cf25 "1.3.6.1.4.1.1466.20036", r_rspdata = 0x0},
    sru_search = {r_entry = 0x812cf25, r_attr_flags = 0, r_operational_attrs =
0x0, r_attrs = 0x0, r_nentries = 0, r_v2ref = 0x0}}, sr_flags = 0}
        tag = 4294967295
        opidx = SLAP_OP_LAST
        conn = (Connection *) 0xb7f57638
        memctx = (void *) 0x0
        memctx_null = (void *) 0x0
        memsiz = 3086312752
        __PRETTY_FUNCTION__ = "connection_operation"
#8  0x00b84389 in ldap_int_thread_pool_wrapper (xpool=0x9705ab0) at
../../../libraries/libldap_r/tpool.c:663
        pool = (struct ldap_int_thread_pool_s *) 0x9705ab0
        task = (ldap_int_thread_task_t *) 0x99e6730
        work_list = (ldap_int_tpool_plist_t *) 0x9705b30
        ctx = {ltu_id = 31845280, ltu_key = {{ltk_key = 0x80793b5, ltk_data =
0x99c1308, ltk_free = 0x80791a5 <conn_counter_destroy>}, {
      ltk_key = 0x80e68c5, ltk_data = 0x99c13f8, ltk_free = 0x80e66d8
<slap_sl_mem_destroy>}, {ltk_key = 0x149f90, ltk_data = 0x99cae98,
      ltk_free = 0x141f67 <meta_back_candidates_keyfree>}, {ltk_key = 0x984d878,
ltk_data = 0x99c7ed8, ltk_free = 0x94a4eb <bdb_reader_free>}, {
      ltk_key = 0x8092d23, ltk_data = 0x9933440, ltk_free = 0x8092c80
<slap_op_q_destroy>}, {ltk_key = 0x93a983, ltk_data = 0x8dd36008,
      ltk_free = 0x93a958 <search_stack_free>}, {ltk_key = 0x0, ltk_data = 0x0,
ltk_free = 0} <repeats 26 times>}}
        kctx = (ldap_int_thread_userctx_t *) 0x0
        i = 32
        keyslot = 273
        hash = 6007057
        __PRETTY_FUNCTION__ = "ldap_int_thread_pool_wrapper"
#9  0x008893cc in start_thread () from /lib/tls/libpthread.so.0
No symbol table info available.
#10 0x002cfc3e in clone () from /lib/tls/libc.so.6
No symbol table info available.

Any further info available
Comment 1 Quanah Gibson-Mount 2017-03-27 23:39:48 UTC
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2020-03-19 16:33:31 UTC
Needs review
Comment 3 Quanah Gibson-Mount 2021-06-03 16:45:07 UTC
Need reproduction steps, likely fixed.