[MacPorts] #54702: Python 36 and Python 35 crash reading files larger than 2 Gig

MacPorts noreply at macports.org
Wed Aug 30 20:53:17 UTC 2017


#54702: Python 36 and Python 35 crash reading files larger than 2 Gig
--------------------+--------------------------------
 Reporter:  jhelm   |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.4.1
 Keywords:          |       Port:  python36, python35
--------------------+--------------------------------
 On OS X 10.11.6 (el Capitan) the following program crashes Python 3.6.2
 and 3.5.4 with error "OSError: [Errno 22] Invalid argument" when trying to
 open files larger than 2.0 Gig; smaller files work fine. Python 2.7.13
 does not exhibit the problem. A similar bug was logged at bugs.python.org
 as Issue 24658, "open().write() fails on 2 GB+ data (OS X)"
 (https://bugs.python.org/issue24658) and remains open. (Note be sure my
 install was okay; I uninstalled, reinstalled, and ran port -nR upgrade
 --force python36)


 {{{
 import    sys

 def main():
     lines   = sys.stdin.read()
     cnt     = 0
     for line in lines: cnt += 1
     print("lines",cnt)

 if __name__ == "__main__":
     main()


 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54702>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list