Opened 8 years ago

Closed 8 years ago

#53883 closed defect (duplicate)

python36 @3.6.1: pointer being freed was not allocated

Reported by: lpancescu (Laurențiu Păncescu) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: jwa@…
Port: python36

Description

I installed python36 on OS X 10.11.6:

port install python36 py36-readline

The interpreter starts, but it crashes when I try to import operator or this (I didn't try to import other packages, before going back to python35, which works without problems):

Python 3.6.1 (default, Mar 22 2017, 15:53:54)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import this
Python(25877,0x7fff7ce1d000) malloc: *** error for object 0x10d5f5110: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

Change History (2)

comment:1 Changed 8 years ago by lpancescu (Laurențiu Păncescu)

I installed the same two packages from source (port install -s python36 py36-readline), to make sure it's compiled with my Xcode. The crash happens even by typing <Enter> after the interpreter starts, no need to import any package.

I can't reproduce the crash if I install just python36, but the terminal gets confused. The solution is port install python36 +readline. Is the advice regarding py36-readline still valid?

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

You should not use py36-readline. Duplicate of #53360, #53176, and #48807.

Note: See TracTickets for help on using tickets.