Project

General

Profile

Actions

Bug #51492

closed

pacific: pybind/ceph_volume_client: stat on empty string

Added by Patrick Donnelly almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Immediate
Category:
Correctness/Safety
Target version:
-
% Done:

0%

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

Description

When volume_prefix begins with "/", the library will try to stat the empty string resulting in a log like:

2021-07-01 02:15:04.449 7f7612b5ab80  3 client.178735 statx enter (relpath  want 2047)
/usr/include/c++/8/string_view:172: constexpr const _CharT& std::basic_string_view<_CharT, _Traits>::operator[](std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT = char$_Traits = std::char_traits<char>; std::basic_string_view<_CharT, _Traits>::size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
Aborted (core dumped)

relpath indicates the empty string.


Related issues 3 (1 open2 closed)

Related to CephFS - Bug #51495: client: handle empty path stringsIn ProgressPatrick Donnelly

Actions
Copied to CephFS - Backport #51493: nautilus: pacific: pybind/ceph_volume_client: stat on empty stringResolvedPatrick DonnellyActions
Copied to CephFS - Backport #51494: octopus: pacific: pybind/ceph_volume_client: stat on empty stringResolvedPatrick DonnellyActions
Actions #1

Updated by Patrick Donnelly almost 3 years ago

  • Status changed from In Progress to Pending Backport
Actions #2

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51493: nautilus: pacific: pybind/ceph_volume_client: stat on empty string added
Actions #3

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51494: octopus: pacific: pybind/ceph_volume_client: stat on empty string added
Actions #4

Updated by Patrick Donnelly almost 3 years ago

  • Related to Bug #51495: client: handle empty path strings added
Actions #5

Updated by Patrick Donnelly almost 3 years ago

  • Pull request ID set to 42159
Actions #6

Updated by Loïc Dachary almost 3 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF