Bug 1067624

Summary: [abrt] bcache-tools-0-0.15.20131018git.fc20: bcache-status:75:interpret_sectors:IndexError: string index out of range
Product: [Fedora] Fedora Reporter: Pavel Mlčoch <pavkamlc>
Component: bcache-toolsAssignee: Rolf Fokkens <rolf>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: ignatenko, jreznik, rolf
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/60c1c6bc65f5e656ec70b36c44b862523b00e89d
Whiteboard: abrt_hash:5e165a7fb0181479071855b0d5dd38dd32143af3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-20 22:23:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Pavel Mlčoch 2014-02-20 18:41:24 UTC
Version-Release number of selected component:
bcache-tools-0-0.15.20131018git.fc20

Additional info:
reporter:       libreport-2.1.9
cmdline:        python /usr/sbin/bcache-status
executable:     /usr/sbin/bcache-status
kernel:         3.13.3-201.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
bcache-status:75:interpret_sectors:IndexError: string index out of range

Traceback (most recent call last):
  File "/usr/sbin/bcache-status", line 350, in <module>
    main()
  File "/usr/sbin/bcache-status", line 343, in main
    dump_bcache('%s%s' % (SYSFS_BCACHE_PATH, cache), stats, print_subdevices, uuid_map.get(cache, '?'))
  File "/usr/sbin/bcache-status", line 250, in dump_bcache
    val = conversion_func(val)
  File "/usr/sbin/bcache-status", line 217, in <lambda>
    ('dirty_data',				'Dirty Data',		lambda x: fmt_cachesize(interpret_sectors(x))),
  File "/usr/sbin/bcache-status", line 75, in interpret_sectors
    if x[-1] in factors:
IndexError: string index out of range

Local variables in innermost frame:
x: ''
factors: {'P': 1125899906842624, 'E': 1152921504606846976, 'T': 1099511627776, 'G': 1073741824, 'Y': 1208925819614629174706176L, 'k': 1024, 'Z': 1180591620717411303424L, 'M': 1048576}
factor: 1

Comment 1 Pavel Mlčoch 2014-02-20 18:41:34 UTC
Created attachment 865660 [details]
File: backtrace

Comment 2 Pavel Mlčoch 2014-02-20 18:41:39 UTC
Created attachment 865661 [details]
File: environ

Comment 3 Rolf Fokkens 2014-02-20 22:23:59 UTC

*** This bug has been marked as a duplicate of bug 1066555 ***