New submission from Mayank Gupta: 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. ---------- components: Interpreter Core messages: 215351 nosy: mayank priority: normal severity: normal status: open title: Segfault in python interpreter type: crash versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21129> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com