Project

General

Profile

Actions

Bug #14609

closed

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

Added by Marcel Lauhoff about 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 #1

Updated by Marcel Lauhoff about 8 years ago

Sorry, process substitution works. I did something stupid with dd. The only problem is 0 length input:

./rados --pool=test put --striper $RANDOM <(dd if=/dev/urandom count=0 bs=0)

Result: crash

Actions #2

Updated by Sage Weil about 8 years ago

  • Subject changed from rados tool does not work with process substitution (crashes if '--striper' enabled) to rados tool does not work with 0 length input (crashes if '--striper' enabled)
  • Priority changed from Normal to High
Actions #3

Updated by Kefu Chai over 7 years ago

  • Status changed from New to In Progress
  • Assignee set to Kefu Chai

being worked on by Shinobu Kinjo

Actions #4

Updated by Kefu Chai over 7 years ago

  • Assignee deleted (Kefu Chai)
Actions #5

Updated by Shinobu Kinjo over 7 years ago

  • Assignee set to Shinobu Kinjo
Actions #6

Updated by Shinobu Kinjo over 7 years ago

  • Release set to infernalis
  • Release set to jewel

Reproduced in:
Infernalis: 9.2.1-31-gbaf17c9
Jewel: 10.2.5-5663-g601fb96

Actions #7

Updated by Shinobu Kinjo about 7 years ago

  • Status changed from In Progress to Fix Under Review
Actions #8

Updated by Shinobu Kinjo about 7 years ago

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

Updated by Shinobu Kinjo about 7 years ago

  • Status changed from 7 to In Progress
Actions #10

Updated by Shinobu Kinjo about 7 years ago

This bug seems to be fixed in master. I'm now trying to find out when it's fixed then back it port to older version(jewel, infernalis(, hammer?))

Actions #11

Updated by Nathan Cutler about 7 years ago

@Shinobu: Please note that infernalis has already been retired. We will still backport bugfixes to hammer until the luminous release, but the focus there is on fixing bugs (if any) that prevent users from upgrading to jewel. Knowing that, if you still want to submit a hammer backport for review you are welcome to do so.

Actions #12

Updated by Nathan Cutler about 7 years ago

  • Backport set to jewel
Actions #13

Updated by Shinobu Kinjo about 7 years ago

@Nathan Weinberg, Thanks for your suggestion. will follow you.

Actions #15

Updated by Shinobu Kinjo about 7 years ago

  • Release deleted (infernalis)
Actions #17

Updated by Nathan Cutler about 7 years ago

  • Status changed from In Progress to Pending Backport
  • Assignee deleted (Shinobu Kinjo)
Actions #18

Updated by Nathan Cutler about 7 years ago

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

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF