Project

General

Profile

Actions

Bug #53805

closed

mds: seg fault in expire_recursive

Added by 玮文 胡 over 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
pacific,octopus,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
crash
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Thread 19 "ms_dispatch" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb7fff700 (LWP 1213331)]
MDCache::expire_recursive (this=this@entry=0x7fffc8065920, in=in@entry=0x7fffc8082610, expiremap=std::map with 1 element = {...}) at ../src/mds/MDCache.cc:3747
3747          if (dnl->is_primary()) {
(gdb) bt
#0  MDCache::expire_recursive (this=this@entry=0x7fffc8065920, in=in@entry=0x7fffc8082610, expiremap=std::map with 1 element = {...}) at ../src/mds/MDCache.cc:3747
#1  0x00005555558ee433 in MDCache::trim (this=this@entry=0x7fffc8065920, count=count@entry=0) at ../src/mds/MDCache.cc:6811
#2  0x00005555558f3c24 in MDCache::upkeep_main (this=0x7fffc8065920) at ../src/mds/MDCache.cc:13285
#3  0x00005555559190bd in std::__invoke_impl<void, void (MDCache::*)(), MDCache*> (__t=<optimized out>, __f=<optimized out>) at /usr/include/c++/9/bits/invoke.h:89
#4  std::__invoke<void (MDCache::*)(), MDCache*> (__fn=<optimized out>) at /usr/include/c++/9/bits/invoke.h:95
#5  std::thread::_Invoker<std::tuple<void (MDCache::*)(), MDCache*> >::_M_invoke<0ul, 1ul> (this=<optimized out>) at /usr/include/c++/9/thread:244
#6  std::thread::_Invoker<std::tuple<void (MDCache::*)(), MDCache*> >::operator() (this=<optimized out>) at /usr/include/c++/9/thread:251
#7  std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (MDCache::*)(), MDCache*> > >::_M_run (this=<optimized out>) at /usr/include/c++/9/thread:195
#8  0x00007ffff71cdde4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007ffff72e2609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007ffff6ebb293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) p dnl
$1 = (CDentry::linkage_t *) 0x1a8

Range-based for should not be used when we are altering the container.


Related issues 3 (0 open3 closed)

Copied to CephFS - Backport #54219: octopus: mds: seg fault in expire_recursiveResolvedWei-Chung ChengActions
Copied to CephFS - Backport #54220: pacific: mds: seg fault in expire_recursiveResolvedVenky ShankarActions
Copied to CephFS - Backport #54407: quincy: mds: seg fault in expire_recursiveResolvedActions
Actions #1

Updated by Patrick Donnelly over 2 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to 玮文 胡
  • Target version set to v17.0.0
  • Backport set to pacific,octopus
Actions #2

Updated by Venky Shankar about 2 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport changed from pacific,octopus to pacific,octopus,quincy
Actions #3

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54218: quincy: mds: seg fault in expire_recursive added
Actions #4

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54219: octopus: mds: seg fault in expire_recursive added
Actions #5

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54220: pacific: mds: seg fault in expire_recursive added
Actions #6

Updated by Wei-Chung Cheng about 2 years ago

  • Pull request ID set to 44477
Actions #7

Updated by Hualong Feng about 2 years ago

  • Copied to deleted (Backport #54218: quincy: mds: seg fault in expire_recursive)
Actions #8

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54407: quincy: mds: seg fault in expire_recursive added
Actions #9

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #10

Updated by Konstantin Shalygin over 1 year ago

  • Status changed from Pending Backport to Resolved
  • Tags deleted (backport_processed)
Actions

Also available in: Atom PDF