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.
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
|
|
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
- 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
- Status changed from New to In Progress
- Assignee set to Kefu Chai
being worked on by Shinobu Kinjo
- Assignee deleted (
Kefu Chai)
- Assignee set to Shinobu Kinjo
- Release set to infernalis
- Release set to jewel
Reproduced in:
Infernalis: 9.2.1-31-gbaf17c9
Jewel: 10.2.5-5663-g601fb96
- Status changed from In Progress to Fix Under Review
- Status changed from Fix Under Review to 7
- Status changed from 7 to In Progress
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?))
@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.
- Release deleted (
infernalis)
- Status changed from In Progress to Pending Backport
- Assignee deleted (
Shinobu Kinjo)
- Copied to Backport #18815: jewel: rados tool does not work with 0 length input (crashes if '--striper' enabled) added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF