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

Re: (ITS#6426) slapd crash with 'Bus error'



Afshin,

Copy openldap-its@openldap.org on all you replies so they go into the bug=20
tracker, so that others can see them.

--Quanah

--On Tuesday, December 15, 2009 10:39 AM +0330 afshin afzali=20
<a.afzali2003@gmail.com> wrote:

> Hi Quanah,
>
> Appreciate your help. Hope this be helpful.
> -- afshin
>
>
> [root@dc1 libexec]# gdb ./slapd core.12305
> GNU gdb Fedora (6.8-37.el5)
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.=C2=A0 Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu"...
> Reading symbols from /lib64/libuuid.so.1...done.
> Loaded symbols for /lib64/libuuid.so.1
> Reading symbols from /lib64/librt.so.1...done.
> Loaded symbols for /lib64/librt.so.1
> Reading symbols from /lib64/libcrypt.so.1...done.
> Loaded symbols for /lib64/libcrypt.so.1
> Reading symbols from /lib64/libnsl.so.1...done.
> Loaded symbols for /lib64/libnsl.so.1
> Reading symbols from /lib64/libm.so.6...done.
> Loaded symbols for /lib64/libm.so.6
> Reading symbols from /lib64/libpthread.so.0...done.
> Loaded symbols for /lib64/libpthread.so.0
> Reading symbols from /usr/lib64/libstdc++.so.6...done.
> Loaded symbols for /usr/lib64/libstdc++.so.6
> Reading symbols from /usr/lib64/libsasl2.so.2...done.
> Loaded symbols for /usr/lib64/libsasl2.so.2
> Reading symbols from /lib64/libssl.so.6...done.
> Loaded symbols for /lib64/libssl.so.6
> Reading symbols from /lib64/libcrypto.so.6...done.
> Loaded symbols for /lib64/libcrypto.so.6
> Reading symbols from /lib64/libresolv.so.2...done.
> Loaded symbols for /lib64/libresolv.so.2
> Reading symbols from /lib64/libgcc_s.so.1...done.
> Loaded symbols for /lib64/libgcc_s.so.1
> Reading symbols from /lib64/libc.so.6...done.
> Loaded symbols for /lib64/libc.so.6
> Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
> Loaded symbols for /lib64/ld-linux-x86-64.so.2
> Reading symbols from /lib64/libdl.so.2...done.
> Loaded symbols for /lib64/libdl.so.2
> Reading symbols from /usr/lib64/libgssapi_krb5.so.2...done.
> Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
> Reading symbols from /usr/lib64/libkrb5.so.3...done.
> Loaded symbols for /usr/lib64/libkrb5.so.3
> Reading symbols from /lib64/libcom_err.so.2...done.
> Loaded symbols for /lib64/libcom_err.so.2
> Reading symbols from /usr/lib64/libk5crypto.so.3...done.
> Loaded symbols for /usr/lib64/libk5crypto.so.3
> Reading symbols from /usr/lib64/libz.so.1...done.
> Loaded symbols for /usr/lib64/libz.so.1
> Reading symbols from /usr/lib64/libkrb5support.so.0...done.
> Loaded symbols for /usr/lib64/libkrb5support.so.0
> Reading symbols from /lib64/libkeyutils.so.1...done.
> Loaded symbols for /lib64/libkeyutils.so.1
> Reading symbols from /lib64/libselinux.so.1...done.
> Loaded symbols for /lib64/libselinux.so.1
> Reading symbols from /lib64/libsepol.so.1...done.
> Loaded symbols for /lib64/libsepol.so.1
> Reading symbols from /lib64/libnss_files.so.2...done.
> Loaded symbols for /lib64/libnss_files.so.2
> Reading symbols from /usr/lib64/sasl2/libanonymous.so.2...done.
> Loaded symbols for /usr/lib64/sasl2/libanonymous.so.2
> Reading symbols from /usr/lib64/sasl2/libsasldb.so.2...done.
> Loaded symbols for /usr/lib64/sasl2/libsasldb.so.2
> Reading symbols from /usr/lib64/sasl2/liblogin.so.2...done.
> Loaded symbols for /usr/lib64/sasl2/liblogin.so.2
> Reading symbols from /usr/lib64/sasl2/libplain.so.2...done.
> Loaded symbols for /usr/lib64/sasl2/libplain.so.2
> Core was generated by `./slapd -d5'.
> Program terminated with signal 11, Segmentation fault.
> [New process 12313]
> [New process 12314]
> [New process 12312]
> [New process 12311]
> [New process 12310]
> [New process 12309]
> [New process 12308]
> [New process 12307]
> [New process 12305]
># 0=C2=A0 NdbTransaction::execute (this=3D0x15,
># aTypeOfExec=3DNdbTransaction::Rollback,
> =C2=A0=C2=A0=C2=A0 abortOption=3DNdbOperation::DefaultAbortOption, =
forceSend=3D0)
> =C2=A0=C2=A0=C2=A0 at NdbTransaction.cpp:278
> 278=C2=A0=C2=A0=C2=A0=C2=A0 NdbTransaction.cpp: No such file or =
directory.
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 in NdbTransaction.cpp
> (gdb) thr apply all bt
>
> Thread 9 (process 12305):
># 0=C2=A0 0x000000370e8077e5 in pthread_join () from =
/lib64/libpthread.so.0
># 1=C2=A0 0x000000000059affb in ldap_pvt_thread_join (thread=3D1107417408,
> =C2=A0=C2=A0=C2=A0 thread_return=3D0x0) at thr_posix.c:197
># 2=C2=A0 0x00000000004ba2a8 in slapd_daemon () at daemon.c:2835
># 3=C2=A0 0x000000000049bfad in main (argc=3D2, argv=3D0x7fff78fd91e8) at
># main.c:950
> Current language:=C2=A0 auto; currently c++
>
> Thread 8 (process 12307):
># 0=C2=A0 0x000000370e0cced2 in select () from /lib64/libc.so.6
># 1=C2=A0 0x000000000068a73b in my_sleep (m_seconds=3D<value optimized =
out>)
> =C2=A0=C2=A0=C2=A0 at my_sleep.c:34
># 2=C2=A0 0x00000000006b3ff0 in TransporterFacade::threadMainReceive
># (this=3D0xc7a6530)
> =C2=A0=C2=A0=C2=A0 at =
../../../../storage/ndb/include/portlib/NdbSleep.h:31
># 3=C2=A0 0x00000000006b4049 in runReceiveResponse_C (me=3D0x0)
> =C2=A0=C2=A0=C2=A0 at TransporterFacade.cpp:564
># 4=C2=A0 0x00000000006a35de in ndb_thread_wrapper (_ss=3D0xc581620) at
># NdbThread.c:147 5=C2=A0 0x000000370e8064a7 in start_thread () from
># /lib64/libpthread.so.0 6=C2=A0 0x000000370e0d3c2d in clone () from
># /lib64/libc.so.6
>
> Thread 7 (process 12308):
># 0=C2=A0 0x000000370e0cced2 in select () from /lib64/libc.so.6
># 1=C2=A0 0x000000000068a73b in my_sleep (m_seconds=3D<value optimized =
out>)
> ---Type <return> to continue, or q <return> to quit---
> =C2=A0=C2=A0=C2=A0 at my_sleep.c:34
># 2=C2=A0 0x00000000006b2d0f in TransporterFacade::threadMainSend
># (this=3D0xc7a6530)
> =C2=A0=C2=A0=C2=A0 at =
../../../../storage/ndb/include/portlib/NdbSleep.h:31
># 3=C2=A0 0x00000000006b2d89 in runSendRequest_C (me=3D0x0)
> =C2=A0=C2=A0=C2=A0 at TransporterFacade.cpp:529
># 4=C2=A0 0x00000000006a35de in ndb_thread_wrapper (_ss=3D0xc588670) at
># NdbThread.c:147 5=C2=A0 0x000000370e8064a7 in start_thread () from
># /lib64/libpthread.so.0 6=C2=A0 0x000000370e0d3c2d in clone () from
># /lib64/libc.so.6
>
> Thread 6 (process 12309):
># 0=C2=A0 0x000000370e0cced2 in select () from /lib64/libc.so.6
># 1=C2=A0 0x000000000068a73b in my_sleep (m_seconds=3D<value optimized =
out>)
> =C2=A0=C2=A0=C2=A0 at my_sleep.c:34
># 2=C2=A0 0x00000000006b9740 in ClusterMgr::threadMain (this=3D0xc7b8ce0)
> =C2=A0=C2=A0=C2=A0 at =
../../../../storage/ndb/include/portlib/NdbSleep.h:31
># 3=C2=A0 0x00000000006b98d9 in runClusterMgr_C (me=3D0x0) at =
ClusterMgr.cpp:50
># 4=C2=A0 0x00000000006a35de in ndb_thread_wrapper (_ss=3D0xc5888b0) at
># NdbThread.c:147 5=C2=A0 0x000000370e8064a7 in start_thread () from
># /lib64/libpthread.so.0 6=C2=A0 0x000000370e0d3c2d in clone () from
># /lib64/libc.so.6
>
> Thread 5 (process 12310):
># 0=C2=A0 0x000000370e0cced2 in select () from /lib64/libc.so.6
># 1=C2=A0 0x000000000068a73b in my_sleep (m_seconds=3D<value optimized =
out>)
> ---Type <return> to continue, or q <return> to quit---
> =C2=A0=C2=A0=C2=A0 at my_sleep.c:34
># 2=C2=A0 0x00000000006c8738 in TransporterRegistry::start_clients_thread =
(
> =C2=A0=C2=A0=C2=A0 this=3D0xc580c70) at
> ../../../../../storage/ndb/include/portlib/NdbSleep.h:31
># 3=C2=A0 0x00000000006c89e9 in run_start_clients_C (me=3D0x0)
> =C2=A0=C2=A0=C2=A0 at TransporterRegistry.cpp:1422
># 4=C2=A0 0x00000000006a35de in ndb_thread_wrapper (_ss=3D0xc588a40) at
># NdbThread.c:147 5=C2=A0 0x000000370e8064a7 in start_thread () from
># /lib64/libpthread.so.0 6=C2=A0 0x000000370e0d3c2d in clone () from
># /lib64/libc.so.6
>
> Thread 4 (process 12311):
># 0=C2=A0 0x000000370e0cced2 in select () from /lib64/libc.so.6
># 1=C2=A0 0x00000000006a82d6 in SocketServer::doAccept (this=3D0xc7b8bd0)
> =C2=A0=C2=A0=C2=A0 at SocketServer.cpp:189
># 2=C2=A0 0x00000000006a8612 in SocketServer::doRun (this=3D0xc7b8bd0)
> =C2=A0=C2=A0=C2=A0 at SocketServer.cpp:279
># 3=C2=A0 0x00000000006a8639 in socketServerThread_C (_ss=3D0x1)
> =C2=A0=C2=A0=C2=A0 at SocketServer.cpp:231
># 4=C2=A0 0x00000000006a35de in ndb_thread_wrapper (_ss=3D0xc581710) at
># NdbThread.c:147 5=C2=A0 0x000000370e8064a7 in start_thread () from
># /lib64/libpthread.so.0 6=C2=A0 0x000000370e0d3c2d in clone () from
># /lib64/libc.so.6
>
> Thread 3 (process 12312):
># 0=C2=A0 0x000000370e0d4018 in epoll_wait () from /lib64/libc.so.6
> ---Type <return> to continue, or q <return> to quit---
># 1=C2=A0 0x00000000004b9559 in slapd_daemon_task (ptr=3D0x0) at =
daemon.c:2460
># 2=C2=A0 0x000000370e8064a7 in start_thread () from =
/lib64/libpthread.so.0
># 3=C2=A0 0x000000370e0d3c2d in clone () from /lib64/libc.so.6
>
> Thread 2 (process 12314):
># 0=C2=A0 0x000000370e80ab99 in pthread_cond_wait@@GLIBC_2.3.2 ()
> =C2=A0=C2=A0 from /lib64/libpthread.so.0
># 1=C2=A0 0x000000000059b0a3 in ldap_pvt_thread_cond_wait =
(cond=3D0xc538bc0,
> =C2=A0=C2=A0=C2=A0 mutex=3D0xc538b98) at thr_posix.c:277
># 2=C2=A0 0x0000000000599b63 in ldap_int_thread_pool_wrapper =
(xpool=3D0xc538b90)
> =C2=A0=C2=A0=C2=A0 at tpool.c:672
># 3=C2=A0 0x000000370e8064a7 in start_thread () from =
/lib64/libpthread.so.0
># 4=C2=A0 0x000000370e0d3c2d in clone () from /lib64/libc.so.6
>
> Thread 1 (process 12313):
># 0=C2=A0 NdbTransaction::execute (this=3D0x15,
># aTypeOfExec=3DNdbTransaction::Rollback,
> =C2=A0=C2=A0=C2=A0 abortOption=3DNdbOperation::DefaultAbortOption, =
forceSend=3D0)
> =C2=A0=C2=A0=C2=A0 at NdbTransaction.cpp:278
># 1=C2=A0 0x0000000000561195 in NdbTransaction::execute (this=3D0x15,
> =C2=A0=C2=A0=C2=A0 execType=3DRollback, abortOption=3DDefaultAbortOption, =
force=3D0)
> =C2=A0=C2=A0=C2=A0 at =
/usr/include/mysql/storage/ndb/ndbapi/NdbTransaction.hpp:343
># 2=C2=A0 0x0000000000575926 in ndb_back_add (op=3D0xc58c5d0, =
rs=3D0x4283ec00)
> =C2=A0=C2=A0=C2=A0 at add.cpp:336
> ---Type <return> to continue, or q <return> to quit---
># 3=C2=A0 0x00000000004c6489 in fe_op_add (op=3D0xc58c5d0, =
rs=3D0x4283ec00) at
># add.c:334 4=C2=A0 0x00000000004c5e13 in do_add (op=3D0xc58c5d0, =
rs=3D0x4283ec00)
># at add.c:194 5=C2=A0 0x00000000004bd06a in connection_operation
># (ctx=3D0x4283ed50,
> =C2=A0=C2=A0=C2=A0 arg_v=3D0xc58c5d0) at connection.c:1123
># 6=C2=A0 0x00000000004bd5ef in connection_read_thread (ctx=3D0x4283ed50,
># argv=3D0xd)
> =C2=A0=C2=A0=C2=A0 at connection.c:1259
># 7=C2=A0 0x0000000000599c01 in ldap_int_thread_pool_wrapper =
(xpool=3D0xc538b90)
> =C2=A0=C2=A0=C2=A0 at tpool.c:685
># 8=C2=A0 0x000000370e8064a7 in start_thread () from =
/lib64/libpthread.so.0
># 9=C2=A0 0x000000370e0d3c2d in clone () from /lib64/libc.so.6
> (gdb)
>
>
>
>
> On Tue, Dec 15, 2009 at 4:01 AM, Quanah Gibson-Mount <quanah@zimbra.com>
> wrote:
>
> --On Saturday, December 12, 2009 5:48 PM +0000 quanah@zimbra.com wrote:
>
>
>
>
># 0=3DC2=3DA0 0x000000000066f891 in ?? ()
> (gdb)
>
>
>
> So where's the thr apply all bt command inside gdb? =C2=A0You've just =
loaded
>
>
> Please provide the backtrace as noted if you want this to be further
> investigated. =C2=A0Thanks!
>
> Again, after you run:
>
> gdb </slapd> <core>
>
> You then need to run:
>
> thr apply all bt
>
> To get a backtrace of all threads, and then submit that to the ITS.
>
>
>
>
> --Quanah
>
>
> --
>
> Quanah Gibson-Mount
> Principal Software Engineer
> Zimbra, Inc
> --------------------
> Zimbra :: =C2=A0the leader in open source messaging and collaboration
>
>



--

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