This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Segfault in _struct.unpack_iterator
Type: crash Stage: resolved
Components: Extension Modules Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: mark.dickinson, masamoto, meador.inge, python-dev, zach.ware
Priority: normal Keywords:

Created on 2016-10-02 09:17 by masamoto, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg277867 - (view) Author: Masayuki Yamamoto (masamoto) * Date: 2016-10-02 09:17
After #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)
msg277869 - (view) Author: Masayuki Yamamoto (masamoto) * Date: 2016-10-02 09:21
I made a mistake that is issue number. The correct issue number is #21124.
msg278011 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-10-04 06:25
New changeset c4eb211fb38b by Zachary Ware in branch 'default':
Closes #21124, #28337: Call PyType_Ready on unpackiter_type.
https://hg.python.org/cpython/rev/c4eb211fb38b
History
Date User Action Args
2022-04-11 14:58:37adminsetgithub: 72524
2016-10-04 06:25:26zach.waresetstatus: open -> closed
resolution: fixed
stage: resolved
2016-10-04 06:25:05python-devsetnosy: + python-dev
messages: + msg278011
2016-10-02 09:21:49masamotosetmessages: + msg277869
2016-10-02 09:17:09masamotocreate