Project

General

Profile

Actions

Bug #14609

closed

rados tool does not work with 0 length input (crashes if '--striper' enabled)

Added by Marcel Lauhoff over 8 years ago. Updated about 7 years ago.

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

0%

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

Description

Command:

./rados --pool=test put toyfile5 <(dd if=/dev/urandom of=- count=4 bs=1M); ./rados --pool=test get toyfile5 >(wc -c)

Output from dd:

4+0 records in
4+0 records out
4194304 bytes (4,2 MB) copied, 0,24987 s, 16,8 MB/s

Output from wc (should be 4M)

0

Command:

./rados --pool=test put --striper toyfile5 <(dd if=/dev/urandom of=- count=10 bs=1M)

Leads to crash (Full trace is attached):

FAILED assert(len > 0)


Files

foo (27.9 KB) foo Marcel Lauhoff, 02/02/2016 03:27 PM

Related issues 1 (0 open1 closed)

Copied to Ceph - Backport #18815: jewel: rados tool does not work with 0 length input (crashes if '--striper' enabled)ResolvedShinobu KinjoActions
Actions

Also available in: Atom PDF