Skip to content

Segfault in REPL due to escaped tab.Β #63565

Closed

Description

@gwk
mannequin
BPO 19366
Nosy @tim-one, @ronaldoussoren, @vstinner, @ned-deily, @hynek, @gwk
Superseder
  • bpo-18458: interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ned-deily'
    closed_at = <Date 2013-10-23.18:05:33.137>
    created_at = <Date 2013-10-23.16:29:22.897>
    labels = ['OS-mac', 'interpreter-core', 'type-crash']
    title = 'Segfault in REPL due to escaped tab.'
    updated_at = <Date 2013-10-23.21:51:18.183>
    user = 'https://github.com/gwk'

    bugs.python.org fields:

    activity = <Date 2013-10-23.21:51:18.183>
    actor = 'vstinner'
    assignee = 'ned.deily'
    closed = True
    closed_date = <Date 2013-10-23.18:05:33.137>
    closer = 'ned.deily'
    components = ['Interpreter Core', 'macOS']
    creation = <Date 2013-10-23.16:29:22.897>
    creator = 'gwk'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 19366
    keywords = []
    message_count = 8.0
    messages = ['201037', '201038', '201039', '201041', '201042', '201052', '201056', '201075']
    nosy_count = 6.0
    nosy_names = ['tim.peters', 'ronaldoussoren', 'vstinner', 'ned.deily', 'hynek', 'gwk']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '18458'
    type = 'crash'
    url = 'https://bugs.python.org/issue19366'
    versions = ['Python 3.3']

    Activity

    1. gwk commented on Oct 23, 2013

      gwkmannequin
      MannequinAuthor

      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.

    2. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Oct 23, 2013
    3. gwk commented on Oct 23, 2013

      gwkmannequin
      MannequinAuthor

      actually, the second line of any interactive session is segfaulting; my installation must be corrupted.

    4. gwk commented on Oct 23, 2013

      gwkmannequin
      MannequinAuthor

      this is probably due to system upgrade from OS X 10.8 to 10.9 (mavericks) yesterday.

    5. tim-one commented on Oct 23, 2013

      @tim-one
      Member

      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!

    6. tim-one commented on Oct 23, 2013

      @tim-one
      Member

      Oops! Now it' the 5th comment ;-) The one starting "running the following command, I got it working ...".

    7. ned-deily commented on Oct 23, 2013

      @ned-deily
      Member

      This is a duplicate of bpo-18458. 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. (bpo-18458 will be updated shortly to include a script to do this.)

    8. gwk commented on Oct 23, 2013

      gwkmannequin
      MannequinAuthor

      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).

    9. vstinner commented on Oct 23, 2013

      @vstinner
      Member

      bpo-19370 is probably a duplicate of this one.

    10. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    OS-macinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions