Actions
Bug #13138
closedSegfault shutting down python-cephfs
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'
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)"
Updated by John Spray over 8 years ago
- Status changed from New to Fix Under Review
Actions