Project

General

Profile

Actions

Bug #19865

closed

test_librbd.cc get_features() can return with features uninitialized

Added by Dan Mick almost 7 years ago. Updated almost 7 years ago.

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

0%

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

Description

get_features() does some work to parse RBD_FEATURES from the environment if supplied, but if not, it sets *old_format to true...but doesn't set *features at all, and some of its callers then refer to features. This causes tests to fail on arm64, where the stack garbage presumably is different.

set *features to 0 if RBD_FEATURES is not found in the env.

Actions #1

Updated by Dan Mick almost 7 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Dan Mick
Actions #2

Updated by Nathan Cutler almost 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF