[MacPorts] #48807: python messes with terminal state on exit

MacPorts noreply at macports.org
Sun Dec 25 19:59:48 CET 2016


#48807: python messes with terminal state on exit
-------------------------------------------------+-------------------------
  Reporter:  yselivanov@…                        |      Owner:
                                                 |  jyrkiwahlstedt
      Type:  defect                              |     Status:  new
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:  2.3.3
Resolution:                                      |   Keywords:  haspatch
      Port:  python26 python27 python python34   |
  python35 libedit                               |
-------------------------------------------------+-------------------------

Comment (by fhgwright):

 Replying to [comment:94 cdeil]:
 > With {{{sudo port install python36}}} I now see
 > {{{
 > ##############################################################
 > # IF YOU ARE USING PYTHON FROM THE TERMINAL, PLEASE INSTALL:
 > #   py36-readline
 > # TO AVOID A LIBEDIT / PYTHON INTERACTION ISSUE.
 > # REF: https://trac.macports.org/ticket/48807
 > ##############################################################
 > }}}
 > but {{{py36-readline}}} doesn't exist (yet?).

 Note that Python 3.6 was only officially released two days ago :-)

 And unfortunately it's not just a matter of adding the version to the py-
 readline port.

 With a (locally generated) py36-readline installed:
 {{{
 MacPro:~ fw$ python3.6
 Python 3.6.0 (default, Dec 23 2016, 12:59:30)
 [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> 1+1
 Python(59962,0x7fff7a4d0310) malloc: *** error for object 0x103e7f640:
 pointer being freed was not allocated
 *** set a breakpoint in malloc_error_break to debug
 Abort trap: 6
 }}}

 Without it:
 {{{
 MacPro:~ fw$ python3.6
 Python 3.6.0 (default, Dec 23 2016, 12:59:30)
 [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> 1+1
 >>> 2
 ^D>>>
 MacPro:~ fw$ MacPro:~ fw$ MacPro:~ fw$
 }}}
 The latter shows the usual trouble until "stty sane" (unechoed).

--
Ticket URL: <https://trac.macports.org/ticket/48807#comment:95>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list