Bug #37780
closedmon: segmentation fault during shutdown
0%
Description
#0 0x00007ff59d6844ab in raise () from /lib64/libpthread.so.0
#1 0x000055705addee9a in reraise_fatal (signum=11) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/global/signal_handler.cc:74
#2 handle_fatal_signal (signum=11) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/global/signal_handler.cc:138
#3 <signal handler called>
#4 PerfCounters::set (this=0x0, idx=idx@entry=456001, amt=1) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/common/perf_counters.cc:200
#5 0x000055705a855f5b in Monitor::_ms_dispatch (this=this@entry=0x5570656f0000, m=m@entry=0x5570676c8240) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/mon/Monitor.cc:4191
#6 0x000055705a881743 in Monitor::ms_dispatch (this=0x5570656f0000, m=0x5570676c8240) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/mon/Monitor.h:907
#7 0x000055705ad85bc7 in ms_deliver_dispatch (m=0x5570676c8240, this=0x557064e3ae00) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/msg/Messenger.h:668
#8 DispatchQueue::entry (this=0x557064e3af58) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/msg/DispatchQueue.cc:197
#9 0x000055705ab722ad in DispatchQueue::DispatchThread::entry (this=<optimized out>) at /usr/src/debug/ceph-12.2.7-476-gaae1dca/src/msg/DispatchQueue.h:101
#10 0x00007ff59d67ce25 in start_thread () from /lib64/libpthread.so.0
#11 0x00007ff59952d34d in clone () from /lib64/libc.so.6
Updated by tao ning over 5 years ago
void Monitor::shutdown() {
if (logger) {
cct->get_perfcounters_collection()->remove(logger);
delete logger;
logger = NULL;
}
...
messenger->shutdown(); // last thing! ceph_mon.cc will delete mon.
mgr_messenger->shutdown();
}
In the monitor shutdown process, the MSG thread exits after the logger is released,
causing the null pointer to be accessed
Updated by Kefu Chai over 5 years ago
- Status changed from New to Fix Under Review
- Backport set to luminous,mimic
- Pull request ID set to 25760
Updated by Kefu Chai over 5 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler over 5 years ago
- Copied to Backport #37812: mimic: mon: segmentation fault during shutdown added
Updated by Nathan Cutler over 5 years ago
- Copied to Backport #37813: luminous: mon: segmentation fault during shutdown added
Updated by Nathan Cutler about 5 years ago
- Status changed from Pending Backport to Resolved