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

Re: slapd cores



May be related to ITS#4841. Perhaps the thread stack is being overrun, you might try recompiling libldap_r with a larger thread stack size. (LDAP_PVT_THREAD_STACK_SIZE)

Dmitriy Kirhlarov wrote:
Hi, list.

I'm using openldap-server-2.3.35 on FreeBSD 6.2-STABLE (Feb 19).
I have reproduceble crash of slapd on this host. But I can't reproduce
it on other server (FreeBSD 6.1-STABLE Aug 2).
Database is fine (I dump and restore it), changing thread library
doesn't help too.

Some information from core:
(gdb) bt
0x2837f537 in pthread_testcancel () from /lib/libpthread.so.2
0x2836e89a in sigaction () from /lib/libpthread.so.2
0x2836888d in pthread_kill () from /lib/libpthread.so.2
0x28368256 in raise () from /lib/libpthread.so.2
0x28442e34 in abort () from /lib/libc.so.6
0x2841f060 in __assert () from /lib/libc.so.6
0x080aad9e in entry_schema_check ()
0x286908a3 in bdb_add (op=0xcecfa0c0, rs=0xcecfa080) at add.c:63
0x080ec0b5 in overlay_init ()
0x080db272 in glue_sub_init ()
0x08080a75 in slap_req2res ()
0x080818ac in slap_send_ldap_result ()
0x08113e35 in translucent_initialize ()
0x080db309 in overlay_op_walk ()
0x080db543 in overlay_op_walk ()
0x080db650 in overlay_op_walk ()
0x0808b0c6 in fe_op_modify ()
0x0808a33e in do_modify ()
0x0806fb84 in connection_done ()
0x281b36ad in ldap_int_thread_pool_wrapper ()
   from /usr/local/lib/libldap_r-2.3.so.2
0x283703a5 in pthread_create () from /lib/libpthread.so.2
0x2842e3df in _ctx_start () from /lib/libc.so.6

(gdb) info threads
  6 Thread 0x818b000 (sleeping)  0x28377f9b in pthread_mutexattr_init () from /lib/libpthread.so.2
  5 Thread 0x8267200 (LWP 100039)  0x2837f4f7 in pthread_testcancel () from /lib/libpthread.so.2
  4 Thread 0x8267a00 (runnable)  0x2844658b in select () from /lib/libc.so.6
  3 Thread 0x8267c00 (sleeping)  0x28377f9b in pthread_mutexattr_init () from /lib/libpthread.so.2
* 2 Thread 0x8267e00 (LWP 100141)  0x2837f537 in pthread_testcancel () from /lib/libpthread.so.2
  1 Thread 0x8274000 (sleeping)  0x28377f9b in pthread_mutexattr_init () from /lib/libpthread.so.2

Can somebody help me?

WBR
Dmitriy



--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP     http://www.openldap.org/project/