A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-August/074286.html below:

[Python-Dev] Segfault

[Python-Dev] Segfault [Python-Dev] SegfaultHrvoje Nikšić hrvoje.niksic at avl.com
Fri Aug 24 09:55:22 CEST 2007
On Thu, 2007-08-23 at 11:57 -0700, Neal Norwitz wrote:
> > "allow threads" section that runs with the GIL released, file_close
> > might acquire the GIL and be running in parallel to this code.  If
> > file_close sets f_fp to NULL after the "if" condition evaluates, but
> > before the call to _portable_fseek completes, we still get a segfault.
> 
> However, the setting of f_fp to NULL happens with the GIL set, ie
> while only one thread is running.

I thought other "IO-bound" threads (the sections that "allow threads")
could also run in parallel.  Otherwise what is the point of
BEGIN_ALLOW_THREADS?


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4