Skip to content

Segfault in _struct.unpack_iterator #72524

Closed

Description

@ma8ma
mannequin
BPO 28337
Nosy @mdickinson, @meadori, @zware, @ma8ma

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 2016-10-04.06:25:26.952>
created_at = <Date 2016-10-02.09:17:09.429>
labels = ['extension-modules', '3.7', 'type-crash']
title = 'Segfault in _struct.unpack_iterator'
updated_at = <Date 2016-10-04.06:25:26.951>
user = 'https://github.com/ma8ma'

bugs.python.org fields:

activity = <Date 2016-10-04.06:25:26.951>
actor = 'zach.ware'
assignee = 'none'
closed = True
closed_date = <Date 2016-10-04.06:25:26.952>
closer = 'zach.ware'
components = ['Extension Modules']
creation = <Date 2016-10-02.09:17:09.429>
creator = 'masamoto'
dependencies = []
files = []
hgrepos = []
issue_num = 28337
keywords = []
message_count = 3.0
messages = ['277867', '277869', '278011']
nosy_count = 5.0
nosy_names = ['mark.dickinson', 'meador.inge', 'python-dev', 'zach.ware', 'masamoto']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue28337'
versions = ['Python 3.7']

Activity

  1. ma8ma commented on Oct 2, 2016

    ma8mamannequin
    MannequinAuthor

    After bpo-21224 was applied into default branch, the _struct.unpack_iterator has crashed by segfault.

    reproduce segfault:
    $ uname -a
    Linux masayuki-P35-DS3 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:41:41 UTC 2016 i686 i686 i686 GNU/Linux
    $ hg update -C -r "branch(default)"
    $ ./configure --prefix=/opt/py35 --without-threads --with-system-ffi --with-system-expat
    $ make
    (build succeed)
    $ ./python 
    Python 3.7.0a0 (default:6f299f7d6643, Oct  2 2016, 17:50:08) 
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import struct
    >>> it = struct.iter_unpack('b', b'123')
    >>> type(it)
    (segfault happens)
  2. added
    3.7 (EOL)
    extension-modules
    type-crash
    on Oct 2, 2016
  3. ma8ma commented on Oct 2, 2016

    ma8mamannequin
    MannequinAuthor

    I made a mistake that is issue number. The correct issue number is bpo-21124.

  4. python-dev commented on Oct 4, 2016

    python-devmannequin
    Mannequin

    New changeset c4eb211fb38b by Zachary Ware in branch 'default':
    Closes bpo-21124, bpo-28337: Call PyType_Ready on unpackiter_type.
    https://hg.python.org/cpython/rev/c4eb211fb38b

  5. 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.7 (EOL)extension-modulestype-crash

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions