Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262966 - [patch] app-portage/elogv-0.7.3 crashes when selected logfile has been deleted
Summary: [patch] app-portage/elogv-0.7.3 crashes when selected logfile has been deleted
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-18 22:20 UTC by Davide Pesavento (RETIRED)
Modified: 2009-07-13 22:48 UTC (History)
2 users (show)

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


Attachments
elogv-missinglog.patch (elogv-missinglog.patch,609 bytes, patch)
2009-04-21 01:54 UTC, michael@smith-li.com
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pesavento (RETIRED) gentoo-dev 2009-03-18 22:20:25 UTC
Traceback (most recent call last):
  File "/usr/bin/elogv", line 545, in <module>
    curses.wrapper(ElogViewer)
  File "/usr/lib64/python2.5/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/elogv", line 126, in __init__
    self.change_usel(-1)
  File "/usr/bin/elogv", line 296, in change_usel
    self.logf = open(os.path.join(elogdir,pkg[PATH]))
IOError: [Errno 2] No such file or directory: '/var/log/portage/elog/dev-lang:python-2.5.4-r2:20090318-215648.log'

How to reproduce:
1. Launch elogv in a terminal
2. In another terminal, run `rm $logfile`, where $logfile is any portage log file in /var/log/portage/elog/
3. Back in the first terminal, select $logfile from elogv's list
=> unhandled IOError exception!
Comment 1 michael@smith-li.com 2009-04-21 01:54:57 UTC
Created attachment 189017 [details, diff]
elogv-missinglog.patch

Reinitializes the list of logfiles when a file goes missing.
Comment 2 Luca Marturana 2009-05-11 11:49:46 UTC
Hi,

Thanks for the bug, I've already known the problem but I think that it's really "I want to crash this app" behavior! :) So I have omitted to handle this condition for simplicity. Anyway, I will add your patch to svn and probably release a new version with same fixies. Thanks!
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2009-07-09 10:21:24 UTC
(In reply to comment #2)
> Hi,
> 
> Thanks for the bug, I've already known the problem but I think that it's really
> "I want to crash this app" behavior! :) So I have omitted to handle this
> condition for simplicity. Anyway, I will add your patch to svn and probably
> release a new version with same fixies. Thanks!

 Luca, is the new release coming?
Comment 4 Luca Marturana 2009-07-13 11:12:09 UTC
(In reply to comment #3)
>  Luca, is the new release coming?

Hi Christian, excuse me for the delay but I have been really busy in this period, anyway I just released the new version which corrects all bugs found here on bugzilla. It can be found on this link:

https://sourceforge.net/projects/gechi-overlay/files/elogv/elogv-0.7.4.tar.bz2/download

Thank you for the patience
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2009-07-13 22:48:30 UTC
Bumped, thanks Luca.