View Issue Details

IDProjectCategoryView StatusLast Update
0002674ArchBugpublic2016-08-16 14:18
Reporterwmayer Assigned Toyorik  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.17 
Summary0002674: Incorrect use of mkstemp in Python
DescriptionThe function mkstemp returns a file descriptor and a file name. One has to also explicitly close a file by its descriptor otherwise you may into into an error that too many file handles are open.

The issues are in ArchServer.py, importIFCLegacy.py and importSH3D.py. The function is also used in importIFC but there it's done correctly.

For more information:
https://www.logilab.org/blogentry/17873
TagsNo tags attached.
FreeCAD Information

Activities

yorik

2016-08-16 14:18

administrator   ~0007278

Aha good to know!

Related Changesets

FreeCAD: master 81c5994e

2016-08-16 16:17:45

yorik

Details Diff
Arch: Fixed use of tempfile.mkstemp - fixes 0002674 Affected Issues
0002674
mod - src/Mod/Arch/ArchServer.py Diff File
mod - src/Mod/Arch/importIFC.py Diff File
mod - src/Mod/Arch/importIFClegacy.py Diff File
mod - src/Mod/Arch/importSH3D.py Diff File

Issue History

Date Modified Username Field Change
2016-08-16 10:52 wmayer New Issue
2016-08-16 10:52 wmayer Status new => assigned
2016-08-16 10:52 wmayer Assigned To => yorik
2016-08-16 14:18 yorik Note Added: 0007278
2016-08-16 14:18 yorik Changeset attached => FreeCAD Master master 81c5994e
2016-08-16 14:18 yorik Status assigned => closed
2016-08-16 14:18 yorik Resolution open => fixed