external program crashes when run through subprocess.popen on XP

James Harris james.harris.1 at googlemail.com
Mon Nov 17 20:27:36 CET 2008


On 17 Nov, 19:15, ckkart <ckk... at gmail.com> wrote:
> Hi,
>
> on XP when starting a certain external program (plain C calculation
> program which communicates via stdout/fs) from python 2.5 using
> subprocess.Popen the external program crashes. It does not if started
> directly from the XP command prompt. This is not a purely python
> problems since the crash occurs as well if started e.g. from a msys
> bash shell. The only things I find worth mentioning from the windows
> debugging message is that FileVer and ProdVer of msvrct.dll differ, I
> am no windows expert though.
>
> Any ideas?

If it helps there is some finished code at

  http://codewiki.wikispaces.com/tester.py

which used subprocess.Popen and works well under Windows and Linux.
Search for Popen to locate the specific call. Note that the code works
whether the shell argument is true or false.

James



More information about the Python-list mailing list