Message98007
| Author |
Trundle |
| Recipients |
Trundle |
| Date |
2010年01月18日.12:07:04 |
| SpamBayes Score |
1.147487e-09 |
| Marked as misclassified |
No |
| Message-id |
<1263816426.99.0.320342241745.issue7732@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Create a directory "__init__.py" and execute
>>> import imp
>>> imp.find_module('__init__', ['.'])
to reproduce that issue. It will crash because Python tries to double-close a file pointer: `call_find_module` will call `PyFile_FromFile`, but `PyFile_FromFile` closes the file pointer if it's a directory (by decrefing the created file object) and ` call_find_module` then closes the already closed file. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年01月18日 12:07:07 | Trundle | set | recipients:
+ Trundle |
| 2010年01月18日 12:07:06 | Trundle | set | messageid: <1263816426.99.0.320342241745.issue7732@psf.upfronthosting.co.za> |
| 2010年01月18日 12:07:04 | Trundle | link | issue7732 messages |
| 2010年01月18日 12:07:04 | Trundle | create |
|