[Python-Dev] Segfault

Andrew Bennetts andrew-pythondev at puzzling.org
Tue Aug 21 02:57:19 CEST 2007


Maciej Fijalkowski wrote:
> IMHO this shouldn't segfault:
> 
> import thread
> 
> while 1:
>     f = open("/tmp/dupa", "w")
>     thread.start_new_thread(f.close, ())
>     f.close()
> 
> while it does on cpython 2.5.1 , linux box.
> 
> May I consider this a bug?

Yes, that's a bug.  Please file it at
http://sourceforge.net/bugs/?group_id=5470.

-Andrew.



More information about the Python-Dev mailing list