Skip to content

Instantly share code, notes, and snippets.

@hwchiu
Created March 14, 2017 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hwchiu/3338a84c76d37a9fee8b13659a148c4b to your computer and use it in GitHub Desktop.
Save hwchiu/3338a84c76d37a9fee8b13659a148c4b to your computer and use it in GitHub Desktop.
gdb content
Excess command line arguments ignored. (/usr/bin/ceph)
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...Reading symbols from /usr/lib/debug/.build-id/cd/e2c487269892a2815c715667ae336984b82b0c.debug...done.
done.
warning: core file may not match specified executable file.
[New LWP 38625]
[New LWP 38623]
[New LWP 38619]
[New LWP 38626]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/python2.7 /usr/bin/ceph'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 Device::binding_port (this=this@entry=0x0, cct=cct@entry=0x7f7e28000b10, port_num=port_num@entry=1 '\001') at /home/hwchiu/ceph/src/msg/async/rdma/Infiniband.cc:129
129 port_cnt = device_attr->phys_port_cnt;
[Current thread is 1 (Thread 0x7f7e2d67a700 (LWP 38625))]
(gdb) bt
#0 Device::binding_port (this=this@entry=0x0, cct=cct@entry=0x7f7e28000b10, port_num=port_num@entry=1 '\001') at /home/hwchiu/ceph/src/msg/async/rdma/Infiniband.cc:129
#1 0x00007f7e31046084 in Infiniband::Infiniband (this=0x7f7e315a8bc0 <global_infiniband>, cct=0x7f7e28000b10, device_name=..., port_num=<optimized out>) at /home/hwchiu/ceph/src/msg/async/rdma/Infiniband.cc:717
#2 0x00007f7e31051e26 in Tub<Infiniband>::construct<CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int const&> (this=0x7f7e315a8bc0 <global_infiniband>)
at /home/hwchiu/ceph/src/common/Tub.h:205
#3 RDMAStack::RDMAStack (this=0x7f7e280825b0, cct=0x7f7e28000b10, t=...) at /home/hwchiu/ceph/src/msg/async/rdma/RDMAStack.cc:530
#4 0x00007f7e31038b62 in __gnu_cxx::new_allocator<RDMAStack>::construct<RDMAStack, CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__p=<optimized out>,
this=<optimized out>) at /usr/include/c++/5/ext/new_allocator.h:120
#5 std::allocator_traits<std::allocator<RDMAStack> >::construct<RDMAStack, CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__p=<optimized out>, __a=...)
at /usr/include/c++/5/bits/alloc_traits.h:530
#6 std::_Sp_counted_ptr_inplace<RDMAStack, std::allocator<RDMAStack>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (
__a=..., this=0x7f7e280825a0) at /usr/include/c++/5/bits/shared_ptr_base.h:522
#7 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<RDMAStack, std::allocator<RDMAStack>, CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__a=...,
this=<optimized out>) at /usr/include/c++/5/bits/shared_ptr_base.h:617
#8 std::__shared_ptr<RDMAStack, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<RDMAStack>, CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__a=..., __tag=...,
this=<optimized out>) at /usr/include/c++/5/bits/shared_ptr_base.h:1097
#9 std::shared_ptr<RDMAStack>::shared_ptr<std::allocator<RDMAStack>, CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__a=..., __tag=..., this=<optimized out>)
at /usr/include/c++/5/bits/shared_ptr.h:319
#10 std::allocate_shared<RDMAStack, std::allocator<RDMAStack>, CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> (__a=...) at /usr/include/c++/5/bits/shared_ptr.h:620
#11 std::make_shared<RDMAStack, CephContext*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&> () at /usr/include/c++/5/bits/shared_ptr.h:636
#12 NetworkStack::create (c=0x7f7e28000b10, t="rdma") at /home/hwchiu/ceph/src/msg/async/Stack.cc:67
#13 0x00007f7e3102d64f in StackSingleton::ready (type="rdma", this=<optimized out>) at /home/hwchiu/ceph/src/msg/async/AsyncMessenger.cc:222
#14 AsyncMessenger::AsyncMessenger (this=0x7f7e28080c90, cct=0x7f7e28000b10, name=..., type=..., mname=..., _nonce=7024327804931836677) at /home/hwchiu/ceph/src/msg/async/AsyncMessenger.cc:263
#15 0x00007f7e30fdd470 in Messenger::create (cct=cct@entry=0x7f7e28000b10, type="async+rdma", name=..., lname="", nonce=<optimized out>, cflags=0) at /home/hwchiu/ceph/src/msg/Messenger.cc:41
#16 0x00007f7e30fdd9b0 in Messenger::create_client_messenger (cct=0x7f7e28000b10, lname="") at /home/hwchiu/ceph/src/msg/Messenger.cc:21
#17 0x00007f7e39dd2436 in librados::RadosClient::connect() () from /usr/lib/librados.so.2
#18 0x00007f7e39d8987f in rados_connect () from /usr/lib/librados.so.2
#19 0x00007f7e3a0dacbc in __pyx_pf_5rados_5Rados_26connect (__pyx_v_timeout=<optimized out>, __pyx_v_self=0x7f7e2d89e940) at /tmp/buildd/ceph-12.0.0-1384-g7852b80/obj-x86_64-linux-gnu/src/pybind/rados/pyrex/rados.c:10133
#20 __pyx_pw_5rados_5Rados_27connect (__pyx_v_self=<rados.Rados at remote 0x7f7e2d89e940>, __pyx_args=<optimized out>, __pyx_kwds=<optimized out>)
at /tmp/buildd/ceph-12.0.0-1384-g7852b80/obj-x86_64-linux-gnu/src/pybind/rados/pyrex/rados.c:10079
#21 0x00000000004cb45e in ext_do_call (nk=<optimized out>, na=<optimized out>, flags=<optimized out>, pp_stack=0x7f7e2d679728, func=<built-in method connect of rados.Rados object at remote 0x7f7e2d89e940>)
at ../Python/ceval.c:4661
#22 PyEval_EvalFrameEx () at ../Python/ceval.c:3026
#23 0x00000000004c2765 in PyEval_EvalCodeEx () at ../Python/ceval.c:3582
#24 0x00000000004ca8d1 in fast_function (nk=0, na=<optimized out>, n=<optimized out>, pp_stack=0x7f7e2d679930, func=<function at remote 0x7f7e2d8b3c80>) at ../Python/ceval.c:4445
#25 call_function (oparg=<optimized out>, pp_stack=0x7f7e2d679930) at ../Python/ceval.c:4370
#26 PyEval_EvalFrameEx () at ../Python/ceval.c:2987
#27 0x00000000004c9d8f in fast_function (nk=<optimized out>, na=<optimized out>, n=<optimized out>, pp_stack=0x7f7e2d679a80, func=<function at remote 0x7f7e3a6db1b8>) at ../Python/ceval.c:4435
#28 call_function (oparg=<optimized out>, pp_stack=0x7f7e2d679a80) at ../Python/ceval.c:4370
#29 PyEval_EvalFrameEx () at ../Python/ceval.c:2987
#30 0x00000000004c2765 in PyEval_EvalCodeEx () at ../Python/ceval.c:3582
#31 0x00000000004de6fe in function_call.lto_priv () at ../Objects/funcobject.c:523
#32 0x00000000004b0cb3 in PyObject_Call () at ../Objects/abstract.c:2546
#33 0x00000000004f492e in instancemethod_call.lto_priv () at ../Objects/classobject.c:2602
#34 0x00000000004b0cb3 in PyObject_Call () at ../Objects/abstract.c:2546
#35 0x00000000004ce5d0 in PyEval_CallObjectWithKeywords () at ../Python/ceval.c:4219
#36 0x0000000000597e32 in t_bootstrap () at ../Modules/threadmodule.c:620
#37 0x00007f7e4286f6ba in start_thread (arg=0x7f7e2d67a700) at pthread_create.c:333
#38 0x00007f7e425a582d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) list
124 ceph_abort();
125 }
126 }
127
128 void Device::binding_port(CephContext *cct, uint8_t port_num) {
129 port_cnt = device_attr->phys_port_cnt;
130 for (uint8_t i = 0; i < port_cnt; ++i) {
131 Port *port = new Port(cct, ctxt, i+1);
132 if (i + 1 == port_num && port->get_port_attr()->state == IBV_PORT_ACTIVE) {
133
(gdb) p device_attr
Cannot access memory at address 0x20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment