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 python interpreter
Type: crash Stage: resolved
Components: Interpreter Core Versions: Python 2.7
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: Nosy List: mayank, zach.ware
Priority: normal Keywords:

Created on 2014-04-02 03:07 by mayank, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg215351 - (view) Author: Mayank Gupta (mayank) Date: 2014-04-02 03:07
If I open the python interpreter:
$ python
Then type
def to_hex(i):
  result = hex(i)[2:]

My interpreter segfaults (EXC_BAD_ACCESS).
Here's a backtrace from lldb:
(lldb) bt
* thread #1: tid = 0x152e7f, 0x00000001002eff97 readline.so`call_readline + 647, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00000001002eff97 readline.so`call_readline + 647
    frame #1: 0x0000000100008852 Python`PyOS_Readline + 274
    frame #2: 0x000000010000a0a8 Python`tok_nextc + 104
    frame #3: 0x000000010000a853 Python`PyTokenizer_Get + 147
    frame #4: 0x000000010000544a Python`parsetok + 218
    frame #5: 0x00000001000e7722 Python`PyParser_ASTFromFile + 146
    frame #6: 0x00000001000e8983 Python`PyRun_InteractiveOneFlags + 243
    frame #7: 0x00000001000e8c6e Python`PyRun_InteractiveLoopFlags + 78
    frame #8: 0x00000001000e9451 Python`PyRun_AnyFileExFlags + 161
    frame #9: 0x00000001000ffc9f Python`Py_Main + 2111
    frame #10: 0x0000000100000f14 Python

I am using cpython 2.7.3.
msg215352 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2014-04-02 03:19
If you're using OS X 10.9+, you'll need to upgrade your Python installation.  See #18458.
History
Date User Action Args
2022-04-11 14:58:01adminsetgithub: 65328
2014-04-02 03:19:47zach.waresetstatus: open -> closed

superseder: interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

nosy: + zach.ware
messages: + msg215352
resolution: duplicate
stage: resolved
2014-04-02 03:07:21mayankcreate