<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/pystate.c, branch v2.7.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/pystate.c?h=v2.7.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/pystate.c?h=v2.7.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2011-10-12T19:07:54Z</updated>
<entry>
<title>Issue #13156: revert changeset f6feed6ec3f9, which was only relevant for native</title>
<updated>2011-10-12T19:07:54Z</updated>
<author>
<name>Charles-François Natali</name>
<email>neologix@free.fr</email>
</author>
<published>2011-10-12T19:07:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1f3ff7bc3f7cfd4e823e49dc193ab7fecb767c43'/>
<id>urn:sha1:1f3ff7bc3f7cfd4e823e49dc193ab7fecb767c43</id>
<content type='text'>
TLS implementations, and fails with the ad-hoc TLS implementation when a thread
doesn't have an auto thread state (e.g. a thread created outside of Python
calling into a subinterpreter).
</content>
</entry>
<entry>
<title>Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*</title>
<updated>2011-04-27T17:20:48Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2011-04-27T17:20:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4394e0db24f38250d487adcbd8b85f314cb86829'/>
<id>urn:sha1:4394e0db24f38250d487adcbd8b85f314cb86829</id>
<content type='text'>
APIs, to avoid a crash with the pthread implementation in RHEL 5.  Patch
by Charles-François Natali.
</content>
</entry>
<entry>
<title>#11565: Fix several typos. Patch by Piotr Kasprzyk.</title>
<updated>2011-03-16T10:34:31Z</updated>
<author>
<name>Ezio Melotti</name>
<email>ezio.melotti@gmail.com</email>
</author>
<published>2011-03-16T10:34:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c2077b0d9b5bf99768c6f396bf7ae6c41b682465'/>
<id>urn:sha1:c2077b0d9b5bf99768c6f396bf7ae6c41b682465</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merged revisions 84623 via svnmerge from</title>
<updated>2010-09-08T12:40:49Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2010-09-08T12:40:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a7b65b7da3df16bc8c81b3654756d64eb28ff80'/>
<id>urn:sha1:0a7b65b7da3df16bc8c81b3654756d64eb28ff80</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84623 | antoine.pitrou | 2010-09-08 14:37:10 +0200 (mer., 08 sept. 2010) | 4 lines

  Issue #9797: pystate.c wrongly assumed that zero couldn't be a valid
  thread-local storage key.
........
</content>
</entry>
<entry>
<title>Untabify C files. Will watch buildbots.</title>
<updated>2010-05-09T14:46:46Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2010-05-09T14:46:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c83ea137d7e717f764e2f31fc2544f522de7d857'/>
<id>urn:sha1:c83ea137d7e717f764e2f31fc2544f522de7d857</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #7544: Preallocate thread memory before creating the thread to avoid a</title>
<updated>2010-03-03T23:20:25Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@haypocalc.com</email>
</author>
<published>2010-03-03T23:20:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=71fb87e64c51627564262fd64299f7ac79625404'/>
<id>urn:sha1:71fb87e64c51627564262fd64299f7ac79625404</id>
<content type='text'>
fatal error in low memory condition.
</content>
</entry>
<entry>
<title>Adds a sanity check to avoid a *very rare* infinite loop due to a corrupt tls</title>
<updated>2008-08-04T07:33:37Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-08-04T07:33:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d868be8805b7f5c4f0356eb01f6d8feab43cc9b3'/>
<id>urn:sha1:d868be8805b7f5c4f0356eb01f6d8feab43cc9b3</id>
<content type='text'>
key list data structure in the thread startup path.

This change is a companion to r60148 which already successfully dealt with a
similar issue on thread shutdown.

In particular this loop has been observed happening from this call path:
 #0  in find_key ()
 #1  in PyThread_set_key_value ()
 #2  in _PyGILState_NoteThreadState ()
 #3  in PyThreadState_New ()
 #4  in t_bootstrap ()
 #5  in pthread_start_thread ()

I don't know how this happens but it does, *very* rarely.  On more than
one hardware platform.  I have not been able to reproduce it manually.
(A flaky mutex implementation on the system in question is one hypothesis).

As with r60148, the spinning we managed to observe in the wild was due to a
single list element pointing back upon itself.
</content>
</entry>
<entry>
<title>Provide a sanity check during PyThreadState_DeleteCurrent() and</title>
<updated>2008-01-21T07:11:11Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-01-21T07:11:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2778c999e39142b6e2f092028e0b05ef29bdb901'/>
<id>urn:sha1:2778c999e39142b6e2f092028e0b05ef29bdb901</id>
<content type='text'>
PyThreadState_Delete() to avoid an infinite loop when the tstate list
is messed up and has somehow becomes circular and does not contain the
current thread.

I don't know how this happens but it does, *very* rarely.  On more than
one hardware platform.  I have not been able to reproduce it manually.

Attaching to a process where its happening: it has always been in an
infinite loop over a single element tstate list that is not the tstate
we're looking to delete.  It has been in t_bootstrap()'s call to
PyThreadState_DeleteCurrent() as a pthread is exiting.
</content>
</entry>
<entry>
<title>Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167.</title>
<updated>2007-03-12T16:11:39Z</updated>
<author>
<name>Collin Winter</name>
<email>collinw@gmail.com</email>
</author>
<published>2007-03-12T16:11:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=276887b16dc86e3423760c6ed9353591708fba17'/>
<id>urn:sha1:276887b16dc86e3423760c6ed9353591708fba17</id>
<content type='text'>
Will backport.
</content>
</entry>
<entry>
<title>Remove extra semi-colons reported by Johnny Lee on python-dev.  Backport if anyone cares.</title>
<updated>2006-09-23T04:11:38Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-09-23T04:11:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d3f91908dd2c2ab79d16bfe235da34f2fc19c114'/>
<id>urn:sha1:d3f91908dd2c2ab79d16bfe235da34f2fc19c114</id>
<content type='text'>
</content>
</entry>
</feed>
