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.

Author mayank
Recipients mayank
Date 2014-04-02.03:07:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396408041.53.0.971896348675.issue21129@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-04-02 03:07:21mayanksetrecipients: + mayank
2014-04-02 03:07:21mayanksetmessageid: <1396408041.53.0.971896348675.issue21129@psf.upfronthosting.co.za>
2014-04-02 03:07:21mayanklinkissue21129 messages
2014-04-02 03:07:20mayankcreate