Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Segfault on f-string in ast3 #30

Closed

Description

@ilevkivskyi

This happens:

Python 3.5.1 |Anaconda custom (x86_64)| (default, Dec  7 2015, 11:24:55) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin

>>> from typed_ast import ast3
>>> ast3.parse("x = f'Hi {x}'")
Segmentation fault: 11

Unfortunately, I could not test this on other versions of Python now.

Activity

  1. ilevkivskyi commented on Feb 16, 2017

    @ilevkivskyi
    MemberAuthor

    I discovered it fails even on correct f-strings:

    >>> ast3.parse("x = 3; f'Hi {x}'")
    Segmentation fault: 11
    

    f-strings without variables inside are parsed correctly without error.

  2. changed the title [-]Segfault on erroneous f-string in ast3[/-] [+]Segfault on f-string in ast3[/+] on Feb 16, 2017
  3. refi64 commented on Feb 16, 2017

    @refi64

    I remember this had happened in #22, but I don't remember what I did to fix it...

  4. ilevkivskyi commented on Feb 16, 2017

    @ilevkivskyi
    MemberAuthor

    OK, found it, here is the fix #32

  5. added a commit that references this issue on Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions