This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Segfault in REPL due to escaped tab.
Type: crash Stage: resolved
Components: Interpreter Core, macOS Versions: Python 3.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder: interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update
View: 18458
Assigned To: ned.deily Nosy List: gwk, hynek, ned.deily, ronaldoussoren, tim.peters, vstinner
Priority: normal Keywords:

Created on 2013-10-23 16:29 by gwk, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (8)
msg201037 - (view) Author: George King (gwk) * Date: 2013-10-23 16:29
I can crash python2.7.5 python3.3.2 from the REPL consistently:

$ python3
Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> s = '\\t'
>>> s
Segmentation fault: 11
$ 

the same goes for:
Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

both of these python builds are the mac binaries from python.org.
msg201038 - (view) Author: George King (gwk) * Date: 2013-10-23 16:34
actually, the second line of any interactive session is segfaulting; my installation must be corrupted.
msg201039 - (view) Author: George King (gwk) * Date: 2013-10-23 16:39
this is probably due to system upgrade from OS X 10.8 to 10.9 (mavericks) yesterday.
msg201041 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2013-10-23 16:47
See the 4th comment on this post:

http://stackoverflow.com/questions/18158381/python-crashing-when-running-two-commands

Let us know whether it fixes your problem!
msg201042 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2013-10-23 16:51
Oops!  Now it' the 5th comment ;-)  The one starting "running the following command, I got it working ...".
msg201052 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-10-23 18:05
This is a duplicate of Issue18458. The problem is due to an incompatible update to the GNU readline compatibility layer of the editline shared library (libedit) in OS X 10.9.  The fix for this will be in the upcoming Python 2.7.6 and 3.3.3 maintenance releases, expected soon. In the meantime, the workaround proposed in the Stackoverflow comment will eliminate the crash.  (Issue18458 will be updated shortly to include a script to do this.)
msg201056 - (view) Author: George King (gwk) * Date: 2013-10-23 19:09
thank you. i worked around this by building python3 from source, with gnu readline libs i had previously compiled (those did not require a rebuild on osx 10.9).
msg201075 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-10-23 21:51
#19370 is probably a duplicate of this one.
History
Date User Action Args
2022-04-11 14:57:52adminsetgithub: 63565
2013-10-23 21:51:18vstinnersetnosy: + vstinner
messages: + msg201075
2013-10-23 19:09:57gwksetmessages: + msg201056
2013-10-23 18:05:33ned.deilysetstatus: open -> closed
superseder: interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update
messages: + msg201052

assignee: ronaldoussoren -> ned.deily
resolution: duplicate
stage: resolved
2013-10-23 16:51:20tim.peterssetmessages: + msg201042
2013-10-23 16:48:51vstinnersetassignee: ronaldoussoren
components: + macOS
2013-10-23 16:47:17tim.peterssetnosy: + tim.peters
messages: + msg201041
2013-10-23 16:39:22gwksetmessages: + msg201039
2013-10-23 16:37:34pitrousetnosy: + ronaldoussoren, ned.deily, hynek
2013-10-23 16:34:02gwksetmessages: + msg201038
2013-10-23 16:29:22gwkcreate