Project

General

Profile

Actions

Bug #8257

closed

0.80~rc1: MDS segmentation fault

Added by Dmitry Smirnov almost 10 years ago. Updated almost 8 years ago.

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

0%

Source:
Community (user)
Tags:
Backport:
Regression:
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The following command reproduce MDS segmentation fault:

# ceph-mds -i NOP --dump-journal 0 /tmp/journal.mds0

Note that "-i NOP" is deliberately referencing non-existent resource (there is no segfault if NOP exists).

Output:

2014-04-30 16:03:54.685173 7feb98a0c7c0 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
*** Caught signal (Segmentation fault) **
 in thread 7feb98a0c7c0
2014-04-30 16:03:54.686483 7feb98a0c7c0 -1 Authentication failed, did you specify an MDS ID with a valid keyring?
 ceph version 0.80-rc1 (6769f4dc88425396921f94e1a37a1c90758aa3ea)
 1: (()+0x419c0f) [0x7feb98e84c0f]
 2: (()+0xf880) [0x7feb983cb880]
 3: (Journaler::recover(Context*)+0x14) [0x7feb98e49274]
 4: (Dumper::recover_journal()+0xe0) [0x7feb98bf7af0]
 5: (Dumper::dump(char const*)+0xa0) [0x7feb98bf8f30]
 6: (main()+0x6da) [0x7feb98bf394a]
 7: (__libc_start_main()+0xf5) [0x7feb96c7cb45]
 8: (()+0x18beb7) [0x7feb98bf6eb7]
2014-04-30 16:03:54.698421 7feb98a0c7c0 -1 *** Caught signal (Segmentation fault) **
 in thread 7feb98a0c7c0

 ceph version 0.80-rc1 (6769f4dc88425396921f94e1a37a1c90758aa3ea)
 1: (()+0x419c0f) [0x7feb98e84c0f]
 2: (()+0xf880) [0x7feb983cb880]
 3: (Journaler::recover(Context*)+0x14) [0x7feb98e49274]
 4: (Dumper::recover_journal()+0xe0) [0x7feb98bf7af0]
 5: (Dumper::dump(char const*)+0xa0) [0x7feb98bf8f30]
 6: (main()+0x6da) [0x7feb98bf394a]
 7: (__libc_start_main()+0xf5) [0x7feb96c7cb45]
 8: (()+0x18beb7) [0x7feb98bf6eb7]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

   -10> 2014-04-30 16:03:54.685173 7feb98a0c7c0 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
    -1> 2014-04-30 16:03:54.686483 7feb98a0c7c0 -1 Authentication failed, did you specify an MDS ID with a valid keyring?
     0> 2014-04-30 16:03:54.698421 7feb98a0c7c0 -1 *** Caught signal (Segmentation fault) **
 in thread 7feb98a0c7c0

 ceph version 0.80-rc1 (6769f4dc88425396921f94e1a37a1c90758aa3ea)
 1: (()+0x419c0f) [0x7feb98e84c0f]
 2: (()+0xf880) [0x7feb983cb880]
 3: (Journaler::recover(Context*)+0x14) [0x7feb98e49274]
 4: (Dumper::recover_journal()+0xe0) [0x7feb98bf7af0]
 5: (Dumper::dump(char const*)+0xa0) [0x7feb98bf8f30]
 6: (main()+0x6da) [0x7feb98bf394a]
 7: (__libc_start_main()+0xf5) [0x7feb96c7cb45]
 8: (()+0x18beb7) [0x7feb98bf6eb7]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

Segmentation fault

Actions #1

Updated by John Spray almost 10 years ago

This is the return value of Dumper::init not being checked in ceph_mds.cc.

This case is fixed on the wip-journal-tool branch as a side effect.

Actions #2

Updated by John Spray almost 10 years ago

  • Status changed from New to Resolved
commit f7e9ff174f8f84b0b3ccada87f6e4b18bdc4d130
Author: John Spray <john.spray@inktank.com>
Date:   Tue Mar 25 13:30:57 2014 +0000

    tools: Create cephfs-journal-tool

    This is for debugging/repairing CephFS journals.

    Signed-off-by: John Spray <john.spray@inktank.com>

As part of this, Dumper was moved out of ceph-mds itself into the new cephfs-journal-tool -- this issue no longer exists. The first release with this commit in was 0.82.

Actions #3

Updated by Greg Farnum almost 8 years ago

  • Component(FS) MDS added
Actions

Also available in: Atom PDF