Actions
Bug #9857
closedrbd readahead division by zero exception
Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When using old-format RBD images, the RBD readahead block alignments are initialized to zero because the stripe parameters haven't yet been configured.
#0 Readahead::_compute_readahead (this=0x6635c0, limit=1024106552) at common/Readahead.cc:84 #1 0x00007ffff5047a45 in Readahead::update (this=0x6635c0, extents=std::vector of length 1, capacity 1 = {...}, limit=1024106552) at common/Readahead.cc:33 #2 0x00007ffff74e0be6 in librbd::readahead (ictx=0x663150, image_extents=std::vector of length 1, capacity 1 = {...}, conf=<value optimized out>) at librbd/internal.cc:3614 #3 0x00007ffff74e460f in librbd::aio_read (ictx=0x663150, image_extents=std::vector of length 1, capacity 1 = {...}, buf=0x0, pbl=0x6cb5b8, c=0x6c9b00) at librbd/internal.cc:3669 #4 0x00007ffff74e5032 in librbd::aio_read (ictx=0x663150, off=37748736, len=4194304, buf=0x0, bl=0x6cb5b8, c=0x6c9b00) at librbd/internal.cc:3590 #5 0x00007ffff74c2772 in librbd::Image::aio_read (this=<value optimized out>, off=37748736, len=4194304, bl=..., c=0x6c9ae0) at librbd/librbd.cc:698 #6 0x0000000000417f86 in AioExportContext (argc=<value optimized out>, argv=<value optimized out>) at rbd.cc:1033 #7 do_export (argc=<value optimized out>, argv=<value optimized out>) at rbd.cc:1123 #8 main (argc=<value optimized out>, argv=<value optimized out>) at rbd.cc:2771
Actions