Bug 114791

Summary: Infinite loop in cmail with empty .res file
Product: [Fedora] Fedora Reporter: Michael Soulier <msoulier>
Component: xboardAssignee: Karsten Hopp <karsten>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-16 15:11:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Soulier 2004-02-02 22:00:12 UTC
A friend of mine was just bitten by this. 

Trying to invoke cmail caused it to never return, and chewed cpu on
his box like crazy. Walking through the perl debugger, it seems that
he had a zero-size .res file in his $CHESSDIR. Thus, this line in cmail...

 1271     shift (@tgames) while (!$tgames[0]) ;

...is an infinite loop.

Workaround: Delete the .res file.

Cheers.

Comment 1 Karsten Hopp 2004-11-16 15:11:34 UTC
This report has been left open for way too long. I don't think I get
around to fix this, sorry