Bug 661217 - make sure the pid of the yum process holding the lock is an int - fixed in commit 34ce1773
Summary: make sure the pid of the yum process holding the lock is an int - fixed in co...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 14
Hardware: i686
OS: Unspecified
low
urgent
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e8accb96
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-08 07:58 UTC by Cătălin George Feștilă
Modified: 2018-04-11 10:43 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-02-10 15:02:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (715 bytes, text/plain)
2010-12-08 07:58 UTC, Cătălin George Feștilă
no flags Details

Description Cătălin George Feștilă 2010-12-08 07:58:07 UTC
abrt version: 1.1.14
architecture: i686
cmdline: /usr/bin/python /usr/bin/yum search aaa
comment: yum has this problem with fakeroot.
component: yum
executable: /usr/bin/yum
kernel: 2.6.35.6-48.fc14.i686.PAE
package: yum-3.2.28-5.fc14
reason: utils.py:62:get_process_info:TypeError: %d format: a number is required, not str
release: Fedora release 14 (Laughlin)
time: 1291795042
uid: 500

backtrace
-----
utils.py:62:get_process_info:TypeError: %d format: a number is required, not str

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 104, in main
    show_lock_owner(e.pid, logger)
  File "/usr/share/yum-cli/utils.py", line 107, in show_lock_owner
    ps = get_process_info(pid)
  File "/usr/share/yum-cli/utils.py", line 62, in get_process_info
    if (not os.path.exists("/proc/%d/status" % pid) or
TypeError: %d format: a number is required, not str

Local variables in innermost frame:
pid: '2394'

How to reproduce
-----
1. Use this commands $fakeroot
2. You'll see #
3.Try command su ( #su ) :
su 
ERROR: ld.so: object 'libfakeroot-tcp.so' from LD_PRELOAD cannot be preloaded: ignored.
Password: 
4. Press Ctr +C  and use this : # yum search aaa
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Cannot open logfile /var/log/yum.log
Could not create lock at /var/run/yum.pid: [Errno 13] Permission denied: '/var/run/yum.pid' 
Another app is currently holding the yum lock; waiting for it to exit...
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 104, in main
    show_lock_owner(e.pid, logger)
  File "/usr/share/yum-cli/utils.py", line 107, in show_lock_owner
    ps = get_process_info(pid)
  File "/usr/share/yum-cli/utils.py", line 62, in get_process_info
    if (not os.path.exists("/proc/%d/status" % pid) or
TypeError: %d format: a number is required, not str

Comment 1 Cătălin George Feștilă 2010-12-08 07:58:10 UTC
Created attachment 467409 [details]
File: backtrace

Comment 2 Mads Kiilerich 2011-01-31 16:09:22 UTC
Package: yum-3.2.28-5.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. I pretended to remove yum to see what dependencies it had
2.
3.

Comment 3 Matěj Cepl 2011-02-07 09:55:28 UTC
I can reproduce this with plain yum upgrade (and no I haven't removed yum or doing anything silly; this is my wife's laptop).

Comment 4 Matěj Cepl 2011-02-07 10:02:15 UTC
(In reply to comment #3)
> I can reproduce this with plain yum upgrade (and no I haven't removed yum or
> doing anything silly; this is my wife's laptop).

Sorry, but this is on F13 with

yum-3.2.28-5.fc13.noarch

Comment 5 seth vidal 2011-02-07 16:26:13 UTC
this is fixed upstream and is in yum 3.2.29 in rawhide. This will come back to f13/f14 soonish.


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