Skip to content

dictionary views lead to segmentation fault #62219

Closed

Description

@MarcinSzamotulski
BPO 18019

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 2013-05-20.02:39:53.805>
created_at = <Date 2013-05-20.02:18:42.378>
labels = ['type-crash']
title = 'dictionary views lead to segmentation fault'
updated_at = <Date 2013-05-20.02:39:53.798>
user = 'https://bugs.python.org/MarcinSzamotulski'

bugs.python.org fields:

activity = <Date 2013-05-20.02:39:53.798>
actor = 'python-dev'
assignee = 'none'
closed = True
closed_date = <Date 2013-05-20.02:39:53.805>
closer = 'python-dev'
components = []
creation = <Date 2013-05-20.02:18:42.378>
creator = 'Marcin.Szamotulski'
dependencies = []
files = []
hgrepos = []
issue_num = 18019
keywords = []
message_count = 2.0
messages = ['189632', '189635']
nosy_count = 2.0
nosy_names = ['python-dev', 'Marcin.Szamotulski']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue18019'
versions = ['Python 2.7']

Activity

  1. MarcinSzamotulski commented on May 20, 2013

    MarcinSzamotulskimannequin
    MannequinAuthor
    This simple snipet will crash python:
    >>> d={}
    >>> v=d.viewvalues()
    >>> k=d.viewkeys()
    >>> d[v]=k
    >>> k
    Segmentation fault

    I am using python2.7. Python3.2 does not have views while .keys() and .values() methods raise RuntimeError: maximum recursion depth exceeded, which is expected.

  2. added
    type-crash
    on May 20, 2013
  3. python-dev commented on May 20, 2013

    python-devmannequin
    Mannequin

    New changeset 3568f8f1ccac by Benjamin Peterson in branch '2.7':
    add missing NULL check (closes bpo-18019)
    http://hg.python.org/cpython/rev/3568f8f1ccac

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

    type-crash

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions