Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 689771 Details for
Bug 902684
Crash seen on ssl_setup_connection()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
GDB logs
ssl_crash_gdb (text/plain), 35.51 KB, created by
Avra Sengupta
on 2013-01-29 12:24:34 UTC
(
hide
)
Description:
GDB logs
Filename:
MIME Type:
Creator:
Avra Sengupta
Created:
2013-01-29 12:24:34 UTC
Size:
35.51 KB
patch
obsolete
>[root@Gotham /]# gdb glusterfsd >GNU gdb (GDB) Fedora (7.4.50.20120120-52.fc17) >Copyright (C) 2012 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. Type "show copying" >and "show warranty" for details. >This GDB was configured as "x86_64-redhat-linux-gnu". >For bug reporting instructions, please see: ><http://www.gnu.org/software/gdb/bugs/>... >Reading symbols from /usr/local/sbin/glusterfsd...done. >(gdb) core core.15282 >warning: core file may not match specified executable file. >[New LWP 15347] >[New LWP 15282] >[New LWP 15283] >[New LWP 15309] >[New LWP 15284] >[New LWP 15285] >[New LWP 15308] >[New LWP 15286] >[Thread debugging using libthread_db enabled] >Using host libthread_db library "/lib64/libthread_db.so.1". >Core was generated by `glusterfs --volfile-server=Gotham --volfile-id=patchy /mnt/glusterfs/0'. >Program terminated with signal 11, Segmentation fault. >#0 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >316 if (ctx->pmeth && ctx->pmeth->cleanup) >(gdb) bt >#0 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >#1 0x00000033c8cbbd02 in EVP_MD_CTX_cleanup (ctx=ctx@entry=0x33b97af660) at digest.c:427 >#2 0x00000033c8cbbe19 in EVP_MD_CTX_destroy (ctx=0x33b97af660) at digest.c:407 >#3 0x00000033ccc39211 in ssl_clear_hash_ctx (hash=hash@entry=0x7fa378000a48) at ssl_lib.c:3046 >#4 0x00000033ccc39632 in SSL_clear (s=0x7fa378000970) at ssl_lib.c:233 >#5 0x00007fa3889b7f8a in __socket_disconnect (this=this@entry=0x1e42d40) at socket.c:628 >#6 0x00007fa3889b83ae in socket_disconnect (this=0x1e42d40) at socket.c:2613 >#7 0x00007fa387973699 in client_query_portmap_cbk (req=<optimized out>, iov=<optimized out>, count=<optimized out>, myframe=0x7fa38a999fc0) > at client-handshake.c:1713 >#8 0x00007fa38bb4e4f4 in rpc_clnt_handle_reply (clnt=clnt@entry=0x1e332b0, pollin=0x7fa378010990) at rpc-clnt.c:771 >#9 0x00007fa38bb4e85d in rpc_clnt_notify (trans=<optimized out>, mydata=0x1e332e0, event=<optimized out>, data=<optimized out>) at rpc-clnt.c:890 >#10 0x00007fa38bb4b0d3 in rpc_transport_notify (this=this@entry=0x1e42d40, event=event@entry=RPC_TRANSPORT_MSG_RECEIVED, data=<optimized out>) > at rpc-transport.c:495 >#11 0x00007fa3889bd294 in socket_event_poll_in (this=this@entry=0x1e42d40) at socket.c:2133 >#12 0x00007fa3889bd7b8 in socket_poller (ctx=0x1e42d40) at socket.c:2354 >#13 0x00000033b9807d14 in start_thread (arg=0x7fa377fff700) at pthread_create.c:309 >#14 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) f 7 >#7 0x00007fa387973699 in client_query_portmap_cbk (req=<optimized out>, iov=<optimized out>, count=<optimized out>, myframe=0x7fa38a999fc0) > at client-handshake.c:1713 >warning: Source file is more recent than executable. >1713 if (conf) { >(gdb) p *conf >$1 = {rpc = 0x1e332b0, opt = {remote_subvolume = 0x1e090a0 "/d/backends/1", ping_timeout = 42}, rpc_conf = {rpc_timeout = 1800, remote_port = 0, > remote_host = 0x0}, saved_fds = {next = 0x1e1ee38, prev = 0x1e1ee38}, lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, > __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, connecting = 0, > connected = 1, fops = 0x7fa387b84560, mgmt = 0x0, handshake = 0x611340, dump = 0x7fa387b845e0, reopen_fd_count = 0, rec_lock = 1, skip_notify = 0, > last_sent_event = 5, portmap_err_logged = 1 '\001', need_different_port = 0 '\000', lk_heal = _gf_false, lk_version = 1, grace_tv = {tv_sec = 10, > tv_usec = 0}, grace_timer = 0x0, grace_timer_needed = _gf_true, parent_down = 0 '\000', quick_reconnect = _gf_false, filter_o_direct = _gf_false} >(gdb) l >1708 >1709 out: >1710 if (frame) >1711 STACK_DESTROY (frame->root); >1712 >1713 if (conf) { >1714 /* Need this to connect the same transport on different port */ >1715 /* ie, glusterd to glusterfsd */ >1716 rpc_transport_disconnect (conf->rpc->conn.trans); >1717 } >(gdb) l client_query_portmap_cbk >1656 } >1657 >1658 >1659 int >1660 client_query_portmap_cbk (struct rpc_req *req, struct iovec *iov, int count, void *myframe) >1661 { >1662 struct pmap_port_by_brick_rsp rsp = {0,}; >1663 call_frame_t *frame = NULL; >1664 clnt_conf_t *conf = NULL; >1665 int ret = -1; >(gdb) >1666 struct rpc_clnt_config config = {0, }; >1667 xlator_t *this = NULL; >1668 >1669 frame = myframe; >1670 if (!frame || !frame->this || !frame->this->private) { >1671 gf_log (THIS->name, GF_LOG_WARNING, >1672 "frame not found with rpc request"); >1673 goto out; >1674 } >1675 this = frame->this; >(gdb) >1676 conf = frame->this->private; >1677 >1678 if (-1 == req->rpc_status) { >1679 gf_log (this->name, GF_LOG_WARNING, >1680 "received RPC status error, try again later"); >1681 goto out; >1682 } >1683 >1684 ret = xdr_to_generic (*iov, &rsp, (xdrproc_t)xdr_pmap_port_by_brick_rsp); >1685 if (ret < 0) { >(gdb) >1686 gf_log (this->name, GF_LOG_ERROR, "XDR decoding failed"); >1687 goto out; >1688 } >1689 >1690 if (-1 == rsp.op_ret) { >1691 ret = -1; >1692 gf_log (this->name, ((!conf->portmap_err_logged) ? >1693 GF_LOG_ERROR : GF_LOG_DEBUG), >1694 "failed to get the port number for remote subvolume. " >1695 "Please run 'gluster volume status' on server to see " >(gdb) >1696 "if brick process is running."); >1697 conf->portmap_err_logged = 1; >1698 goto out; >1699 } >1700 >1701 conf->portmap_err_logged = 0; >1702 >1703 config.remote_port = rsp.port; >1704 rpc_clnt_reconfig (conf->rpc, &config); >1705 >(gdb) >1706 conf->skip_notify = 1; >1707 conf->quick_reconnect = 1; >1708 >1709 out: >1710 if (frame) >1711 STACK_DESTROY (frame->root); >1712 >1713 if (conf) { >1714 /* Need this to connect the same transport on different port */ >1715 /* ie, glusterd to glusterfsd */ >(gdb) >1716 rpc_transport_disconnect (conf->rpc->conn.trans); >1717 } >1718 >1719 return ret; >1720 } >1721 >1722 >1723 int >1724 client_query_portmap (xlator_t *this, struct rpc_clnt *rpc) >1725 { >(gdb) bt >#0 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >#1 0x00000033c8cbbd02 in EVP_MD_CTX_cleanup (ctx=ctx@entry=0x33b97af660) at digest.c:427 >#2 0x00000033c8cbbe19 in EVP_MD_CTX_destroy (ctx=0x33b97af660) at digest.c:407 >#3 0x00000033ccc39211 in ssl_clear_hash_ctx (hash=hash@entry=0x7fa378000a48) at ssl_lib.c:3046 >#4 0x00000033ccc39632 in SSL_clear (s=0x7fa378000970) at ssl_lib.c:233 >#5 0x00007fa3889b7f8a in __socket_disconnect (this=this@entry=0x1e42d40) at socket.c:628 >#6 0x00007fa3889b83ae in socket_disconnect (this=0x1e42d40) at socket.c:2613 >#7 0x00007fa387973699 in client_query_portmap_cbk (req=<optimized out>, iov=<optimized out>, count=<optimized out>, myframe=0x7fa38a999fc0) > at client-handshake.c:1713 >#8 0x00007fa38bb4e4f4 in rpc_clnt_handle_reply (clnt=clnt@entry=0x1e332b0, pollin=0x7fa378010990) at rpc-clnt.c:771 >#9 0x00007fa38bb4e85d in rpc_clnt_notify (trans=<optimized out>, mydata=0x1e332e0, event=<optimized out>, data=<optimized out>) at rpc-clnt.c:890 >#10 0x00007fa38bb4b0d3 in rpc_transport_notify (this=this@entry=0x1e42d40, event=event@entry=RPC_TRANSPORT_MSG_RECEIVED, data=<optimized out>) > at rpc-transport.c:495 >#11 0x00007fa3889bd294 in socket_event_poll_in (this=this@entry=0x1e42d40) at socket.c:2133 >#12 0x00007fa3889bd7b8 in socket_poller (ctx=0x1e42d40) at socket.c:2354 >#13 0x00000033b9807d14 in start_thread (arg=0x7fa377fff700) at pthread_create.c:309 >#14 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) info th > Id Target Id Frame > 8 Thread 0x7fa388385700 (LWP 15286) 0x00000033b980e80d in nanosleep () at ../sysdeps/unix/syscall-template.S:82 > 7 Thread 0x7fa38501f700 (LWP 15308) 0x00000033b94ea391 in __libc_readv (fd=<optimized out>, vector=vector@entry=0x7fa38501ee50, > count=count@entry=2) at ../sysdeps/unix/sysv/linux/readv.c:56 > 6 Thread 0x7fa3893c7700 (LWP 15285) pthread_cond_timedwait@@GLIBC_2.3.2 () > at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 > 5 Thread 0x7fa389bc8700 (LWP 15284) pthread_cond_timedwait@@GLIBC_2.3.2 () > at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 > 4 Thread 0x7fa38481e700 (LWP 15309) 0x00000033b980e0ad in read () at ../sysdeps/unix/syscall-template.S:82 > 3 Thread 0x7fa38a3c9700 (LWP 15283) do_sigwait (sig=0x7fa38a3c8e1c, set=<optimized out>) at ../sysdeps/unix/sysv/linux/sigwait.c:65 > 2 Thread 0x7fa38b911740 (LWP 15282) 0x00000033b94f1c73 in epoll_wait () at ../sysdeps/unix/syscall-template.S:82 >* 1 Thread 0x7fa377fff700 (LWP 15347) 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >(gdb) t 2 >[Switching to thread 2 (Thread 0x7fa38b911740 (LWP 15282))] >#0 0x00000033b94f1c73 in epoll_wait () at ../sysdeps/unix/syscall-template.S:82 >82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) >(gdb) bt >#0 0x00000033b94f1c73 in epoll_wait () at ../sysdeps/unix/syscall-template.S:82 >#1 0x00007fa38bdb0477 in event_dispatch_epoll (event_pool=0x1de5ea0) at event-epoll.c:428 >#2 0x000000000040496e in main (argc=4, argv=0x7fffeb9a4b98) at glusterfsd.c:1902 >(gdb) t 3 >[Switching to thread 3 (Thread 0x7fa38a3c9700 (LWP 15283))] >#0 do_sigwait (sig=0x7fa38a3c8e1c, set=<optimized out>) at ../sysdeps/unix/sysv/linux/sigwait.c:65 >65 && INTERNAL_SYSCALL_ERRNO (ret, err) == EINTR); >(gdb) bt >#0 do_sigwait (sig=0x7fa38a3c8e1c, set=<optimized out>) at ../sysdeps/unix/sysv/linux/sigwait.c:65 >#1 __sigwait (set=set@entry=0x7fa38a3c8e20, sig=sig@entry=0x7fa38a3c8e1c) at ../sysdeps/unix/sysv/linux/sigwait.c:100 >#2 0x0000000000406b97 in glusterfs_sigwaiter (arg=<optimized out>) at glusterfsd.c:1572 >#3 0x00000033b9807d14 in start_thread (arg=0x7fa38a3c9700) at pthread_create.c:309 >#4 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) t 4 >[Switching to thread 4 (Thread 0x7fa38481e700 (LWP 15309))] >#0 0x00000033b980e0ad in read () at ../sysdeps/unix/syscall-template.S:82 >82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) >(gdb) bt >#0 0x00000033b980e0ad in read () at ../sysdeps/unix/syscall-template.S:82 >#1 0x00007fa38a3d2d33 in notify_kernel_loop (data=<optimized out>) at fuse-bridge.c:3412 >#2 0x00000033b9807d14 in start_thread (arg=0x7fa38481e700) at pthread_create.c:309 >#3 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) t 5 >[Switching to thread 5 (Thread 0x7fa389bc8700 (LWP 15284))] >#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 >218 62: movq %rax, %r14 >(gdb) bt >#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 >#1 0x00007fa38bd9aa23 in syncenv_task (proc=proc@entry=0x1df2460) at syncop.c:282 >#2 0x00007fa38bd9ae60 in syncenv_processor (thdata=0x1df2460) at syncop.c:360 >#3 0x00000033b9807d14 in start_thread (arg=0x7fa389bc8700) at pthread_create.c:309 >#4 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) t 6 >[Switching to thread 6 (Thread 0x7fa3893c7700 (LWP 15285))] >#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 >218 62: movq %rax, %r14 >(gdb) bt >#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 >#1 0x00007fa38bd9aa23 in syncenv_task (proc=proc@entry=0x1df2820) at syncop.c:282 >#2 0x00007fa38bd9ae60 in syncenv_processor (thdata=0x1df2820) at syncop.c:360 >#3 0x00000033b9807d14 in start_thread (arg=0x7fa3893c7700) at pthread_create.c:309 >#4 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) t 7 >[Switching to thread 7 (Thread 0x7fa38501f700 (LWP 15308))] >#0 0x00000033b94ea391 in __libc_readv (fd=<optimized out>, vector=vector@entry=0x7fa38501ee50, count=count@entry=2) > at ../sysdeps/unix/sysv/linux/readv.c:56 >56 result = INLINE_SYSCALL (readv, 3, fd, CHECK_N (vector, count), count); >(gdb) bt >#0 0x00000033b94ea391 in __libc_readv (fd=<optimized out>, vector=vector@entry=0x7fa38501ee50, count=count@entry=2) > at ../sysdeps/unix/sysv/linux/readv.c:56 >#1 0x00007fa38a3e87d5 in fuse_thread_proc (data=0x1de6b30) at fuse-bridge.c:4316 >#2 0x00000033b9807d14 in start_thread (arg=0x7fa38501f700) at pthread_create.c:309 >#3 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) t 8 >[Switching to thread 8 (Thread 0x7fa388385700 (LWP 15286))] >#0 0x00000033b980e80d in nanosleep () at ../sysdeps/unix/syscall-template.S:82 >82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) >(gdb) bt >#0 0x00000033b980e80d in nanosleep () at ../sysdeps/unix/syscall-template.S:82 >#1 0x00007fa38bd7de34 in gf_timer_proc (ctx=0x1dca010) at timer.c:173 >#2 0x00000033b9807d14 in start_thread (arg=0x7fa388385700) at pthread_create.c:309 >#3 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) t 9 >Thread ID 9 not known. >(gdb) bt >#0 0x00000033b980e80d in nanosleep () at ../sysdeps/unix/syscall-template.S:82 >#1 0x00007fa38bd7de34 in gf_timer_proc (ctx=0x1dca010) at timer.c:173 >#2 0x00000033b9807d14 in start_thread (arg=0x7fa388385700) at pthread_create.c:309 >#3 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) info th > Id Target Id Frame >'* 8 Thread 0x7fa388385700 (LWP 15286) 0x00000033b980e80d in nanosleep () at ../sysdeps/unix/syscall-template.S:82 > 7 Thread 0x7fa38501f700 (LWP 15308) 0x00000033b94ea391 in __libc_readv (fd=<optimized out>, vector=vector@entry=0x7fa38501ee50, > count=count@entry=2) at ../sysdeps/unix/sysv/linux/readv.c:56 > 6 Thread 0x7fa3893c7700 (LWP 15285) pthread_cond_timedwait@@GLIBC_2.3.2 () > at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 > 5 Thread 0x7fa389bc8700 (LWP 15284) pthread_cond_timedwait@@GLIBC_2.3.2 () > at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218 > 4 Thread 0x7fa38481e700 (LWP 15309) 0x00000033b980e0ad in read () at ../sysdeps/unix/syscall-template.S:82 > 3 Thread 0x7fa38a3c9700 (LWP 15283) do_sigwait (sig=0x7fa38a3c8e1c, set=<optimized out>) at ../sysdeps/unix/sysv/linux/sigwait.c:65 > 2 Thread 0x7fa38b911740 (LWP 15282) 0x00000033b94f1c73 in epoll_wait () at ../sysdeps/unix/syscall-template.S:82 > 1 Thread 0x7fa377fff700 (LWP 15347) 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >(gdb) t 1 >[Switching to thread 1 (Thread 0x7fa377fff700 (LWP 15347))] >#0 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >316 if (ctx->pmeth && ctx->pmeth->cleanup) >(gdb) bt >#0 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >#1 0x00000033c8cbbd02 in EVP_MD_CTX_cleanup (ctx=ctx@entry=0x33b97af660) at digest.c:427 >#2 0x00000033c8cbbe19 in EVP_MD_CTX_destroy (ctx=0x33b97af660) at digest.c:407 >#3 0x00000033ccc39211 in ssl_clear_hash_ctx (hash=hash@entry=0x7fa378000a48) at ssl_lib.c:3046 >#4 0x00000033ccc39632 in SSL_clear (s=0x7fa378000970) at ssl_lib.c:233 >#5 0x00007fa3889b7f8a in __socket_disconnect (this=this@entry=0x1e42d40) at socket.c:628 >#6 0x00007fa3889b83ae in socket_disconnect (this=0x1e42d40) at socket.c:2613 >#7 0x00007fa387973699 in client_query_portmap_cbk (req=<optimized out>, iov=<optimized out>, count=<optimized out>, myframe=0x7fa38a999fc0) > at client-handshake.c:1713 >#8 0x00007fa38bb4e4f4 in rpc_clnt_handle_reply (clnt=clnt@entry=0x1e332b0, pollin=0x7fa378010990) at rpc-clnt.c:771 >#9 0x00007fa38bb4e85d in rpc_clnt_notify (trans=<optimized out>, mydata=0x1e332e0, event=<optimized out>, data=<optimized out>) at rpc-clnt.c:890 >#10 0x00007fa38bb4b0d3 in rpc_transport_notify (this=this@entry=0x1e42d40, event=event@entry=RPC_TRANSPORT_MSG_RECEIVED, data=<optimized out>) > at rpc-transport.c:495 >#11 0x00007fa3889bd294 in socket_event_poll_in (this=this@entry=0x1e42d40) at socket.c:2133 >#12 0x00007fa3889bd7b8 in socket_poller (ctx=0x1e42d40) at socket.c:2354 >#13 0x00000033b9807d14 in start_thread (arg=0x7fa377fff700) at pthread_create.c:309 >#14 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) f 5 >#5 0x00007fa3889b7f8a in __socket_disconnect (this=this@entry=0x1e42d40) at socket.c:628 >628 SSL_clear(priv->ssl_ssl); >(gdb) p priv >$2 = (socket_private_t *) 0x1e43070 >(gdb) p *priv >$3 = {sock = 9, idx = -1, connected = -1 '\377', bio = 0 '\000', connect_finish_log = 0 '\000', submit_log = 0 '\000', {ioq = {next = 0x1e43080, > prev = 0x1e43080}, {ioq_next = 0x1e43080, ioq_prev = 0x1e43080}}, incoming = {record_state = SP_STATE_NADA, frag = { > fragcurrent = 0x7fa38b910fa8 "", bytes_read = 0, remaining_size = 0, vector = {iov_base = 0x7fa38b910f88, iov_len = 32}, > pending_vector = 0x1e430a8, call_body = {request = {header_state = SP_STATE_REQUEST_HEADER_INIT, > vector_state = SP_STATE_VECTORED_REQUEST_INIT, vector_sizer_state = 0}, reply = {accept_status = 0, > status_state = SP_STATE_VECTORED_REPLY_STATUS_INIT, accepted_state = SP_STATE_ACCEPTED_REPLY_INIT, > accepted_success_state = SP_STATE_ACCEPTED_SUCCESS_REPLY_INIT}}, simple_state = SP_STATE_SIMPLE_MSG_INIT, state = SP_STATE_RPCFRAG_INIT}, > proghdr_base_addr = 0x0, iobuf = 0x0, iobuf_size = 40, vector = {{iov_base = 0x1e43144, iov_len = 4}, {iov_base = 0x0, iov_len = 0}}, count = 0, > payload_vector = {iov_base = 0x0, iov_len = 0}, iobref = 0x0, request_info = 0x0, pending_vector = 0x1e430b8, pending_count = 0, > fraghdr = 2147483688, complete_record = 0 '\000', msg_type = REPLY, total_bytes_read = 40, ra_read = 40, ra_max = 40, ra_served = 40, > ra_buf = 0x7fa38b910f80 ""}, lock = {__data = {__lock = 1, __count = 0, __owner = 15347, __nusers = 1, __kind = 0, __spins = 0, __list = { > __prev = 0x0, __next = 0x0}}, __size = "\001\000\000\000\000\000\000\000\363;\000\000\001", '\000' <repeats 26 times>, __align = 1}, > windowsize = 0, lowlat = 0 '\000', nodelay = 1 '\001', keepalive = 1, keepaliveidle = 20, keepaliveintvl = 2, backlog = 0, > read_fail_log = _gf_true, ssl_enabled = _gf_true, use_ssl = _gf_false, ssl_meth = 0x33cce55780, ssl_ctx = 0x1e5ad20, ssl_session_id = 1, > ssl_sbio = 0x7fa378001270, ssl_ssl = 0x7fa378000970, ssl_own_cert = 0x1e43230 "/etc/ssl/glusterfs.pem", > ssl_private_key = 0x1e43250 "/etc/ssl/glusterfs.key", ssl_ca_list = 0x1e43270 "/etc/ssl/glusterfs.ca", thread = 140340069660416, pipe = {18, 21}, > own_thread = _gf_true, socket_gen = 5} >(gdb) f 7 >#7 0x00007fa387973699 in client_query_portmap_cbk (req=<optimized out>, iov=<optimized out>, count=<optimized out>, myframe=0x7fa38a999fc0) > at client-handshake.c:1713 >1713 if (conf) { >(gdb) p *conf >$4 = {rpc = 0x1e332b0, opt = {remote_subvolume = 0x1e090a0 "/d/backends/1", ping_timeout = 42}, rpc_conf = {rpc_timeout = 1800, remote_port = 0, > remote_host = 0x0}, saved_fds = {next = 0x1e1ee38, prev = 0x1e1ee38}, lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, > __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, connecting = 0, > connected = 1, fops = 0x7fa387b84560, mgmt = 0x0, handshake = 0x611340, dump = 0x7fa387b845e0, reopen_fd_count = 0, rec_lock = 1, skip_notify = 0, > last_sent_event = 5, portmap_err_logged = 1 '\001', need_different_port = 0 '\000', lk_heal = _gf_false, lk_version = 1, grace_tv = {tv_sec = 10, > tv_usec = 0}, grace_timer = 0x0, grace_timer_needed = _gf_true, parent_down = 0 '\000', quick_reconnect = _gf_false, filter_o_direct = _gf_false} >(gdb) p conf->rpc >$5 = (struct rpc_clnt *) 0x1e332b0 >(gdb) p *$5 >$6 = {lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, > __size = '\000' <repeats 39 times>, __align = 0}, notifyfn = 0x7fa387956a20 <client_rpc_notify>, conn = {lock = {__data = {__lock = 0, > __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, > __align = 0}, trans = 0x1e42d40, config = {rpc_timeout = 0, remote_port = 0, remote_host = 0x0}, reconnect = 0x7fa3780102a0, > timer = 0x7fa378013230, ping_timer = 0x0, rpc_clnt = 0x1e332b0, connected = 0 '\000', saved_frames = 0x7fa378000c20, frame_timeout = 1800, > last_sent = {tv_sec = 0, tv_usec = 0}, last_received = {tv_sec = 1359460661, tv_usec = 220779}, ping_started = 0}, mydata = 0x1e07e60, xid = 28, > programs = {next = 0x1e5d270, prev = 0x1e5d270}, reqpool = 0x1e333d0, saved_frames_pool = 0x1e33480, ctx = 0x1dca010, refcount = 2, auth_null = 0, > disabled = 0 '\000'} >(gdb) p *$5.conn.trans >$7 = {ops = 0x7fa388bc6d80, listener = 0x1e42d40, private = 0x1e43070, xl_private = 0x0, xl = 0x1e07e60, mydata = 0x1e332e0, lock = {__data = { > __lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, > __size = '\000' <repeats 39 times>, __align = 0}, refcount = 3, ctx = 0x1dca010, options = 0x7fa38a7d8144, name = 0x1e43010 "patchy-client-0", > dnscache = 0x1e5d340, buf = 0x0, init = 0x7fa3889bf170 <init>, fini = 0x7fa3889bf080 <fini>, reconfigure = 0x7fa3889bdcc0 <reconfigure>, > notify = 0x7fa38bb4e7b0 <rpc_clnt_notify>, notify_data = 0x0, peerinfo = {sockaddr = {ss_family = 2, __ss_align = 0, > __ss_padding = '\000' <repeats 111 times>}, sockaddr_len = 16, identifier = "10.70.1.75:24007", '\000' <repeats 91 times>}, myinfo = { > sockaddr = {ss_family = 2, __ss_align = 0, __ss_padding = '\000' <repeats 111 times>}, sockaddr_len = 16, > identifier = "10.70.1.75:1023", '\000' <repeats 92 times>}, total_bytes_read = 5643, total_bytes_write = 5510, list = {next = 0x0, prev = 0x0}, > bind_insecure = 0, dl_handle = 0x1dfb360} >(gdb) p *$5.conn.trans.private >Attempt to dereference a generic pointer. >(gdb) ptype rpc_transport_t >type = struct rpc_transport { > struct rpc_transport_ops *ops; > rpc_transport_t *listener; > void *private; > void *xl_private; > void *xl; > void *mydata; > pthread_mutex_t lock; > int32_t refcount; > glusterfs_ctx_t *ctx; > dict_t *options; > char *name; > void *dnscache; > data_t *buf; > int32_t (*init)(rpc_transport_t *); > void (*fini)(rpc_transport_t *); > int (*reconfigure)(rpc_transport_t *, dict_t *); > rpc_transport_notify_t notify; > void *notify_data; > peer_info_t peerinfo; > peer_info_t myinfo; > uint64_t total_bytes_read; > uint64_t total_bytes_write; > struct list_head list; > int bind_insecure; > void *dl_handle; >} >(gdb) l rpc_transport_load >133 >134 >135 >136 rpc_transport_t * >137 rpc_transport_load (glusterfs_ctx_t *ctx, dict_t *options, char *trans_name) >138 { >139 struct rpc_transport *trans = NULL, *return_trans = NULL; >140 char *name = NULL; >141 void *handle = NULL; >142 char *type = NULL; >(gdb) >143 char str[] = "ERROR"; >144 int32_t ret = -1; >145 int8_t is_tcp = 0, is_unix = 0, is_ibsdp = 0; >146 volume_opt_list_t *vol_opt = NULL; >147 gf_boolean_t bind_insecure = _gf_false; >148 >149 GF_VALIDATE_OR_GOTO("rpc-transport", options, fail); >150 GF_VALIDATE_OR_GOTO("rpc-transport", ctx, fail); >151 GF_VALIDATE_OR_GOTO("rpc-transport", trans_name, fail); >152 >(gdb) >153 trans = GF_CALLOC (1, sizeof (struct rpc_transport), gf_common_mt_rpc_trans_t); >154 if (!trans) >155 goto fail; >156 >157 trans->name = gf_strdup (trans_name); >158 if (!trans->name) >159 goto fail; >160 >161 trans->ctx = ctx; >162 type = str; >(gdb) >163 >164 /* Backward compatibility */ >165 ret = dict_get_str (options, "transport-type", &type); >166 if (ret < 0) { >167 ret = dict_set_str (options, "transport-type", "socket"); >168 if (ret < 0) >169 gf_log ("dict", GF_LOG_DEBUG, >170 "setting transport-type failed"); >171 else >172 gf_log ("rpc-transport", GF_LOG_WARNING, >(gdb) >173 "missing 'option transport-type'. defaulting to " >174 "\"socket\""); >175 } else { >176 { >177 /* Backword compatibility to handle * /client, >178 * * /server. >179 */ >180 char *tmp = strchr (type, '/'); >181 if (tmp) >182 *tmp = '\0'; >(gdb) >183 } >184 >185 is_tcp = strcmp (type, "tcp"); >186 is_unix = strcmp (type, "unix"); >187 is_ibsdp = strcmp (type, "ib-sdp"); >188 if ((is_tcp == 0) || >189 (is_unix == 0) || >190 (is_ibsdp == 0)) { >191 if (is_unix == 0) >192 ret = dict_set_str (options, >(gdb) >193 "transport.address-family", >194 "unix"); >195 if (is_ibsdp == 0) >196 ret = dict_set_str (options, >197 "transport.address-family", >198 "inet-sdp"); >199 >200 if (ret < 0) >201 gf_log ("dict", GF_LOG_DEBUG, >202 "setting address-family failed"); >(gdb) p *( socket_private_t)$5.conn.trans.private >Structure has no component named operator*. >(gdb) p *( socket_private_t *)$5.conn.trans.private >$8 = {sock = 9, idx = -1, connected = -1 '\377', bio = 0 '\000', connect_finish_log = 0 '\000', submit_log = 0 '\000', {ioq = {next = 0x1e43080, > prev = 0x1e43080}, {ioq_next = 0x1e43080, ioq_prev = 0x1e43080}}, incoming = {record_state = SP_STATE_NADA, frag = { > fragcurrent = 0x7fa38b910fa8 "", bytes_read = 0, remaining_size = 0, vector = {iov_base = 0x7fa38b910f88, iov_len = 32}, > pending_vector = 0x1e430a8, call_body = {request = {header_state = SP_STATE_REQUEST_HEADER_INIT, > vector_state = SP_STATE_VECTORED_REQUEST_INIT, vector_sizer_state = 0}, reply = {accept_status = 0, > status_state = SP_STATE_VECTORED_REPLY_STATUS_INIT, accepted_state = SP_STATE_ACCEPTED_REPLY_INIT, > accepted_success_state = SP_STATE_ACCEPTED_SUCCESS_REPLY_INIT}}, simple_state = SP_STATE_SIMPLE_MSG_INIT, state = SP_STATE_RPCFRAG_INIT}, > proghdr_base_addr = 0x0, iobuf = 0x0, iobuf_size = 40, vector = {{iov_base = 0x1e43144, iov_len = 4}, {iov_base = 0x0, iov_len = 0}}, count = 0, > payload_vector = {iov_base = 0x0, iov_len = 0}, iobref = 0x0, request_info = 0x0, pending_vector = 0x1e430b8, pending_count = 0, > fraghdr = 2147483688, complete_record = 0 '\000', msg_type = REPLY, total_bytes_read = 40, ra_read = 40, ra_max = 40, ra_served = 40, > ra_buf = 0x7fa38b910f80 ""}, lock = {__data = {__lock = 1, __count = 0, __owner = 15347, __nusers = 1, __kind = 0, __spins = 0, __list = { > __prev = 0x0, __next = 0x0}}, __size = "\001\000\000\000\000\000\000\000\363;\000\000\001", '\000' <repeats 26 times>, __align = 1}, > windowsize = 0, lowlat = 0 '\000', nodelay = 1 '\001', keepalive = 1, keepaliveidle = 20, keepaliveintvl = 2, backlog = 0, > read_fail_log = _gf_true, ssl_enabled = _gf_true, use_ssl = _gf_false, ssl_meth = 0x33cce55780, ssl_ctx = 0x1e5ad20, ssl_session_id = 1, > ssl_sbio = 0x7fa378001270, ssl_ssl = 0x7fa378000970, ssl_own_cert = 0x1e43230 "/etc/ssl/glusterfs.pem", > ssl_private_key = 0x1e43250 "/etc/ssl/glusterfs.key", ssl_ca_list = 0x1e43270 "/etc/ssl/glusterfs.ca", thread = 140340069660416, pipe = {18, 21}, > own_thread = _gf_true, socket_gen = 5} >(gdb) p *( socket_private_t *)$5.conn.trans.private.ssl_ssl >Attempt to dereference a generic pointer. >(gdb) p $8.ssl_ssl >$9 = (SSL *) 0x7fa378000970 >(gdb) p *$8.ssl_ssl >$10 = {version = 2013266696, type = 0, method = 0x7fa378000318, rbio = 0x0, wbio = 0x0, bbio = 0x0, rwstate = 1, in_handshake = 0, > handshake_func = 0, server = 0, new_session = 0, quiet_shutdown = 0, shutdown = 0, state = 20480, rstate = 240, init_buf = 0x0, init_msg = 0x0, > init_num = 0, init_off = 0, packet = 0x33b97b1180 "\204$\255", <incomplete sequence \373>, packet_length = 4294967295, s2 = 0x0, s3 = 0x0, > d1 = 0x7fa378000a50, read_ahead = -1, msg_callback = 0, msg_callback_arg = 0x7fa378000a60, hit = 0, param = 0x7fa378000d00, cipher_list = 0x0, > cipher_list_by_id = 0xffffffff, mac_flags = 0, enc_read_ctx = 0x0, read_hash = 0x33b97af660, expand = 0x0, enc_write_ctx = 0x0, write_hash = 0x0, > compress = 0x0, cert = 0x0, sid_ctx_length = 0, sid_ctx = '\000' <repeats 31 times>, session = 0x0, generate_session_id = 0, verify_mode = 0, > verify_callback = 0, info_callback = 0, error = 0, error_code = 0, kssl_ctx = 0x7fa378000be0, psk_client_callback = 0, psk_server_callback = 0, > ctx = 0x1e5ad20, debug = 0, verify_result = 0, ex_data = {sk = 0x0, dummy = 0}, client_CA = 0x0, references = 0, options = 4, mode = 0, > max_cert_list = 102400, first_packet = 0, client_version = 2013266696, max_send_fragment = 16384, tlsext_debug_cb = 0, tlsext_debug_arg = 0x0, > tlsext_hostname = 0x0, servername_done = 0, tlsext_status_type = -1, tlsext_status_expected = 0, tlsext_ocsp_ids = 0x0, tlsext_ocsp_exts = 0x0, > tlsext_ocsp_resp = 0x0, tlsext_ocsp_resplen = -1, tlsext_ticket_expected = 1, tlsext_opaque_prf_input = 0x0, tlsext_opaque_prf_input_len = 0, > tlsext_session_ticket = 0x33b97af1a0, tls_session_ticket_ext_cb = 0x31, tls_session_ticket_ext_cb_arg = 0x7fa378000078, > tls_session_secret_cb = 0x7fa378000078, tls_session_secret_cb_arg = 0x0, initial_ctx = 0x1e5ad20} >(gdb) bt >#0 0x00000033c8cc7f01 in EVP_PKEY_CTX_free (ctx=0x33b9476090) at pmeth_lib.c:316 >#1 0x00000033c8cbbd02 in EVP_MD_CTX_cleanup (ctx=ctx@entry=0x33b97af660) at digest.c:427 >#2 0x00000033c8cbbe19 in EVP_MD_CTX_destroy (ctx=0x33b97af660) at digest.c:407 >#3 0x00000033ccc39211 in ssl_clear_hash_ctx (hash=hash@entry=0x7fa378000a48) at ssl_lib.c:3046 >#4 0x00000033ccc39632 in SSL_clear (s=0x7fa378000970) at ssl_lib.c:233 >#5 0x00007fa3889b7f8a in __socket_disconnect (this=this@entry=0x1e42d40) at socket.c:628 >#6 0x00007fa3889b83ae in socket_disconnect (this=0x1e42d40) at socket.c:2613 >#7 0x00007fa387973699 in client_query_portmap_cbk (req=<optimized out>, iov=<optimized out>, count=<optimized out>, myframe=0x7fa38a999fc0) > at client-handshake.c:1713 >#8 0x00007fa38bb4e4f4 in rpc_clnt_handle_reply (clnt=clnt@entry=0x1e332b0, pollin=0x7fa378010990) at rpc-clnt.c:771 >#9 0x00007fa38bb4e85d in rpc_clnt_notify (trans=<optimized out>, mydata=0x1e332e0, event=<optimized out>, data=<optimized out>) at rpc-clnt.c:890 >#10 0x00007fa38bb4b0d3 in rpc_transport_notify (this=this@entry=0x1e42d40, event=event@entry=RPC_TRANSPORT_MSG_RECEIVED, data=<optimized out>) > at rpc-transport.c:495 >#11 0x00007fa3889bd294 in socket_event_poll_in (this=this@entry=0x1e42d40) at socket.c:2133 >#12 0x00007fa3889bd7b8 in socket_poller (ctx=0x1e42d40) at socket.c:2354 >#13 0x00000033b9807d14 in start_thread (arg=0x7fa377fff700) at pthread_create.c:309 >#14 0x00000033b94f168d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 >(gdb) f 7 >#7 0x00007fa387973699 in client_query_portmap_cbk (req=<optimized out>, iov=<optimized out>, count=<optimized out>, myframe=0x7fa38a999fc0) > at client-handshake.c:1713 >1713 if (conf) { >(gdb) p *my_frame >No symbol "my_frame" in current context. >(gdb) p my_frame >No symbol "my_frame" in current context. >(gdb) p frame >$11 = (call_frame_t *) 0x7fa38a999fc0 >(gdb) p *(call_frame_t *) 0x7fa38a999fc0 >$12 = {root = 0x7fa38a999850, parent = 0x0, next = 0x0, prev = 0x0, local = 0x0, this = 0x1e07e60, ret = 0, ref_count = 0, lock = 1, cookie = 0x0, > complete = _gf_false, op = GF_FOP_NULL, begin = {tv_sec = 0, tv_usec = 0}, end = {tv_sec = 0, tv_usec = 0}, wind_from = 0x0, wind_to = 0x0, > unwind_from = 0x0, unwind_to = 0x0} >(gdb) p 0x7fa38a999fc0->this->private >Attempt to extract a component of a value that is not a structure pointer. >(gdb) p 0x7fa38a999fc0->this.private >Attempt to extract a component of a value that is not a structure pointer. >(gdb) p 0x7fa38a999fc0->this >Attempt to extract a component of a value that is not a structure pointer. >(gdb) p *(call_frame_t *) 0x7fa38a999fc0.this >Invalid number "0x7fa38a999fc0.this". >(gdb) p $12.this >$13 = (xlator_t *) 0x1e07e60 >(gdb) p *$13 >$14 = {name = 0x1e08800 "patchy-client-0", type = 0x1e08820 "protocol/client", next = 0x0, prev = 0x1e09120, parents = 0x1e08860, children = 0x0, > options = 0x7fa38a7d8144, dlhandle = 0x1e088c0, fops = 0x7fa387b83e60, cbks = 0x7fa387b84100, dumpops = 0x7fa387b83e00, volume_options = { > next = 0x1e08f00, prev = 0x1e09060}, fini = 0x7fa3879580b0 <fini>, init = 0x7fa387957ed0 <init>, reconfigure = 0x7fa387957d60 <reconfigure>, > mem_acct_init = 0x7fa3879571a0 <mem_acct_init>, notify = 0x7fa387956f20 <notify>, loglevel = GF_LOG_NONE, latencies = {{min = 0, max = 0, > total = 0, std = 0, mean = 0, count = 0} <repeats 46 times>}, history = 0x0, ctx = 0x1dca010, graph = 0x1e03ab0, itable = 0x0, > init_succeeded = 1 '\001', private = 0x1e1ee10, mem_acct = {num_types = 0, rec = 0x0}, winds = 0, switched = 0 '\000', local_pool = 0x1e1eef0, > is_autoloaded = _gf_false} >(gdb) p *$13.private >Attempt to dereference a generic pointer. >(gdb) p $13.private >$15 = (void *) 0x1e1ee10 >(gdb) p *(socket_private_t *)$15 >$16 = {sock = 31666864, idx = 0, connected = -96 '\240', bio = -112 '\220', connect_finish_log = -32 '\340', submit_log = 1 '\001', {ioq = { > next = 0x2a, prev = 0x708}, {ioq_next = 0x2a, ioq_prev = 0x708}}, incoming = {record_state = SP_STATE_NADA, frag = { > fragcurrent = 0x1e1ee38 "8\356\341\001", bytes_read = 31583800, remaining_size = 0, vector = {iov_base = 0x0, iov_len = 0}, > pending_vector = 0x0, call_body = {request = {header_state = SP_STATE_REQUEST_HEADER_INIT, vector_state = SP_STATE_VECTORED_REQUEST_INIT, > vector_sizer_state = 0}, reply = {accept_status = 0, status_state = SP_STATE_VECTORED_REPLY_STATUS_INIT, > accepted_state = SP_STATE_ACCEPTED_REPLY_INIT, accepted_success_state = SP_STATE_ACCEPTED_SUCCESS_REPLY_INIT}}, > simple_state = SP_STATE_SIMPLE_MSG_INIT, state = SP_STATE_READING_MSGTYPE}, proghdr_base_addr = 0x7fa387b84560 "\201\271\227\207\243\177", > iobuf = 0x0, iobuf_size = 6361920, vector = {{iov_base = 0x7fa387b845e0, iov_len = 0}, {iov_base = 0x1, iov_len = 4294967301}}, count = 0, > payload_vector = {iov_base = 0xa, iov_len = 0}, iobref = 0x0, request_info = 0x1, pending_vector = 0x0, pending_count = 0, fraghdr = 0, > complete_record = -127 '\201', msg_type = CALL, total_bytes_read = 31584160, ra_read = 31665556, ra_max = 274877906944, ra_served = 1, > ra_buf = 0x50c <Address 0x50c out of bounds>}, lock = {__data = {__lock = 31584160, __count = 0, __owner = 31666848, __nusers = 0, > __kind = 1264, __spins = 0, __list = {__prev = 0x10, __next = 0x0}}, > __size = "\240\357\341\001\000\000\000\000\240\062\343\001\000\000\000\000\360\004\000\000\000\000\000\000\020", '\000' <repeats 14 times>, > __align = 31584160}, windowsize = 3, lowlat = 0 '\000', nodelay = 0 '\000', keepalive = 0, keepaliveidle = 0, keepaliveintvl = 31584112, > backlog = 0, read_fail_log = (unknown: 31583704), ssl_enabled = _gf_false, use_ssl = (unknown: 31667256), ssl_meth = 0x31, > ssl_ctx = 0x632d796863746170, ssl_session_id = 1852139884, ssl_sbio = 0x636f6c5f746e6c63, ssl_ssl = 0x745f6c61, ssl_own_cert = 0x0, > ssl_private_key = 0x14311 <Address 0x14311 out of bounds>, ssl_ca_list = 0x1e1f4ac "\270\371\341\001", thread = 31583984, pipe = {31583984, 0}, > own_thread = _gf_false, socket_gen = 0} >(gdb) p $16.ssl_ssl >$17 = (SSL *) 0x745f6c61 >(gdb) p *$17 >Cannot access memory at address 0x745f6c61 >(gdb) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 902684
: 689771