Author db3l
Recipients Ringding, aimacintyre, ajaksu2, akuchling, bboissin, belopolsky, blaisorblade, christian.heimes, collinwinter, db3l, djc, facundobatista, ggenellina, gregory.p.smith, jab, jcea, jyasskin, kevinwatters, lemburg, mdionisio, ned.deily, parasa, pitrou, python-dev, ralph.corderoy, rbcollins, rhettinger, spiv, theatrus, willp
Date 2015-06-01.22:26:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433197616.6.0.596561530079.issue4753@psf.upfronthosting.co.za>
In-reply-to
Content
I ran a few more tests, and the generated executable hangs in both release and debug builds.  The closest I can get at the moment is that it's stuck importing errno from the "import sys, errno" line in os.py - at least no matter how long I wait after starting a process before breaking out, output with -v looks like:

> python_d -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# D:\cygwin\home\db3l\test\python2.7\lib\site.pyc matches D:\cygwin\home\db3l\test\python2.7\lib\site.py
import site # precompiled from D:\cygwin\home\db3l\test\python2.7\lib\site.pyc
# D:\cygwin\home\db3l\test\python2.7\lib\os.pyc matches D:\cygwin\home\db3l\test\python2.7\lib\os.py
import os # precompiled from D:\cygwin\home\db3l\test\python2.7\lib\os.pyc
import errno # builtin
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\test\python2.7\lib\site.py", line 62, in <module>
    import os
  File "D:\cygwin\home\db3l\test\python2.7\lib\os.py", line 26, in <module>
    import sys, errno
KeyboardInterrupt
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] zipimport
# cleanup[1] errno
# cleanup[1] signal
# cleanup[1] exceptions
# cleanup[1] _warnings
# cleanup sys
# cleanup __builtin__
[8991 refs]
# cleanup ints: 6 unfreed ints
# cleanup floats

I never have a problem interrupting the process, so KeyboardInterrupt is processed normally - it just looks like it gets stuck in an infinite loop during startup.

-- David
History
Date User Action Args
2015-06-01 22:26:56db3lsetrecipients: + db3l, lemburg, akuchling, collinwinter, rhettinger, facundobatista, gregory.p.smith, jcea, spiv, aimacintyre, belopolsky, ggenellina, pitrou, christian.heimes, ajaksu2, jyasskin, rbcollins, kevinwatters, ned.deily, djc, ralph.corderoy, bboissin, blaisorblade, theatrus, Ringding, jab, mdionisio, willp, python-dev, parasa
2015-06-01 22:26:56db3lsetmessageid: <1433197616.6.0.596561530079.issue4753@psf.upfronthosting.co.za>
2015-06-01 22:26:56db3llinkissue4753 messages
2015-06-01 22:26:56db3lcreate