[Patches] [ python-Patches-686627 ] fix race condition in unicode
SourceForge.net
noreply@sourceforge.net
Fri, 14 Feb 2003 08:40:18 -0800
Patches item #686627, was opened at 2003-02-14 11:40
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=686627&group_id=5470
Category: Core (C code)
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Geoff Talvola (gtalvola)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix race condition in unicode
Initial Comment:
There's a race condition in the importing of the
encodings in codecs.c that can cause an exception in
threaded programs. This happens to me occasionally
when I start up a threaded server and two threads
happen to both do the first unicode operation at the
same time,
Attached is a tarball containing a test program and a
patch to codecs.c that fixes the problem. See the
comments in the test program for more details. The
patch was based on the 2.2.2 source.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=686627&group_id=5470