Project

General

Profile

Actions

Bug #22245

closed

[segfault] ceph-bluestore-tool bluefs-log-dump

Added by Shinobu Kinjo over 6 years ago. Updated about 6 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

After running command several times, it's segfaulted.

./bin/ceph-bluestore-tool bluefs-log-dump --path dev/osd0

  • Caught signal (Segmentation fault)
    in thread 7f27568a7f80 thread_name:ceph-bluestore-
    ceph version 13.0.0-3518-g342d1bc (342d1bccac0448cea7d8639ab894f4220e7e7deb) mimic (dev)
    1: (()+0x4654f1) [0x56537d50f4f1]
    2: (()+0xf5e0) [0x7f274baed5e0]
    3: (BlueFS::_read(BlueFS::FileReader*, BlueFS::FileReaderBuffer*, unsigned long, unsigned long, ceph::buffer::list*, char*)+0x456) [0x56537d2f33d6]
    4: (BlueFS::_replay(bool, bool)+0x30b) [0x56537d3064fb]
    5: (BlueFS::log_dump(CephContext*, std::string const&, std::vector<std::string, std::allocator<std::string> > const&)+0x47) [0x56537d30a827]
    6: (log_dump(CephContext*, std::string const&, std::vector<std::string, std::allocator<std::string> > const&)+0x64) [0x56537d2e41d4]
    7: (main()+0x2549) [0x56537d1f8ed9]
    8: (__libc_start_main()+0xf5) [0x7f274a4cbc05]
    9: (()+0x23951f) [0x56537d2e351f]
    2017-11-27 09:55:29.005 7f27568a7f80 1
    Caught signal (Segmentation fault) *
    in thread 7f27568a7f80 thread_name:ceph-bluestore

    ceph version 13.0.0-3518-g342d1bc (342d1bccac0448cea7d8639ab894f4220e7e7deb) mimic (dev)
    1: (()+0x4654f1) [0x56537d50f4f1]
    2: (()+0xf5e0) [0x7f274baed5e0]
    3: (BlueFS::_read(BlueFS::FileReader*, BlueFS::FileReaderBuffer*, unsigned long, unsigned long, ceph::buffer::list*, char*)+0x456) [0x56537d2f33d6]
    4: (BlueFS::_replay(bool, bool)+0x30b) [0x56537d3064fb]
    5: (BlueFS::log_dump(CephContext*, std::string const&, std::vector<std::string, std::allocator<std::string> > const&)+0x47) [0x56537d30a827]
    6: (log_dump(CephContext*, std::string const&, std::vector<std::string, std::allocator<std::string> > const&)+0x64) [0x56537d2e41d4]
    7: (main()+0x2549) [0x56537d1f8ed9]
    8: (__libc_start_main()+0xf5) [0x7f274a4cbc05]
    9: (()+0x23951f) [0x56537d2e351f]
    NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

    0> 2017-11-27 09:55:29.005 7f27568a7f80 1 ** Caught signal (Segmentation fault) *
    in thread 7f27568a7f80 thread_name:ceph-bluestore

    ceph version 13.0.0-3518-g342d1bc (342d1bccac0448cea7d8639ab894f4220e7e7deb) mimic (dev)
    1: (()+0x4654f1) [0x56537d50f4f1]
    2: (()+0xf5e0) [0x7f274baed5e0]
    3: (BlueFS::_read(BlueFS::FileReader*, BlueFS::FileReaderBuffer*, unsigned long, unsigned long, ceph::buffer::list*, char*)+0x456) [0x56537d2f33d6]
    4: (BlueFS::_replay(bool, bool)+0x30b) [0x56537d3064fb]
    5: (BlueFS::log_dump(CephContext*, std::string const&, std::vector<std::string, std::allocator<std::string> > const&)+0x47) [0x56537d30a827]
    6: (log_dump(CephContext*, std::string const&, std::vector<std::string, std::allocator<std::string> > const&)+0x64) [0x56537d2e41d4]
    7: (main()+0x2549) [0x56537d1f8ed9]
    8: (__libc_start_main()+0xf5) [0x7f274a4cbc05]
    9: (()+0x23951f) [0x56537d2e351f]
    NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

Segmentation fault

Actions #1

Updated by John Spray over 6 years ago

  • Project changed from Ceph to RADOS
  • Category set to Correctness/Safety
  • Component(RADOS) BlueStore added
Actions #2

Updated by Sage Weil over 6 years ago

  • Status changed from New to Need More Info

I can't reproduce this locally. Can you rerun the command with --log-file c --debug-bluestore 20 --no-log-to-stderr and upload the log file? (ceph-post-file c)

Actions #3

Updated by Greg Farnum over 6 years ago

  • Project changed from RADOS to bluestore
  • Category deleted (Correctness/Safety)
Actions #4

Updated by Shinobu Kinjo over 6 years ago

@octopus:build [master]$ ./bin/ceph-post-file c
args: -- c
./bin/ceph-post-file: upload tag e12e6b30-953d-43d5-80a4-2b053634650f
./bin/ceph-post-file: user:
./bin/ceph-post-file: will upload file c
sftp> mkdir _919f739a-be83-4923-ab1f-5c674a072d06
sftp> cd _919f739a-be83-4923-ab1f-5c674a072d06
sftp> put /tmp/tmp.QlL4rzUwlr user
sftp> put c
./bin/ceph-post-file: copy the upload id below to share with a dev:

ceph-post-file: e12e6b30-953d-43d5-80a4-2b053634650f

Actions #5

Updated by Shinobu Kinjo over 6 years ago

  • Status changed from Need More Info to New

@Sage Weil Please have a look at uploaded file.

Actions #6

Updated by Sage Weil over 6 years ago

  • Status changed from New to Need More Info

can you still reproduce this? do you have (or can you generate) a core file? THe log doesn't tell us where it failed in _read.

Actions #7

Updated by Sage Weil about 6 years ago

  • Status changed from Need More Info to Can't reproduce
Actions

Also available in: Atom PDF