Bug 675602 - Crash when running `yum grouplist` from user
Summary: Crash when running `yum grouplist` from user
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-06 21:59 UTC by Alexey Torkhov
Modified: 2014-01-21 23:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 15:48:49 UTC
Type: ---


Attachments (Terms of Use)

Description Alexey Torkhov 2011-02-06 21:59:10 UTC
Description of problem:
When running `yum grouplist` from user it crashes.

Protocol from abrt (it seem to incorrectly say it is duplicate of bug #542183):
yummain.py:50:exIOError:UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 258, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 122, in main
    return exIOError(e)
  File "/usr/share/yum-cli/yummain.py", line 50, in exIOError
    logger.critical(_('\n\n%s') % str(e))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 11: ordinal not in range(128)

Local variables in innermost frame:
logger: <logging.Logger object at 0x1f99f10>
e: IOError(13, '\xd0\x9e\xd1\x82\xd0\xba\xd0\xb0\xd0\xb7\xd0\xb0\xd0\xbd\xd0\xbe \xd0\xb2 \xd0\xb4\xd0\xbe\xd1\x81\xd1\x82\xd1\x83\xd0\xbf\xd0\xb5')
unlock: <function unlock at 0x206a5f0>

Version-Release number of selected component (if applicable):
yum-3.2.28-5.fc14.noarch

How reproducible:
Always

Steps to Reproduce:
1. Run `yum grouplist` as user
  
Actual results:
Crash.

Expected results:
List of groups printed.

Additional info:
`locale` output:
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=

Comment 1 Alexey Torkhov 2011-02-06 22:31:03 UTC
When running `strace yum grouplist --disablerepo=* --enablerepo=fedora -C` it has an error on following syscall:
open("/var/cache/yum/x86_64/14/fedora/6a4cfae71b548ad9f42cf89bb93380f643ce5d66431bc12547e55684a8bb5b1c-comps-f14.xml", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 EACCES (Permission denied)

File /var/cache/yum/x86_64/14/fedora/6a4cfae71b548ad9f42cf89bb93380f643ce5d66431bc12547e55684a8bb5b1c-comps-f14.xml exists and owned by root with mode 644.
User cache in /var/tmp does not exists.

So, I guess, that may be the cause that it tries to truncate file in system cache.

Comment 2 Alexey Torkhov 2011-02-06 22:49:45 UTC
And when running it with LC_ALL=C it outputs:

[Errno 13] Permission denied: '/var/cache/yum/x86_64/14/fedora/6a4cfae71b548ad9f42cf89bb93380f643ce5d66431bc12547e55684a8bb5b1c-comps-f14.xml'

So this is actually two issues: one is crash when showing localized error message and second is why it tries to truncate file there.

Comment 3 James Antill 2011-02-08 16:47:42 UTC
Pretty sure both issues are fixed in rawhide (you can try my yum rawhide rebuild repo. for F14 at repos.fedorapeople.org).

Comment 4 Alexey Torkhov 2011-02-17 18:37:38 UTC
Yes, when using yum-3.2.29-4.fc15.noarch it does not have an error with `yum grouplist`. Not sure how to check that it does not crash on showing localized message then.

Anyway, would be good to see fix backported to F14.

Comment 5 Fedora End Of Life 2012-08-16 15:48:51 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.