Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187595 - app-portage/elogviewer and app-portage/elogv crash if save_summary is set in PORTAGE_ELOG_SYSTEM
Summary: app-portage/elogviewer and app-portage/elogv crash if save_summary is set in ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Faulhammer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-03 14:25 UTC by David Radice
Modified: 2007-09-16 19:20 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A possible patch (patch.elogviewer,238 bytes, patch)
2007-08-03 14:28 UTC, David Radice
Details | Diff
A possible patch for elogv (patch.txt,154 bytes, patch)
2007-09-11 23:17 UTC, David Radice
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Radice 2007-08-03 14:25:54 UTC
The "elogviewer" python script will parse every filename in the ELOG directory, as it expects a filename format like *:*:*.log if a file like "summary.log" is found the script will crash.

Reproducible: Always

Steps to Reproduce:
1. Put any file with non-standard filename format in the ELOG dir
2. Run elogviewer

Actual Results:  
elogviewer crashes

Expected Results:  
Elogviewer should at least not crash as "save_summary" is an official elog feature. (As an addictional feature elogviewer could also parse the summary.log file.)
Comment 1 David Radice 2007-08-03 14:28:10 UTC
Created attachment 126808 [details, diff]
A possible patch

This is a possible patch. My Python skill are terrible, but this seems to work. It parses the os.listdir and every file with non-standard *:*:* filename are excluded.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2007-08-06 07:11:01 UTC
Adding the author of the software...
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-08-23 06:05:10 UTC
It seems as author has opened a new account on Bugzilla, adding him.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-11 18:34:26 UTC
Thanks a lot for your patch...I did not apply it earlier as I wanted to give upstream time to fix it and release a new version.
Meanwhile I discovered elogv has the same problem, at least 0.5.1 currently in the tree, 0.6.0 available so I will test there.  kelogviewer is being emerged right now.  Again thanks.
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-11 18:47:05 UTC
Luca, adding you as author of elogv.  See comment #4, and don't hesitate to inform me about new versions, I check very seldom.
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-11 22:30:11 UTC
kelogviewer is not affected, reopening for elogv
Comment 7 David Radice 2007-09-11 23:17:43 UTC
Created attachment 130660 [details, diff]
A possible patch for elogv

I had some spare time and I wanted to do something usefull so I "ported" my "patch" to elogv (just a couple of lines). It seems to work but I didn't test it a lot because I don't use elogv. Hope this helps you.

Thanks for your hard work: I do really enjoy my gentoo system.
Comment 8 Mathias Laurin 2007-09-12 08:10:04 UTC
(In reply to comment #4)
> Thanks a lot for your patch...I did not apply it earlier as I wanted to give
> upstream time to fix it and release a new version.

Oh yes, sorry... I have been working on it a bit on my spare, which I don't have much... I am removing the regexp from elogviewer (I don't know that too well) and will use glob.glob to fix it. At some point, I'll try to parse summary.log as well... Thanks for caring.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-16 10:41:31 UTC
Mathias, we all volunteer so no accusation intended.  It is fixed and that's fine to me, just wanted to motivate some of you. :)
Radice, thank you for your support, as my Python skills are baaaad.  But please provide patches in unified format, makes it easier to apply if codebase has changed.
Closing and I will file a stabilisation request as the current stable Portage (for some days) will have save_summary on by default, rendering the elogviewer unusable.
Comment 10 David Radice 2007-09-16 13:26:28 UTC
Sorry for the patch format... thanks for the suggestion. :-)
Comment 11 Luca Marturana 2007-09-16 19:04:24 UTC
(In reply to comment #5)
> Luca, adding you as author of elogv.  See comment #4, and don't hesitate to
> inform me about new versions, I check very seldom.
> 

Hi at all,

I have released a new version 0.6.1 that solves the issue, please try it. ok, I will notify you for future versions. ;)
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-16 19:20:17 UTC
(In reply to comment #11)
> I have released a new version 0.6.1 that solves the issue, please try it. ok, I
> will notify you for future versions. ;)

 In the tree.