[issue12098] Child process running as debug on Windows

2013-03-22 Thread Kristján Valur Jónsson

Changes by Kristján Valur Jónsson krist...@ccpgames.com:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2013-03-19 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Reopening this since this it needs backporting to 2.7

--
nosy: +kristjan.jonsson
status: closed - open
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2013-03-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 37f52e71f4cd by Kristján Valur Jónsson in branch '2.7':
Issue #12098: multiprocessing on Windows now starts child processes
http://hg.python.org/cpython/rev/37f52e71f4cd

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2013-03-19 Thread R. David Murray

R. David Murray added the comment:

Early indications are that this backport broke test running on the buildbots:

   http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%202.7/builds/1614

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2013-03-19 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

The buildbots page has been down for a while now, I can't see what's going on.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2013-03-19 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b0b507268d7c by Kristján Valur Jónsson in branch '2.7':
Issue #12098 : Fix a missing import in the unittests.
http://hg.python.org/cpython/rev/b0b507268d7c

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-25 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 347735ec92eb by Richard Oudkerk in branch 'default':
#12098: Make multiprocessing's child processes inherit sys.flags on Windows
http://hg.python.org/cpython/rev/347735ec92eb

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-18 Thread Richard Oudkerk

Richard Oudkerk shibt...@gmail.com added the comment:

  Failure to build _multiprocessing will mean that multiprocessing cannot 
  be imported.  So if the function goes somewhere in multiprocessing then 
  it makes running the test suite with multiple processes dependent on the 
  building of _multiprocessing.  Not sure if that is much of a problem
  since one can just run the test suite normally.
 
 I don't think that's a problem indeed.

Since multiprocessing also depends on threading, the change has broken the 
AMD64 Fedora without threads 3.x buildbot.  I had not realized that the 
buildbots ran the test suite using multiple processes.

I am not sure how best to refactor things -- I don't think multiprocessing 
should import test.support.  Maybe we should just live with the duplication.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Since multiprocessing also depends on threading, the change has broken
 the AMD64 Fedora without threads 3.x buildbot.  I had not realized
 that the buildbots ran the test suite using multiple processes.

They don't. It's only the import failing, so you should just catch and
ignore the ImportError.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

  Since multiprocessing also depends on threading, the change has broken
  the AMD64 Fedora without threads 3.x buildbot.  I had not realized
  that the buildbots ran the test suite using multiple processes.
 
 They don't. It's only the import failing, so you should just catch and
 ignore the ImportError.

Sorry, I have misread. It actually happens inconditionally in
run_tests.py, and is used to spawn the Python interpreter which will run
the test suite.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 2034b3de1144 by Antoine Pitrou in branch 'default':
Move private function _args_from_interpreter_flags() to subprocess.py, so
http://hg.python.org/cpython/rev/2034b3de1144

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-14 Thread Richard Oudkerk

Richard Oudkerk shibt...@gmail.com added the comment:

 - the function generating the flags should be exported (with a private 
 name), so that it can be reused by Lib/test/[test_]support.py. Duplicate 
 code is error-prone, especially when enumerating command-line flags, 
 attribute names...

Failure to build _multiprocessing will mean that multiprocessing cannot be 
imported.  So if the function goes somewhere in multiprocessing then it makes 
running the test suite with multiple processes dependent on the building of 
_multiprocessing.  Not sure if that is much of a problem since one can just run 
the test suite normally.

Also I don't think -i (inspect/interactive) should be passed on: a child 
process's stdin is os.devnull.

BTW, why isn't the use of -u (unbuffered stdout, stderr) reflected in 
sys.flags?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-14 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 Failure to build _multiprocessing will mean that multiprocessing cannot 
 be imported.  So if the function goes somewhere in multiprocessing then 
 it makes running the test suite with multiple processes dependent on the 
 building of _multiprocessing.  Not sure if that is much of a problem
 since one can just run the test suite normally.

I don't think that's a problem indeed.

 Also I don't think -i (inspect/interactive) should be passed on: a 
 child process's stdin is os.devnull.

Ah, you're right.

 BTW, why isn't the use of -u (unbuffered stdout, stderr) reflected in 
 sys.flags?

Don't know. sys.flags was introduced in issue1816, long after the -u flag 
itself. The code to reflect -u is commented out, perhaps Christian Heimes can 
shed some light on this.

--
nosy: +christian.heimes

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2012-05-13 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +sbt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-25 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Ok, thanks for the patches. Some further comments:
- the function generating the flags should be exported (with a private name), 
so that it can be reused by Lib/test/[test_]support.py. Duplicate code is 
error-prone, especially when enumerating command-line flags, attribute names...
- in the tests, proc_flags() could simply return tuple(sys.flags). This is 
simpler and easier to maintain.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-20 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Thanks for the patches.
One comment: I'm not sure a frozen interpreter can take regular Python flags.
As for the test, you could run a function returning sys.flags from the child to 
the parent, and check that the returned value is equal to the parent's 
sys.flags.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-20 Thread Sergey Mezentsev

Changes by Sergey Mezentsev theb...@yandex.ru:


Removed file: http://bugs.python.org/file22021/Issue12098.branch-2.6.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-20 Thread Sergey Mezentsev

Changes by Sergey Mezentsev theb...@yandex.ru:


Removed file: http://bugs.python.org/file22022/Issue12098.branch-default.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-20 Thread Sergey Mezentsev

Changes by Sergey Mezentsev theb...@yandex.ru:


Added file: http://bugs.python.org/file22041/Issue12098.branch-2.6.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-20 Thread Sergey Mezentsev

Changes by Sergey Mezentsev theb...@yandex.ru:


Added file: http://bugs.python.org/file22042/Issue12098.branch-default.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-20 Thread Sergey Mezentsev

Sergey Mezentsev theb...@yandex.ru added the comment:

I updated the patch.
Added a test and remove arguments for frozen interpreter.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-18 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I think that the problem is in Popen.get_command_line() of 
multiprocessing.forking.

There are other options changing Python behaviour: -b, -B, -E, -u, etc.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-18 Thread Amaury Forgeot d'Arc

Changes by Amaury Forgeot d'Arc amaur...@gmail.com:


--
nosy: +jnoller

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

We already have some logic for that:
http://hg.python.org/cpython/file/default/Lib/test/support.py#l1398

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-18 Thread Sergey Mezentsev

Sergey Mezentsev theb...@yandex.ru added the comment:

I create patch for Popen.get_command_line() ('2.6' and 'default' branches).

I don't know how to write the test. The sys.flags structure are read only.

--
keywords: +patch
Added file: http://bugs.python.org/file22021/Issue12098.branch-2.6.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-18 Thread Sergey Mezentsev

Changes by Sergey Mezentsev theb...@yandex.ru:


Added file: http://bugs.python.org/file22022/Issue12098.branch-default.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-17 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
title: Child process running as debug - Child process running as debug on 
Windows

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-17 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
type: behavior - feature request
versions: +Python 3.3 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12098] Child process running as debug on Windows

2011-05-17 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

This happens only on Windows, where multiprocessing has to spawn a new 
intepreter; the -O parameter is certainly omitted.
Unix platforms fork() the current interpreter with all its state and don't have 
this issue.

--
nosy: +amaury.forgeotdarc

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com