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

Re: slapd crashes due to assertion failure



--On Thursday, April 10, 2008 10:36 AM -0400 John Morrissey <jwm@horde.net> wrote:

On Sun, Apr 06, 2008 at 09:41:31PM -0400, John Morrissey wrote:
On Wed, Mar 26, 2008 at 12:06:45PM -0700, Quanah Gibson-Mount wrote:
> --On Wednesday, March 26, 2008 10:57 AM -0400 John Morrissey
> <jwm@horde.net> wrote:
> > I'm not sure if this gives enough to go on, but I've rebuilt with
> > optimization disabled and have a debugger attached for the next time
> > it fails.
>
> You may never hit it.  I recall having this problem with certain buggy
> versions of gcc (which is pretty much any version of gcc) in how it
> optimizes the code.  I never build OL with optimizations anymore, as
> gcc just cannot do the job right.

The unoptimized build crashed earlier today; I only have a partial
backtrace (below), but I can try to get a complete one next time if it
would be more useful.

The assertion 'c->c_writewaiter == 0' in connection_destroy() is what
seems to be failing.
[snip]

FWIW, here's the complete backtrace. slapd's crashing about every three or
four days under moderate load (three or four writes/second, maybe a dozen
reads/sec). If there's anything else I can provide to help debug this,
please let me know.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1884222544 (LWP 15692)]
0xb7b8c947 in raise () from /lib/tls/libc.so.6
# 0  0xb7b8c947 in raise () from /lib/tls/libc.so.6
# 1  0xb7b8e0c9 in abort () from /lib/tls/libc.so.6
# 2  0xb7b8605f in __assert_fail () from /lib/tls/libc.so.6
# 3  0x08071d03 in connection_destroy (c=0x903143c8)
    at /var/jwm/o2/openldap/servers/slapd/connection.c:680
# 4  0x080726ab in connection_close (c=0x903143c8)
    at /var/jwm/o2/openldap/servers/slapd/connection.c:900
# 5  0x080740bd in connection_resched (conn=0x903143c8)
    at /var/jwm/o2/openldap/servers/slapd/connection.c:1722
# 6  0x08073009 in connection_operation (ctx=0x8fb102b4, arg_v=0x823eeb0)
    at /var/jwm/o2/openldap/servers/slapd/connection.c:1179
# 7  0xb7f0afd9 in ldap_int_thread_pool_wrapper (xpool=0x816f358)
    at /var/jwm/o2/openldap/libraries/libldap_r/tpool.c:478
# 8  0xb7c9b0bd in start_thread () from /lib/tls/libpthread.so.0
# 9  0xb7c3001e in clone () from /lib/tls/libc.so.6

Open an ITS with the relevant backtrace information, and add your configs to it, minus any passwords.


--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration