Project

General

Profile

Actions

Bug #13138

closed

Segfault shutting down python-cephfs

Added by John Spray over 8 years ago. Updated almost 8 years ago.

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

0%

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

Description

>>> import cephfs ; c = cephfs.LibCephFS(conffile='') ; c.init() ; c.mount() ; c.shutdown() ; del c
>>> ./log/SubsystemMap.h: In function 'bool ceph::log::SubsystemMap::should_gather(unsigned int, int)' thread 7f213f7fe700 time 2015-09-17 11:16:00.553361
./log/SubsystemMap.h: 62: FAILED assert(sub < m_subsys.size())
 ceph version 0.94.3 (95cefea9fd9ab740263bf8bb4796fd864d9afe2b)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x82) [0x7f214a4c6ae2]
 2: (()+0x20dd0d) [0x7f214a36bd0d]
 3: (ObjectCacher::flusher_entry()+0x157) [0x7f214a3b1df7]
 4: (ObjectCacher::FlusherThread::entry()+0xd) [0x7f214a3c337d]
 5: (()+0x7555) [0x7f2157c48555]
 6: (clone()+0x6d) [0x7f2157274b9d]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
terminate called after throwing an instance of 'ceph::FailedAssertion'
Actions #1

Updated by John Spray over 8 years ago

So perhaps we weren't seeing this in automated tests because you have to keep the process alive for a while after shutting down:

PYTHONPATH=../src/pybind LD_LIBRARY_PATH=./src python -c "import cephfs ; c = cephfs.LibCephFS(conffile='') ; c.init() ; c.mount() ; c.shutdown() ; import time ; time.sleep(20)" 

Actions #2

Updated by John Spray over 8 years ago

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

Updated by Zheng Yan over 8 years ago

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

Updated by John Spray almost 8 years ago

  • Status changed from 7 to Resolved

Merged ages ago.

Actions

Also available in: Atom PDF