Project

General

Profile

Bug #37780

mon: segmentation fault during shutdown

Added by tao ning about 2 months ago. Updated 24 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Monitor
Target version:
-
Start date:
01/03/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous,mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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


Related issues

Copied to Ceph - Backport #37812: mimic: mon: segmentation fault during shutdown Resolved
Copied to Ceph - Backport #37813: luminous: mon: segmentation fault during shutdown Resolved

History

#1 Updated by tao ning about 2 months 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

#2 Updated by Kefu Chai about 2 months ago

  • Status changed from New to Need Review
  • Backport set to luminous,mimic
  • Pull request ID set to 25760

#3 Updated by Kefu Chai about 2 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler about 1 month ago

  • Copied to Backport #37812: mimic: mon: segmentation fault during shutdown added

#5 Updated by Nathan Cutler about 1 month ago

  • Copied to Backport #37813: luminous: mon: segmentation fault during shutdown added

#6 Updated by Nathan Cutler 24 days ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF