pybootchartgui crashed with ValueError in _parse_proc_ps_log()

Bug #356537 reported by Sebastian Kempinski
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pybootchartgui (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: pybootchartgui

The crash occurs after upgrade from 8.10 to 9.04 beta. I had bootchart installed on 8.10 so pybootchartgui try starts automatically after successful upgrade. Unfortunately first start fails with crash, as any other, including manual start from console.
Version of pybootchartgui: 0+r102-2
Version of bootchart: 0.90.1-2

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/pybootchartgui
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: pybootchartgui 0+r102-2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/pybootchartgui /var/log/bootchart/
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=pl_PL.UTF-8
PythonArgs: ['/usr/bin/pybootchartgui', '/var/log/bootchart/']
SourcePackage: pybootchartgui
Title: pybootchartgui crashed with ValueError in _parse_proc_ps_log()
Uname: Linux 2.6.28-11-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev sambashare vboxusers video

Revision history for this message
Sebastian Kempinski (sebic-k) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Revision history for this message
Anders Norgaard (anders-norgaard) wrote :

Hi,

Can you upload your /var/log/bootchart.tgz file? Then I will try to reproduce the bug.

Thanks
Anders

Revision history for this message
Sebastian Kempinski (sebic-k) wrote :

This is a .tgz file from today. I looked at the /var/log/bootchart directory now and saw that once on 13 times pybootchartgui produce a .png out from .tgz yesterday.

Revision history for this message
Sebastian Kempinski (sebic-k) wrote :

And this is a .tgz which a successful produced .png was from

Revision history for this message
Anders Norgaard (anders-norgaard) wrote :

Thanks.

It seems that process commands can have a space in them and that you have such processes sometimes. See (cx88 tvaudio) in

1573 (cx88 tvaudio) S 2 0 0 0 -1 2149589056 0 0 0 0 0 0 0 0 15 -5 1 0 1738 0 0 4294967295 0 0 0 0 0 0 0 2147483647 0 3222553813 0 0 17 0 0 0 0 0 0

This confuses the parser. I'll try to fix it.

Best,
Anders

Revision history for this message
Hernando Torque (htorque) wrote :

If you always expect tokens to be of length 44, the attached patch should fix it.

Revision history for this message
Anders Norgaard (anders-norgaard) wrote :

Yes.

In all recent bootchart dumps I have there 44 tokens (or 45 like above). In the example files from 2005 in the original java bootchart project the lines have 41 tokens.

Hmm, I should probably just count on the 44 token format and do something like your patch.

Thanks,
Anders

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Confirming the issue for revision 113

Changed in pybootchartgui (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

By the way: The patch seems to work fine.

Revision history for this message
Anders Norgaard (anders-norgaard) wrote :
Revision history for this message
Anders Norgaard (anders-norgaard) wrote :
Changed in pybootchartgui (Ubuntu):
assignee: nobody → mrkanister
Revision history for this message
wingnux (wingnux) wrote :

"Woops, r116 is broken, r117 fixes this

http://code.google.com/p/pybootchartgui/source/detail?r=117"

So, how can a end-user apply this patch in order to fix this bug? Is there any updated deb?

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

wingnux, I am working on getting a new revision of pybootchaartgui into Jaunty before release, so you should be able to get a new deb in two weeks when Jaunty will be released.

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

wingnux, I have uploaded revision 120 to my PPA: https://launchpad.net/~mrkanister/+archive/ppa

You can download it from there if you like to test it.

Changed in pybootchartgui (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
wingnux (wingnux) wrote :

Thank you VERY MUCH! I've installed the updated deb and now I get a valid png file on /var/log/bootchart! =)

Revision history for this message
Sebastian Kempinski (sebic-k) wrote :

Yes, I can confirm. Revision r124 from your Launchpad repo works just fine. Good job! Keep that way :-)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pybootchartgui - 0+r124

---------------
pybootchartgui (0+r124) jaunty; urgency=low

  * New upstream revision:
    - Fix some drawing issues (lp: #342593)
    - Fix drawing bug (lp: #343215)
    - Empty bootcharts are now discovered (lp: #355952)
    - Fix incorrect seconds value for 60+ second boots (lp: #355954)
    - Fix parsing issue for process lines with spaces (lp: #356537)
    - Update slider position when zooming (lp: #358364)
    - Fix some drawing issue (lp: #360943, thanks to Hernando Torque)
  (thanks to biehl and Henning Niss for their active development)
  * debian/control:
    - Add depencies to 'python-gtk2' and 'python-cairo' (lp: #353699)

 -- Martin Mai <email address hidden> Sat, 18 Apr 2009 22:48:24 +0200

Changed in pybootchartgui (Ubuntu):
status: Fix Committed → Fix Released
Changed in pybootchartgui (Ubuntu):
assignee: mrkanister → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.