Bug 3772 - "FS_HandleForFile: none free" recurses infinitely
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2008-09-08 05:41 EDT by Ben Millwood
Modified: 2009-09-14 20:19:33 EDT
1 user (show)

See Also:



Description Ben Millwood 2008-09-08 05:41:55 EDT
When the filesystem runs out of file handles, it calls Com_Error with FS_HandleForFile: none free
This calls Sys_Error which calls Sys_ErrorDialog
...which calls FS_FOpenFileWrite to write a crashlog
...which calls Com_Error with FS_HandleForFile: none free
This continues until the binary segfaults.

My suggestion would be either using the stdio file calls to write crashlog.txt, or refusing to write it when in a recursive error. Both methods have their drawbacks of course but both are also better than the current behaviour, imo.
Comment 1 Ryan C. Gordon 2009-09-14 20:19:33 EDT
This is fixed in svn revision #1602.

--ryan.