Author tzickel
Recipients benjamin.peterson, brett.cannon, eric.snow, gregory.p.smith, meador.inge, ncoghlan, serhiy.storchaka, tzickel
Date 2017-10-21.16:04:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508601865.62.0.213398074469.issue25083@psf.upfronthosting.co.za>
In-reply-to
Content
Added a script to check if the bug exists (provided you have an updated strace 4.15 or above).

Without patch:
# ./import_io_check.sh
strace: Requested path 'tmp.py' resolved into '/root/tmp.py'
read(3, 0x55fc3a71cc50, 4096)           = -1 ENOSYS (Function not implemented) (INJECTED)
read(3, 0x55fc3a71cc50, 4096)           = -1 ENOSYS (Function not implemented) (INJECTED)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named py
+++ exited with 1 +++
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named py
Bug exists an incorrect .pyc has been produced

With patch:
# PYTHON=Python-2.7.14-with-patch/python ./import_io_check.sh
strace: Requested path 'tmp.py' resolved into '/root/tmp.py'
read(3, 0x55a8ff7d3020, 4096)           = -1 ENOSYS (Function not implemented) (INJECTED)
read(3, 0x55a8ff7d3020, 4096)           = -1 ENOSYS (Function not implemented) (INJECTED)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "tmp.py", line 1

    ^
SyntaxError: unexpected EOF while parsing
+++ exited with 1 +++
Script finished successfully
History
Date User Action Args
2017-10-21 16:04:25tzickelsetrecipients: + tzickel, brett.cannon, gregory.p.smith, ncoghlan, benjamin.peterson, meador.inge, eric.snow, serhiy.storchaka
2017-10-21 16:04:25tzickelsetmessageid: <1508601865.62.0.213398074469.issue25083@psf.upfronthosting.co.za>
2017-10-21 16:04:25tzickellinkissue25083 messages
2017-10-21 16:04:24tzickelcreate