Staging
v0.5.1
https://github.com/python/cpython
Revision f725bdb5c704e07578c7bbdd4c853f1e07fd3d16 authored by Thomas Heller on 25 January 2005, 20:46:48 UTC, committed by Thomas Heller on 25 January 2005, 20:46:48 UTC
for Python 2.4 caused a segfault when post_install_script was used.

The reason was that the file handle passed to PyRun_SimpleFile() was
created with MSVCRT.DLL, but Python 2.4 uses MSVCR71.DLL.

So, I replaced PyRun_SimpleFile() with PyRun_SimpleString().  The
segfault is gone, but the output of the postinstall script doesn't
show up, because still freopen() from MSVCRT is used.

(I would be very gratefull if someone proofreads the patch, at least).
1 parent cf5d664
History
Tip revision: f725bdb5c704e07578c7bbdd4c853f1e07fd3d16 authored by Thomas Heller on 25 January 2005, 20:46:48 UTC
Running a bdist_wininst installer, built with Python 2.3, installing
Tip revision: f725bdb
File Mode Size
.cvsignore -rw-r--r-- 17 bytes
atof.c -rw-r--r-- 815 bytes
bltinmodule.c -rw-r--r-- 55.7 KB
ceval.c -rw-r--r-- 97.3 KB
codecs.c -rw-r--r-- 19.2 KB
compile.c -rw-r--r-- 133.6 KB
dup2.c -rw-r--r-- 685 bytes
dynload_aix.c -rw-r--r-- 4.9 KB
dynload_atheos.c -rw-r--r-- 1.0 KB
dynload_beos.c -rw-r--r-- 6.3 KB
dynload_dl.c -rw-r--r-- 561 bytes
dynload_hpux.c -rw-r--r-- 1.3 KB
dynload_mac.c -rw-r--r-- 3.2 KB
dynload_next.c -rw-r--r-- 3.3 KB
dynload_os2.c -rw-r--r-- 1020 bytes
dynload_shlib.c -rw-r--r-- 3.1 KB
dynload_stub.c -rw-r--r-- 202 bytes
dynload_win.c -rw-r--r-- 7.3 KB
errors.c -rw-r--r-- 17.9 KB
exceptions.c -rw-r--r-- 45.6 KB
fmod.c -rw-r--r-- 435 bytes
frozen.c -rw-r--r-- 1.2 KB
frozenmain.c -rw-r--r-- 1.3 KB
future.c -rw-r--r-- 6.0 KB
getargs.c -rw-r--r-- 36.0 KB
getcompiler.c -rw-r--r-- 366 bytes
getcopyright.c -rw-r--r-- 503 bytes
getcwd.c -rw-r--r-- 1.3 KB
getmtime.c -rw-r--r-- 318 bytes
getopt.c -rw-r--r-- 2.3 KB
getplatform.c -rw-r--r-- 130 bytes
getversion.c -rw-r--r-- 290 bytes
graminit.c -rw-r--r-- 30.0 KB
hypot.c -rw-r--r-- 282 bytes
import.c -rw-r--r-- 70.8 KB
importdl.c -rw-r--r-- 2.0 KB
importdl.h -rw-r--r-- 990 bytes
mactoolboxglue.c -rw-r--r-- 18.0 KB
marshal.c -rw-r--r-- 18.2 KB
memmove.c -rw-r--r-- 439 bytes
modsupport.c -rw-r--r-- 11.0 KB
mysnprintf.c -rw-r--r-- 2.6 KB
mystrtoul.c -rw-r--r-- 3.1 KB
pyfpe.c -rw-r--r-- 623 bytes
pystate.c -rw-r--r-- 12.8 KB
pythonrun.c -rw-r--r-- 41.1 KB
sigcheck.c -rw-r--r-- 529 bytes
strdup.c -rw-r--r-- 256 bytes
strerror.c -rw-r--r-- 485 bytes
strtod.c -rw-r--r-- 5.1 KB
structmember.c -rw-r--r-- 5.5 KB
symtable.c -rw-r--r-- 4.4 KB
sysmodule.c -rw-r--r-- 33.9 KB
thread.c -rw-r--r-- 8.3 KB
thread_atheos.h -rw-r--r-- 6.0 KB
thread_beos.h -rw-r--r-- 6.0 KB
thread_cthread.h -rw-r--r-- 2.7 KB
thread_foobar.h -rw-r--r-- 1.9 KB
thread_lwp.h -rw-r--r-- 3.1 KB
thread_nt.h -rw-r--r-- 8.0 KB
thread_os2.h -rw-r--r-- 5.0 KB
thread_pth.h -rw-r--r-- 5.2 KB
thread_pthread.h -rw-r--r-- 12.9 KB
thread_sgi.h -rw-r--r-- 9.4 KB
thread_solaris.h -rw-r--r-- 3.0 KB
thread_wince.h -rw-r--r-- 4.0 KB
traceback.c -rw-r--r-- 6.4 KB

back to top