pombreda / pybootchartgui

Automatically exported from code.google.com/p/pybootchartgui
GNU General Public License v3.0
0 stars 0 forks source link

IndexError crash while parsing bootchart.tgz #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. parse the attached bootchart.tgz with bootchart

Call, output and backtrace:
[root@localhost ~]# bootchart
No path given, trying /var/log/bootchart.tgz
parsing '/var/log/bootchart.tgz'
parsing 'header'
parsing 'cmdline2.log'
parsing 'paternity.log'
parsing 'proc_cpuinfo.log'
parsing 'proc_diskstats.log'
parsing 'proc_meminfo.log'
parsing 'proc_stat.log'
Traceback (most recent call last):
  File "/usr/bin/bootchart", line 23, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/pybootchartgui/main.py", line 120, in main
    res = parsing.Trace(writer, args, options)
  File "/usr/lib/python2.7/site-packages/pybootchartgui/parsing.py", line 46, in __init__
    parse_paths (writer, self, paths)
  File "/usr/lib/python2.7/site-packages/pybootchartgui/parsing.py", line 670, in parse_paths
    state = _do_parse(writer, state, name, tf.extractfile(name))
  File "/usr/lib/python2.7/site-packages/pybootchartgui/parsing.py", line 624, in _do_parse
    state.cpu_stats = _parse_proc_stat_log(file)
  File "/usr/lib/python2.7/site-packages/pybootchartgui/parsing.py", line 390, in _parse_proc_stat_log
    user = float((times[0] + times[1]) - (ltimes[0] + ltimes[1]))
IndexError: list index out of range

$ rpm -q bootchart
bootchart-0.14.0-1.3.git20110630.fc16.x86_64

Original issue reported on code.google.com by pand...@inwind.it on 31 May 2012 at 8:19

Attachments:

GoogleCodeExporter commented 9 years ago
Hello, thanks for the report.

The immediate problem is that the file 'proc_stat.log' ends unexpectedly.

Do you know if this log is from a boot-up that crashed?

Best,
Anders

Original comment by anders.n...@gmail.com on 2 Jun 2012 at 9:26