[issue13679] Multiprocessing system crash
Antoine Pitrou pit...@free.fr added the comment: Well, have you read http://docs.python.org/library/multiprocessing.html#windows ? (especially Safe importing of main module) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: Erm.. No. I was unaware I had to do so. Next time I'll be more careful. Anyways, the docs say that python should throw a RuntimeError, but it didn't? And would it be doable to add a warning at the top of the multiprocessing tutorial/page that section? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Antoine Pitrou pit...@free.fr added the comment: Anyways, the docs say that python should throw a RuntimeError, but it didn't? I think running it directly would raise a RuntimeError, but importing it wouldn't. And would it be doable to add a warning at the top of the multiprocessing tutorial/page that section? In the introduction you have the following note, together with a link to the relevant section: “Functionality within this package requires that the __main__ module be importable by the children. This is covered in Programming guidelines however it is worth pointing out here.” -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Antoine Pitrou pit...@free.fr added the comment: Ok, closing this issue. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
New submission from Rock Achu rockac...@gmail.com: running this script repeatedly causes corruption in the console window. Just before posting this report, it led to a complete windows system freeze. running python 2.7 x86 on windows x64. The programs seems to run a couple times (when it is supposed to run once), with the output becoming more and more corrupted. One time it printed lots of triple quotes () and import os messages, even though none of those are in the script. To reproduce run the spawner.test.bat file inside the zip. Remember not to run with stuff you wont want to lose open. -- components: Windows files: issue.zip messages: 150355 nosy: Rock.Achu priority: normal severity: normal status: open title: Multiprocessing system crash type: crash versions: Python 2.7 Added file: http://bugs.python.org/file24108/issue.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: I hit Ctrl-C right after opening the bat file and got this mess: -- Added file: http://bugs.python.org/file24109/error.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: On a hunch opened task manager. There were over 9000 python processes open. Shocking. That was probably the cause of the system freeze. However I only had 20 threads open. Why so many processes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: Or did I only have 20 threads? if the program was running in a loop, then it would have spawned 20 threads each, leading to the huge amount of processes, and probably the other issues. So why does it run so many times? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: Ok, using other code, I narrowed it down to this code and before: for i in xrange(10): spawner.newproc(run=True) repeating infinitely which only should set a variable (self.busy) to false -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: By inserting print statements and feverishly killing the process, I narrowed it down to the statement: self.thread.start() that causes the issue. which runs _M_Process.func() in a multiprocessing.Process -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: More clues: the function _M_Process.func isn't being called. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: Changing the function name and removing the argument (self) passed to func doesn't change a thing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: Alright. The issue stays here. Passing nothing to multiprocessing.Process still reproduces the issue. someone else know how to deal with this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13679] Multiprocessing system crash
Rock Achu rockac...@gmail.com added the comment: Alright. Just running: import multiprocessing thread = multiprocessing.Process() thread.start() raw_input() - Causes the crash. This time there is no output, so it is essentailly invisible. Caught me by surprise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com