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

Re: [POT] PHP 'hangs' slapd (?!)



>>>>> "Pierangelo" == Pierangelo Masarati <ando@sys-net.it> writes:

    Pierangelo> The report is a bit vague.  I suggest you run a
    Pierangelo> non-stripped binary, and run gdb on it when it hangs
    Pierangelo> to see where (and what stack strace with) it happens.
    Pierangelo> Some trace of the operation initiated by PHP would
    Pierangelo> also be of help.

I'm no friend of gdb, but when it hangs, I break (Ctrl-C from within gdb)
and get a backtrace:

----- s n i p -----
#0  0x4032f397 in sched_yield () from /lib/libc.so.6
#1  0x4002e7c4 in ldap_pvt_thread_yield () from /usr/lib/libldap_r-2.2.so.7
#2  0x4010795e in __os_yield_4002 () from /usr/lib/libdb-4.2.so
#3  0x4007d622 in __db_tas_mutex_lock_4002 () from /usr/lib/libdb-4.2.so
#4  0x400f4b2c in __lock_get_4002 () from /usr/lib/libdb-4.2.so
#5  0x400f3b22 in __lock_vec_4002 () from /usr/lib/libdb-4.2.so
#6  0x400f39df in __lock_vec_pp_4002 () from /usr/lib/libdb-4.2.so
#7  0x080c7866 in bdb_cache_entry_db_relock (env=0x81c87a0, locker=2147484150, ei=0x81cd900, rw=1, tryOnly=0, lock=0xbf5fe598)
    at /usr/src/openldap2.2-2.2.17/servers/slapd/back-bdb/cache.c:88
#8  0x080c84af in bdb_cache_modify (e=0x81d07d0, newAttrs=0x81d2c60, env=0x81c87a0, locker=2147484150, lock=0xbf5fe598)
    at /usr/src/openldap2.2-2.2.17/servers/slapd/back-bdb/cache.c:875
#9  0x080a759b in bdb_modify (op=0x81cd760, rs=0xbf5ff8d0) at /usr/src/openldap2.2-2.2.17/servers/slapd/back-bdb/modify.c:700
#10 0x08077559 in do_modify (op=0x81cd760, rs=0xbf5ff8d0) at /usr/src/openldap2.2-2.2.17/servers/slapd/modify.c:506
#11 0x080669a5 in connection_operation (ctx=0xbf5ff964, arg_v=0x81cd760) at /usr/src/openldap2.2-2.2.17/servers/slapd/connection.c:1069
#12 0x4002e036 in ldap_pvt_thread_pool_destroy () from /usr/lib/libldap_r-2.2.so.7
#13 0x402660ba in pthread_start_thread () from /lib/libpthread.so.0
#14 0x40266101 in pthread_start_thread_event () from /lib/libpthread.so.0
----- s n i p -----

[only the binary is non-stripped, not the libraries - ?]