Skip to content

segmentation fault on calling __reversed__() #83849

Closed

Description

@GrzegorzKraso
BPO 39668
Nosy @rhettinger, @tirkarthi
Superseder
  • bpo-38525: Strange reversed dict behavior
  • 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 = None
    closed_at = <Date 2020-02-18.09:57:03.510>
    created_at = <Date 2020-02-17.23:33:17.818>
    labels = ['interpreter-core', '3.8', 'type-crash']
    title = 'segmentation fault on calling __reversed__()'
    updated_at = <Date 2020-02-18.09:57:03.509>
    user = 'https://bugs.python.org/GrzegorzKraso'

    bugs.python.org fields:

    activity = <Date 2020-02-18.09:57:03.509>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-02-18.09:57:03.510>
    closer = 'xtreak'
    components = ['Interpreter Core']
    creation = <Date 2020-02-17.23:33:17.818>
    creator = 'Grzegorz Kraso\xc5\x84'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39668
    keywords = []
    message_count = 7.0
    messages = ['362164', '362175', '362176', '362179', '362180', '362185', '362189']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'Grzegorz Kraso\xc5\x84', 'xtreak']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '38525'
    type = 'crash'
    url = 'https://bugs.python.org/issue39668'
    versions = ['Python 3.8']

    Activity

    1. GrzegorzKraso commented on Feb 17, 2020

      GrzegorzKrasomannequin
      MannequinAuthor

      This causes segmentation fault:

      list((lambda: None).__annotations__.__reversed__())

    2. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Feb 17, 2020
    3. rhettinger commented on Feb 18, 2020

      @rhettinger
      Contributor

      This works fine for me on macOS using the python.org 64-bit build.

      What are you using?

    4. tirkarthi commented on Feb 18, 2020

      @tirkarthi
      Member

      This could be fixed with 24dc2f8 bpo-38525

      ➜ cpython git:(24dc2f8) ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
      ➜ cpython git:(24dc2f8) git checkout HEAD~1
      Previous HEAD position was 24dc2f8 bpo-38525: Fix a segmentation fault when using reverse iterators of empty dict (GH-16846)
      HEAD is now at 88eeda6 Remove doc reference to unmaitained Nose package (GH-16849)
      ➜ cpython git:(88eeda6) make -s -j4 2> /dev/null
      ➜ cpython git:(88eeda6) ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
      [1] 36178 segmentation fault ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'

    5. GrzegorzKraso commented on Feb 18, 2020

      GrzegorzKrasomannequin
      MannequinAuthor

      Python 3.8.0 (default, Oct 23 2019, 18:51:26) [GCC 9.2.0] on linux
      Linux anarchy 4.19.91-1-lts #1 SMP Sat, 21 Dec 2019 16:34:46 +0000 x86_64 GNU/Linux
      Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz

    6. tirkarthi commented on Feb 18, 2020

      @tirkarthi
      Member

      Can you please try and update to 3.8.1? It should be fixed there.

    7. GrzegorzKraso commented on Feb 18, 2020

      GrzegorzKrasomannequin
      MannequinAuthor

      I confirm. 3.8.1 is fixed. Thank you and sorry for bothering.

    8. tirkarthi commented on Feb 18, 2020

      @tirkarthi
      Member

      No problem, closing it as duplicate of bpo-38525.

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

    No one assigned

      Labels

      3.8 (EOL)end of lifeinterpreter-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