[issue1722344] Thread shutdown exception in Thread.notify()

2010-04-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1722344] Thread shutdown exception in Thread.notify()

2010-04-13 Thread Thijs Triemstra
Thijs Triemstra added the comment: Looks like this influenced mod_wsgi as well: http://groups.google.com/group/modwsgi/browse_thread/thread/ba82b2643564d2dd -- nosy: +thijs ___ Python tracker __

[issue1722344] Thread shutdown exception in Thread.notify()

2010-02-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I have seen somewhere (ask google), that python 2.6.5 would be released mid-march. But except for a few platforms, python.org does not provide compiled binaries. -- ___ Python tracker

[issue1722344] Thread shutdown exception in Thread.notify()

2010-02-21 Thread sorin
sorin added the comment: Any idea if there is a nightly build for Python 2.6? The latest release was 2.6.4 and was 2 days before submitting the patch. Or the only alternative is to build it myself? Any ideas on when we could see 2.6.5? - I tried to look for a release timeline but I wasn't ab

[issue1722344] Thread shutdown exception in Thread.notify()

2009-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Backported to 2.6 in r75749. -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker ___ __

[issue1722344] Thread shutdown exception in Thread.notify()

2009-10-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch was committed in trunk, py3k and 3.1. Waiting for 2.6 to be unfrozen before I commit it there too. -- stage: commit review -> committed/rejected status: open -> pending versions: -Python 2.7, Python 3.1, Python 3.2 __

[issue1722344] Thread shutdown exception in Thread.notify()

2009-10-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I'll do it then! -- assignee: -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1722344] Thread shutdown exception in Thread.notify()

2009-10-20 Thread Adam Olsen
Adam Olsen added the comment: Nope, no access. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1722344] Thread shutdown exception in Thread.notify()

2009-10-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch looks good to me. And since Py_Finalize() claims to "destroy all sub-interpreters" and "free all memory allocated by the Python interpreter", I guess your approach makes sense. Can you commit? -- resolution: -> accepted stage: patch review ->

[issue1722344] Thread shutdown exception in Thread.notify()

2009-05-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou stage: -> patch review type: -> behavior versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python tracker ___

[issue1722344] Thread shutdown exception in Thread.notify()

2009-05-18 Thread Aren Olson
Changes by Aren Olson : -- nosy: +reacocard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1722344] Thread shutdown exception in Thread.notify()

2009-01-26 Thread Qiangning Hong
Changes by Qiangning Hong : -- nosy: +hongqn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1722344] Thread shutdown exception in Thread.notify()

2008-05-01 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: Oh, and the patch includes a testcase. The current test_threading.py doesn't work with older versions, but a freestanding version of this testcase passes in 2.1 to 2.4, fails in 2.5 and trunk, and passes with the patch. _

[issue1722344] Thread shutdown exception in Thread.notify()

2008-05-01 Thread Adam Olsen
Adam Olsen <[EMAIL PROTECTED]> added the comment: This bug was introduced by r53249, which was fixing bug #1566280. Fixed by moving the WaitForThreadShutdown call into Py_Finalize, so all shutdown paths use it. I also tweaked the name to follow local helper function conventions. Martin, since

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-06 Thread Brett Cannon
Brett Cannon added the comment: > > which means no global namespace access > Does that mean that you cannot use len and range in a Thread? No, it means you have to be careful if you do. Shutting down properly will take care of things. Otherwise you need to save a reference locally (either on an

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-06 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc: -- nosy: +amaury.forgeotdarc _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsu

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-06 Thread Thomas Dybdahl Ahle
Thomas Dybdahl Ahle added the comment: > which means no global namespace access Does that mean that you cannot use len and range in a Thread? -- nosy: +lobais _ Tracker <[EMAIL PROTECTED]>

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Brett Cannon
Brett Cannon added the comment: OK, I will re-open to see if some other core developer wants to take this on, but personally I am passing. -- resolution: wont fix -> status: closed -> open _ Tracker <[EMAIL PROTECTED]>

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Adam Olsen
Adam Olsen added the comment: I disagree. sys.exit() attempts to gracefully shutdown the interpreter, invoking try/finally blocks and the like. If you want to truly force shutdown you should use os.abort() or os._exit(). Note that, as python doesn't call a main function, you have to use sys.ex

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Brett Cannon
Brett Cannon added the comment: Hold on, why is that wrong? What if the threads block forever, preventing shutdown? sys.exit() is not exactly some namby-pamby function but a forced shutdown of the interpreter that should guarantee that the interpreter quits. Changing its semantics now would take

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Adam Olsen
Adam Olsen added the comment: To put it another way: SystemExit turns non-daemon threads into daemon threads. This is clearly wrong. Brent, could you reopen the bug? _ Tracker <[EMAIL PROTECTED]>

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Adam Olsen
Adam Olsen added the comment: Py_Main calls WaitForThreadShutdown before calling Py_Finalize, which should wait for all these threads to finish shutting down before it starts wiping their globals. However, if SystemExit is raised (such as via sys.exit()), Py_Exit is called, and it directly calls

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Brett Cannon
Brett Cannon added the comment: I think the general idea of the problem has been stated, but I figured I would state the official issue. When Python begins to shutdown it takes each module and sets each variable in the global namespace to None. If a thread has not terminated before the interpret

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread James Cooper
James Cooper added the comment: Though these exceptions while shutting down are mostly harmless, they are very noisy and must be squelched in a production application. Here is the patch which we at Solido Design (www.solidodesign.com) are using to hide the exceptions. Note that this doesn't fix