Now we see that the dir with the Ceph source is is ceph-19.2.0. Let's
create a symlink so gdb would be able to find it:
> sudo ln -sv ceph-19.2.0 ceph-19.2.0-0ubuntu0.24.04.1
'ceph-19.2.0-0ubuntu0.24.04.1' -> 'ceph-19.2.0'
Let's restart gdb with ceph-mon again:
(gdb) start
Temporary breakpoint 1 at 0x32c670: file
/usr/src/ceph-19.2.0-0ubuntu0.24.04.1/src/ceph_mon.cc, line 250.
Starting program: /tmp/2/usr/bin/ceph-mon
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Temporary breakpoint 1, main (argc=1, argv=0x7fffffffdf98)
at /usr/src/ceph-19.2.0-0ubuntu0.24.04.1/src/ceph_mon.cc:250
250 {
(gdb) l
245 }
246 return addrs;
247 }
248
249 int main(int argc, const char **argv)
250 {
251 // reset our process name, in case we did a respawn, so that it's not
252 // left as "exe".
253 ceph_pthread_setname(pthread_self(), "ceph-mon");
254
Now we see the sources. The part of the backtrace that we want to know
more about is
10:
(MDSMap::decode(ceph::buffer::v15_2_0::list::iterator_impl<true>&)+0xca1)
[0x7497532c3ab1]
Let's see what's there:
(gdb) set pagination off
(gdb) disassemble
'MDSMap::decode(ceph::buffer::v15_2_0::list::iterator_impl<true>&)'
Dump of assembler code for function
_ZN6MDSMap6decodeERN4ceph6buffer7v15_2_04list13iterator_implILb1EEE:
Address range 0x7ffff7cc2e10 to 0x7ffff7cc3c4d:
0x00007ffff7cc2e10 <+0>: endbr64
0x00007ffff7cc2e14 <+4>: push %rbp
0x00007ffff7cc2e15 <+5>: mov %rsp,%rbp
0x00007ffff7cc2e18 <+8>: push %r15
0x00007ffff7cc2e1a <+10>: push %r14
0x00007ffff7cc2e1c <+12>: lea -0x2f3(%rbp),%rdx
...
We see that offsets here are in decimal and offsets in the stack
backtrace are in hex. We need decimal, so
(gdb) p 0xca1
$1 = 3233
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2089565
Title:
MON and MDS crash upgrading CEPH on ubuntu 24.04 LTS
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2089565/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs