[PATCH] bootchart.jar crashes on generated bootchart.tgz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bootchart (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: bootchart
Description: Ubuntu 8.04.1
Release: 8.04
bootchart:
Installed: 0.9-0ubuntu7
Candidate: 0.9-0ubuntu7
Version table:
*** 0.9-0ubuntu7 0
500 http://
100 /var/lib/
The bug:
-----------
In /etc/init.
/usr/bin/java -jar /usr/share/
sometimes crashes with the following message:
Parsing /var/log/
Exception in thread "main" java.lang.
at org.bootchart.
at org.bootchart.
at org.bootchart.
Analysis:
-----------
I have traced this back to bootchart.jar actually having problems parsing the log files in /var/log/
It seems that the shell function "stop_bootchart()" in /etc/init.
Proposed solution:
-------
I'd like to propose a patch for /usr/share/
sed -e "s/ [0-9].*//;s/\.//" < /proc/uptime
cat /proc/stat
into:
sed -e "s/ [0-9].*//;s/\.//" < /proc/uptime | cat - /proc/stat
With this change I haven't had any bootchart generation failures whatsoever.
Changed in bootchart: | |
status: | Confirmed → Fix Released |
Here is my proposed patch: