Project

General

Profile

Actions

Bug #23288

closed

ceph-fuse: Segmentation fault --localize-reads

Added by Jos Collin about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Development
Tags:
easy
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
ceph-fuse
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The option '--localize-reads' seg faults when used as the last option in a command:

For example:

$ ./bin/ceph-fuse --localize-reads
2018-03-09 19:47:34.814 7f20e8a21cc0 -1 WARNING: all dangerous and experimental features are enabled.
2018-03-09 19:47:34.825 7f20e8a21cc0 -1 WARNING: all dangerous and experimental features are enabled.
setting CEPH_OSD_FLAG_LOCALIZE_READS
*** Caught signal (Segmentation fault) **
 in thread 7f20e8a21cc0 thread_name:ceph-fuse
Segmentation fault (core dumped)

$ sudo ./bin/ceph-fuse  -m localhost:40455 /mnt/stratcephfs/ --localize-reads
2018-03-09 19:46:59.364 7fd4c27accc0 -1 WARNING: all dangerous and experimental features are enabled.
2018-03-09 19:46:59.371 7fd4c27accc0 -1 WARNING: all dangerous and experimental features are enabled.
setting CEPH_OSD_FLAG_LOCALIZE_READS
*** Caught signal (Segmentation fault) **
 in thread 7fd4c27accc0 thread_name:ceph-fuse
 ceph version 13.0.1-2898-ga5123004ff (a5123004ff45a1f59dee9592f9003ed32a9b4b86) mimic (dev)
 1: (()+0xfc7a0) [0x556777bf57a0]
 2: (()+0x11fb0) [0x7fd4b7caefb0]
 3: (()+0x15d41f) [0x7fd4b6ad441f]
 4: (std::vector<char const*, std::allocator<char const*> >::_M_erase(__gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > >)+0x1f) [0x7fd4b97dc1ef]
 5: (ceph_argparse_flag(std::vector<char const*, std::allocator<char const*> >&, __gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > >&, ...)+0x130) [0x7fd4b97dac70]
 6: (main()+0x250) [0x556777b436e0]
 7: (__libc_start_main()+0xeb) [0x7fd4b699a1bb]
 8: (_start()+0x2a) [0x556777b4523a]
Segmentation fault

Otherwise, it is setting the value and ceph-fuse works fine.

Actions #1

Updated by Patrick Donnelly about 6 years ago

  • Category set to Correctness/Safety
  • Target version set to v13.0.0
  • Source set to Development
  • Tags set to easy
  • Backport set to luminous,jewel
  • Component(FS) ceph-fuse added
Actions #2

Updated by Patrick Donnelly about 6 years ago

  • Assignee set to Jos Collin
Actions #3

Updated by Jos Collin about 6 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Jos Collin about 6 years ago

  • Backport deleted (luminous,jewel)

@Patrick:

This doesn't exist in luminous and jewel. This is the after effect of a cleanup. The logic is changed along with the cleanup.

Please see:
https://github.com/ceph/ceph/blob/luminous/src/ceph_fuse.cc#L88
https://github.com/ceph/ceph/blob/jewel/src/ceph_fuse.cc#L84

The commit:
https://github.com/ceph/ceph/commit/0e492d5894ba6d017388627bdfbbec9ddd46ea8c#diff-60719d9de2b4013be19389b644ab3fdbL88

So clearing the Backport field.

Actions #5

Updated by Patrick Donnelly about 6 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF