Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: If pychess is killed with the "kill" command, it leaves two orphan processes that together consume nearly 100% of the CPU. Version-Release number of selected component (if applicable): pychess-0.10-0.1.20100203svn.fc12.noarch How reproducible: Always. Steps to Reproduce: 1. Remove .pychessconf and .pychess/ 2. Start pychess from a terminal. 3. Start game, but don't make any moves. 4. From another terminal run "ps -ef | grep pychess" and note the PID of /usr/bin/pychess. 5. Run "kill <PID>". 6. Run "ps -ef | grep pychess" and note that two pychess processes are still running. 7. Run "top -c" to see that they are consuming nearly 100% of the CPU. Actual results: Two orphan processes are consuming nearly 100% of the CPU. The other two processes are killed, as expected. Expected results: All child processes are killed. Additional info: Typing ctrl-C in the terminal running pychess results in all child processes being killed.
Signal 6 may also leave the analyzer processes orphaned and consuming 100% of the CPU. Bug 563714 - [abrt] crash in pychess-0.10-0.1.20100203svn.fc12 ... Core was generated by `/usr/bin/python /usr/bin/pychess'. Program terminated with signal 6, Aborted. ...
You just kill the pychess process, but I'm unsure if this will ever happen. When you start pychess from a terminal and abort it with ctrl-c, all childs are killed, and what do you want/expect more?
*** Bug 563720 has been marked as a duplicate of this bug. ***
Created attachment 394226 [details] terminal session showing that pychess orphans two processes on SIGTERM Procedure: Start pychess from Applications:Games:PyChess. Start game. The attachment shows the pychess processes before and after sending it SIGTERM. The orphaned processes are consuming nearly 100% of the CPU.
(In reply to comment #2) > You just kill the pychess process, but I'm unsure if this will ever happen. > > When you start pychess from a terminal and abort it with ctrl-c, all childs are > killed, and what do you want/expect more? If pychess is started from the GUI, and it is hung, it should be possible to kill it cleanly with SIGTERM. Ctrl-C from a terminal sends SIGINT. Also, pychess cleans up one of its child processes on SIGTERM, but not the other two. That seems inconsistent. I'm no expert on signals, so here is what GNU says: :-) "The SIGTERM signal is a generic signal used to cause program termination. Unlike SIGKILL, this signal can be blocked, handled, and ignored. It is the normal way to politely ask a program to terminate. The shell command kill generates SIGTERM by default." 24.2.2 Termination Signals http://www.gnu.org/s/libc/manual/html_node/Termination-Signals.html#Termination-Signals The "top" command also sends SIGTERM (15) by default. See also "man 7 signal".
Comment ----- I was switching between two games.
How to reproduce ----- 1. Start pyChess 2. Human vs PyChess Engine 3. After first move by pychess engine CPU load goes to 100%
(In reply to comment #7) > > How to reproduce > ----- > 1. Start pyChess > 2. Human vs PyChess Engine > 3. After first move by pychess engine CPU load goes to 100% That problem was reported in: Bug 562793 - pychess consumes 100% of the CPU when analyzers are enabled Unfortunately, upstream couldn't be convinced that it is a problem: http://code.google.com/p/pychess/issues/detail?id=526 A work-around is to disable the analyzers in "Settings:Preferences:Computer Opponents" and restart pychess.
Package: pychess-0.10-0.5.20100511hg.fc13 Architecture: x86_64 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. I have no idea.
Package: pychess-0.10-0.5.20100511hg.fc13 Architecture: i686 OS Release: Fedora release 13 (Goddard) Comment ----- I rotetted the chess board.
Package: pychess-0.10-0.7.20100815hg.fc13 Architecture: x86_64 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. Play a couple of games 2. Finally, get to a point in one of them where you're winning 3. Make a move, bang! (crash)
Package: pychess-0.10-0.7.20100815hg.fc13 Architecture: i686 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. I was just playing the game 2. 3.
Package: pychess-0.10-0.7.20100815hg.fc13 Architecture: x86_64 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. it crashes randomly.. 2. and i dont know what causes it 3.
Package: pychess-0.10-0.7.20100815hg.fc13 Architecture: i686 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1. Offer to resign when near checkmate initiated by GNU chess (black), user (white-loser) 2. New Game option offered, board flips so that GNU chess (white), user (black) 3. GNU engine takes first move 4. Application freezes, user (black) cannot move. Comment ----- In order to play a new game, application had to be force quit and completely restarted.
This message is a reminder that Fedora 12 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 12. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '12'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 12's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 12 is 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 please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. 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
Package: pychess-0.10-0.7.20100815hg.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) Comment ----- when I opened pyches program.
Package: pychess-0.10-0.7.20100815hg.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- Set AI to gnuchess instead of pychess.
Bumping release to 14 per comment 16, comment 17. If pychess is not going to be maintained, maybe it should be removed from Fedora. Assigned To: Nobody's working on this, feel free to take it https://bugzilla.redhat.com/show_activity.cgi?id=563668
I second it's removal. It has a number of bugs that make it unstable, even by beta standards. Bugzilla currently has 37 on pychess, mostly related to crashes, out-of-bounds indexes (which cause a crash), and runaway cpu (which cause it to be non-responsive as if it crashed). The link provided in comment # 8 makes it clear that the upstream maintainers are either too overwhelmed or too inexperienced to deal with this massive undertaking. IMHO, tracking bugs (and by extension maintaining packages) for pychess is more trouble than it's worth, especially with stable alternatives like glchess. Just my two cents.
Yes, that's why I orphaned pychess. It's better to use pychess from the upstream repository and report bugs directly there to improve pychess. When that's done, it makes sense to get it back into fedora... Anyone: Feel free to take it and try to improve it, without removing from fedora. ;)
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Filed upstream: http://code.google.com/p/pychess/issues/detail?id=615
Package: pychess-0.10-0.7.20100815hg.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. I opened pyChess, then it was opened 2. I have pushed "X" for close 3.I have a massage because crush pyChess
Package: pychess-0.10-0.7.20100815hg.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- Запустил игру: Человек играет белыми. Поулчил сообщение о сбое
(In reply to comment #24) > Package: pychess-0.10-0.7.20100815hg.fc14 > Architecture: x86_64 > OS Release: Fedora release 14 (Laughlin) > > > How to reproduce > ----- > Запустил игру: Человек играет белыми. Поулчил сообщение о сбое Start the game: Man plays white. Detected an error message http://translate.google.com/ A newer version is in updates-testing: $ sudo yum update pychess --enablerepo=updates-testing
Package: pychess-0.10-0.8.rc1.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. win a game 2. click play rematch 3. freeeeeeeeeeeze
(In reply to comment #26) > Package: pychess-0.10-0.8.rc1.fc14 > Architecture: x86_64 > OS Release: Fedora release 14 (Laughlin) > > > How to reproduce > ----- > 1. win a game > 2. click play rematch > 3. freeeeeeeeeeeze Thanks for reporting this. How did you recover? I could not reproduce this hang in F13 by clicking Play Rematch, but pychess hung once while stepping backward and forward through a game that I had finished. pychess was running from the command line, so I killed it with ctrl-\. Unfortunately, that did not generate a core file, and I have not reproduced it. pychess-0.10-0.8.rc1.fc13.noarch
Package: pychess-0.10-0.3.20100214svn.fc12 Architecture: i686 OS Release: Fedora release 12 (Constantine) How to reproduce ----- 1.Game restart 2. 3.
(In reply to comment #29) > Package: pychess-0.10-0.3.20100214svn.fc12 > Architecture: i686 > OS Release: Fedora release 12 (Constantine) KT: Thanks for your reports. Fedora 12 is not supported anymore. http://fedoraproject.org/wiki/Releases/12/Schedule There is a newer version of pychess for Fedora 13 and Fedora 14. http://fedoraproject.org/get-fedora
Package: pychess-0.10-0.8.rc1.fc13 Architecture: i686 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1.Clicked UNDO 2. 3.
Package: pychess-0.10-0.8.rc1.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. в теминале yum install openoffice-write openoffice-calc 2. запуск pychess, закрытие игры 3. зависла, получил сообщение об ошибке
Package: pychess-0.10-0.8.rc1.fc13 Architecture: i686 OS Release: Fedora release 13 (Goddard) How to reproduce ----- 1.? 2. 3.
Package: pychess-0.10-0.8.rc1.fc13 Architecture: i686 OS Release: Fedora release 13 (Goddard) How to reproduce ----- The crash seems random: it usually happens at the end of a game or when I click on rematch, but not always.
Package: pychess-0.10-0.8.rc1.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- See https://bugzilla.redhat.com/show_bug.cgi?id=669981#c0
Package: pychess-0.10-0.8.rc1.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. Play against PyChess and win 2. Start new game against gnuchess 3. The window freezes Comment ----- Sometimes you can play a game against gnuchess. Attempt to start a new game produces the crash.
Package: pychess-0.10-0.8.rc1.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. Play against PyChess and win 2. Start new game against PyChess 3. PyChess crashes Comment ----- The crash is sporadic.
Package: pychess-0.10-0.8.rc1.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. Play against PyChess and win 2. Start new game against PyChess (using "Play Rematch) 3. PyChess crashes. Comment ----- The crash is sporadic.
Package: pychess-0.10-0.8.rc1.fc14 Architecture: x86_64 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1.Playing and opponent ask for 2 undo moves 2.then crash 3.
Package: pychess-0.10-0.8.rc1.fc14 Architecture: i686 OS Release: Fedora release 14 (Laughlin) How to reproduce ----- 1. je ne me souviens plus très bien 2. 3.
I have a new test update with a number of post 0.10 upstream fixes. Please try it out and let me know if it fixes this issue and/or causes other issues. Thanks. https://admin.fedoraproject.org/updates/pychess-0.10.rev2004-1.fc14?_csrf_token=0458b62279c19fbd2e7bd1d82762e6eff5891188
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