Bug 564 - hangs at start up reading historystats
Status:
RESOLVED FIXED
Component:
Core
Version:
1.8.2
Hardware:
PC Linux
Importance:
P2 normal
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Oct 9 2006 10:01:56 UTC
by:
Michael Piefel
Modified:
Nov 4 2006 18:58:36 UTC
IdWhoWhenSizeType
63Historystats that lead to stop
Michael PiefelOct 9 2006 10:03:18 UTC61831text/plain
WhoWhenWhatRemovedAdded
Rob CaelersNov 4 2006 18:58:36 UTCstatusNEWRESOLVED
resolutionFIXED
Description
Michael Piefel  Oct 9 2006 10:01:56 UTC
This is a copy of the Debian bug http://bugs.debian.org/390495:

Version: 1.8.3-1

Workrave hangs at start up loading 100% of CPU when reading the attached
historystats file. To reproduce simply copy historystats file to
~/.workrave directory and execute workrave normaly.

This is a strace snipped (it hangs at the last read):
...
open("/home/alex/.workrave/historystats", O_RDONLY|O_LARGEFILE) = 16
read(16, "WorkRaveStats 4\nD 28 7 105 16 9 "..., 8191) = 8191
read(16, " 105 23 39\nB 0 7 9 3 6 0 1 5 100"..., 8191) = 8191
read(16, "D 22 10 105 23 56 22 10 105 23 5"..., 8191) = 8191
read(16, "105 23 56 27 11 105 23 56\nB 0 7 "..., 8191) = 8191
read(16, "6 23 56\nB 0 7 0 0 0 0 0 0 0 \nB 1"..., 8191) = 8191
read(16, "B 1 7 0 0 1 0 0 0 0 \nB 2 7 0 0 0"..., 8191) = 8191
read(16, "\nB 0 7 0 0 5 0 0 0 0 \nB 1 7 0 0 "..., 8191) = 8191
read(16, "B 0 7 2 2 40 0 0 2 30 \nB 1 7 0 0"..., 8191) = 4494
Comment 1
Michael Piefel  Oct 9 2006 10:03:18 UTC
Created attachment 63
Historystats that lead to stop
Comment 2
Rob Caelers  Nov 4 2006 18:58:36 UTC
Somehow the history file got corrupt. rewrote history file loader.