Bug 114791 - Infinite loop in cmail with empty .res file
Summary: Infinite loop in cmail with empty .res file
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: xboard
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-02 22:00 UTC by Michael Soulier
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-11-16 15:11:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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