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

MacPorts noreply at macports.org
Fri Mar 24 22:49:18 UTC 2017


#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 aikchar):

 Replying to [comment:119 eborisch]:
 > Replying to [comment:118 joshenders]:
 > > I get this crash as well:
 > [snip]
 > > --->  Activating python36 @3.6.1_0+readline
 >
 > Do you also have py36-readline installed? Having both python36 (itself)
 installed +readline (variant) and py36-readline (the readline python
 package) installed at the same time can cause that, if I recall. Use one
 or the other.

 I removed `py36-readline` and installed `python36 +readline` and I don't
 get this error anymore. Thanks, Eric!

 {{{
 $ port installed | grep readline
   py27-readline @6.2.4.1_1 (active)
   py34-readline @6.2.4.1_1 (active)
   py35-readline @6.2.4.1_1 (active)
   readline @6.3.003_1 (active)

 $ sudo port install python36 +readline
 <SNIP OUTPUT>

 $ port installed | grep readline
   py27-readline @6.2.4.1_1 (active)
   py34-readline @6.2.4.1_1 (active)
   py35-readline @6.2.4.1_1 (active)
   python36 @3.6.1_0+readline (active)
   readline @6.3.003_1 (active)

 $ /opt/local/bin/python3.6
 Python 3.6.1 (default, Mar 24 2017, 15:43:12)
 [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> print("Hello, World!")
 Hello, World!
 >>> exit()

 $ echo $?
 0

 $ sudo port install py36-readline
 <SNIP OUTPUT>

 $ port installed | grep readline
   py27-readline @6.2.4.1_1 (active)
   py34-readline @6.2.4.1_1 (active)
   py35-readline @6.2.4.1_1 (active)
   py36-readline @6.2.4.1_1 (active)
   python36 @3.6.1_0+readline (active)
   readline @6.3.003_1 (active)

 $ /opt/local/bin/python3.6
 Python 3.6.1 (default, Mar 24 2017, 15:43:12)
 [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> print("Hello, World!")
 Python(58844,0x7fffd2b4a3c0) malloc: *** error for object 0x1041d6318:
 pointer being freed was not allocated
 *** set a breakpoint in malloc_error_break to debug
 Abort trap: 6

 $ echo $?
 134

 $ sudo port uninstall py36-readline
 <SNIP OUTPUT>

 $ port installed | grep readline
   py27-readline @6.2.4.1_1 (active)
   py34-readline @6.2.4.1_1 (active)
   py35-readline @6.2.4.1_1 (active)
   python36 @3.6.1_0+readline (active)
   readline @6.3.003_1 (active)

 $ /opt/local/bin/python3.6
 Python 3.6.1 (default, Mar 24 2017, 15:43:12)
 [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> print("Hello, World!")
 Hello, World!
 >>> exit()

 $ echo $?
 0
 }}}

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


More information about the macports-tickets mailing list