Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault in _struct.unpack_iterator #72524

Closed
ma8ma mannequin opened this issue Oct 2, 2016 · 3 comments
Closed

Segfault in _struct.unpack_iterator #72524

ma8ma mannequin opened this issue Oct 2, 2016 · 3 comments
Labels
3.7 (EOL) end of life extension-modules C modules in the Modules dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@ma8ma
Copy link
Mannequin

ma8ma mannequin commented Oct 2, 2016

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']

@ma8ma
Copy link
Mannequin Author

ma8ma mannequin commented Oct 2, 2016

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)

@ma8ma ma8ma mannequin added 3.7 (EOL) end of life extension-modules C modules in the Modules dir type-crash A hard crash of the interpreter, possibly with a core dump labels Oct 2, 2016
@ma8ma
Copy link
Mannequin Author

ma8ma mannequin commented Oct 2, 2016

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

@python-dev
Copy link
Mannequin

python-dev mannequin commented Oct 4, 2016

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

@zware zware closed this as completed Oct 4, 2016
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life extension-modules C modules in the Modules dir type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant