After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726879 - Engine should be killed when Chess crashes, but this seems to be distro-dependent
Engine should be killed when Chess crashes, but this seems to be distro-depen...
Status: RESOLVED OBSOLETE
Product: gnome-chess
Classification: Applications
Component: General
3.10.x
Other Linux
: Normal minor
: ---
Assigned To: gnome-chess-maint
gnome-chess-maint
Depends on:
Blocks:
 
 
Reported: 2014-03-22 14:21 UTC by Michael Catanzaro
Modified: 2018-05-22 12:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Catanzaro 2014-03-22 14:21:15 UTC
After forking to spawn a chess engine, we call prctl(PR_SET_PDEATHSIG, SIGTERM) to kill the chess engine. This works on Debian 7 but not on Fedora 20. It worked on Arch when I added the code two months ago.

Possibly gnuchess 7 is catching SIGTERM and choosing to ignore it for some reason, but I'd wager that PR_SET_PDEATHSIG is just broken in the Fedora kernel.
Comment 1 Michael Catanzaro 2014-03-22 14:22:29 UTC
(In reply to comment #0)
> Possibly gnuchess 7 is catching SIGTERM and choosing to ignore it for some
> reason, but I'd wager that PR_SET_PDEATHSIG is just broken in the Fedora
> kernel.

Possibly gnuchess *6.0.3* (there is no gnuchess 7).  And this seems really unlikely, since Debian has 6.0.2.
Comment 2 Michael Catanzaro 2014-03-24 03:47:11 UTC
PR_SET_PDEATHSIG works fine on Fedora 20 in a simple test program.

And even changing SIGTERM to the unblockable SIGKILL doesn't cause gnuchess to stop, so we know it's not ignoring the signal.
Comment 3 Mario Wenzel 2014-06-13 15:13:21 UTC
Can confirm that for fedora 20
Linux maweki-desktop 3.13.10-200.fc20.x86_64 #1 SMP Mon Apr 14 20:34:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ gnuchess --version
GNU Chess 6.0.3

Hit me when testing for https://bugzilla.gnome.org/show_bug.cgi?id=704990
Comment 4 GNOME Infrastructure Team 2018-05-22 12:23:38 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-chess/issues/17.