This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author davin
Recipients Kain94, Rodrigue.Alcazar, amaury.forgeotdarc, asksol, davin, dsdale24, jnoller, pthiem, r.david.murray
Date 2015-01-29.21:21:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422566464.73.0.349026063093.issue8094@psf.upfronthosting.co.za>
In-reply-to
Content
On Windows 7 (64-bit), it was not possible to reproduce any infinite looping behavior with the supplied example code.

Specifically, with the two examples from Benjamin, the observed behavior when running them was the same under 2.7.8 and default (3.5):  a RuntimeError results with a message suggesting that the code perhaps needs to leverage the "if __name__ == '__main__'" idiom to avoid having both parent and all subsequent children processes starting up a new process because they're all unintentionally running the same lines of code intended only for the parent to run.  Adding that idiomatic test to each of the two examples permits them to run to a happy conclusion.  That is, in the case of the first example we make that one-line code change to read:
# ---
import multiprocessing

def f(m):
    print(m)

if __name__ == '__main__':
    p = multiprocessing.Process(target=f, args=('pouet',))
    p.start()
# ---

This would be a recommended practice on unix-y systems as well as Windows.

Aside: It was not possible to reproduce the issue injected by Darren either -- perhaps the example code provided was not quite what he intended.

The infinite looping behavior described in the original issue description might well have been reproducible in much earlier releases.  In the current default (3.5) branch (or in 2.7.8), it is no longer possible to reproduce.  I'm tempted to mark this as "out of date" but instead will opt for "works for me" and close the issue.
History
Date User Action Args
2015-01-29 21:21:04davinsetrecipients: + davin, amaury.forgeotdarc, jnoller, r.david.murray, asksol, Kain94, dsdale24, Rodrigue.Alcazar, pthiem
2015-01-29 21:21:04davinsetmessageid: <1422566464.73.0.349026063093.issue8094@psf.upfronthosting.co.za>
2015-01-29 21:21:04davinlinkissue8094 messages
2015-01-29 21:21:04davincreate