<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_fork1.py, branch 2.6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_fork1.py?h=2.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_fork1.py?h=2.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2009-09-16T20:06:36Z</updated>
<entry>
<title>Merged revisions 74841 via svnmerge from</title>
<updated>2009-09-16T20:06:36Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2009-09-16T20:06:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=448db2155fc81d2aa84f37dc58683251cba8772e'/>
<id>urn:sha1:448db2155fc81d2aa84f37dc58683251cba8772e</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74841 | thomas.wouters | 2009-09-16 12:55:54 -0700 (Wed, 16 Sep 2009) | 23 lines


  Fix issue #1590864, multiple threads and fork() can cause deadlocks, by
  acquiring the import lock around fork() calls. This prevents other threads
  from having that lock while the fork happens, and is the recommended way of
  dealing with such issues. There are two other locks we care about, the GIL
  and the Thread Local Storage lock. The GIL is obviously held when calling
  Python functions like os.fork(), and the TLS lock is explicitly reallocated
  instead, while also deleting now-orphaned TLS data.

  This only fixes calls to os.fork(), not extension modules or embedding
  programs calling C's fork() directly. Solving that requires a new set of API
  functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
  warning explaining the problem to the documentation in the mean time.

  This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
  getting the import lock reallocated, seemingly to avoid this very same
  problem. This is not the right approach, because the import lock is a
  re-entrant one, and reallocating would do the wrong thing when forking while
  holding the import lock.

  Will backport to 2.6, minus the tiny AIX behaviour change.
........
</content>
</entry>
<entry>
<title>Restore rev 47014:</title>
<updated>2006-07-07T06:03:15Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-07-07T06:03:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=84bc19a453905e611dfc5d112a84604929b50cb5'/>
<id>urn:sha1:84bc19a453905e611dfc5d112a84604929b50cb5</id>
<content type='text'>
The hppa ubuntu box sometimes hangs forever in these tests.  My guess
is that the wait is failing for some reason.  Use WNOHANG, so we won't
wait until the buildbot kills the test suite.

I haven't been able to reproduce the failure, so I'm not sure if
this will help or not.  Hopefully, this change will cause the test
to fail, rather than hang.  That will be better since we will get
the rest of the test results.  It may also help us debug the real problem.

*** The reason this originally failed was because there were many
zombie children outstanding before rev 47158 cleaned them up.
There are still hangs in test_subprocess that need to be addressed,
but that will take more work.  This should close some holes.
</content>
</entry>
<entry>
<title>Add new utility function, reap_children(), to test_support.  This should</title>
<updated>2006-06-29T04:10:08Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-06-29T04:10:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b15ac3169d5958e294e09f8daeab0f413e76d0a3'/>
<id>urn:sha1:b15ac3169d5958e294e09f8daeab0f413e76d0a3</id>
<content type='text'>
be called at the end of each test that spawns children (perhaps it
should be called from regrtest instead?).  This will hopefully prevent
some of the unexplained failures in the buildbots (hppa and alpha)
during tests that spawn children.  The problems were not reproducible.
There were many zombies that remained at the end of several tests.
In the worst case, this shouldn't cause any more problems,
though it may not help either.  Time will tell.
</content>
</entry>
<entry>
<title>Revert 47014 until it is more robust</title>
<updated>2006-06-18T20:10:24Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-06-18T20:10:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0f51cf6e0473919d83da7ce3a7d23cd7d1ea0594'/>
<id>urn:sha1:0f51cf6e0473919d83da7ce3a7d23cd7d1ea0594</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The hppa ubuntu box sometimes hangs forever in these tests.  My guess</title>
<updated>2006-06-18T19:37:40Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-06-18T19:37:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=10b835c40155bf3ff79839377a869742970e064f'/>
<id>urn:sha1:10b835c40155bf3ff79839377a869742970e064f</id>
<content type='text'>
is that the wait is failing for some reason.  Use WNOHANG, so we won't
wait until the buildbot kills the test suite.

I haven't been able to reproduce the failure, so I'm not sure if
this will help or not.  Hopefully, this change will cause the test
to fail, rather than hang.  That will be better since we will get
the rest of the test results.  It may also help us debug the real problem.
</content>
</entry>
<entry>
<title>Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. Schroeder.</title>
<updated>2006-03-20T06:30:08Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-03-20T06:30:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=05a45599d7c7e7584a80d7ef70dc47e984664619'/>
<id>urn:sha1:05a45599d7c7e7584a80d7ef70dc47e984664619</id>
<content type='text'>
This was a fair amount of rework of the patch.  Refactored test_fork1 so it
could be reused by the new tests for wait3/4.  Also made them into new style
unittests (derive from unittest.TestCase).
</content>
</entry>
<entry>
<title>Oops, missed an import of test_support.</title>
<updated>2002-07-23T19:23:22Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-23T19:23:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b5da606dfd51c65b1bcbcb4b3165d36e313c16c8'/>
<id>urn:sha1:b5da606dfd51c65b1bcbcb4b3165d36e313c16c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Unixware 7 support by Billy G. Allie (SF patch 413011)</title>
<updated>2001-04-11T20:58:20Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-11T20:58:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2242f2fbd0d50546ad79e800efbc6f0a2334bd0b'/>
<id>urn:sha1:2242f2fbd0d50546ad79e800efbc6f0a2334bd0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Checking in patch #103478 -- makes popen2 and fork1 tested on BeOS.</title>
<updated>2001-01-30T18:35:32Z</updated>
<author>
<name>Moshe Zadka</name>
<email>moshez@math.huji.ac.il</email>
</author>
<published>2001-01-30T18:35:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09'/>
<id>urn:sha1:fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09</id>
<content type='text'>
Tested for not breaking builds on Linux.
</content>
</entry>
<entry>
<title>This patch removes all uses of "assert" in the regression test suite</title>
<updated>2001-01-17T19:11:13Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-01-17T19:11:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e'/>
<id>urn:sha1:3661908a6ac75026e4504d9f62a6ac2e2fb2ec5e</id>
<content type='text'>
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.

Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
</content>
</entry>
</feed>
