[issue38368] Crash when subclassing ctypes.Union

2019-10-15 Thread Ned Deily
Ned Deily added the comment: (fix released in 3.8.0 and 3.7.5) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38368] Crash when subclassing ctypes.Union

2019-10-15 Thread Ned Deily
Ned Deily added the comment: New changeset 1c61f2cc7ab44591b1832307a4022c927502d446 by Ned Deily (Vinay Sajip) in branch '3.7': bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16672)

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 129c2b3d44a962fc5964ef8fd4e6b22dbb691a6c by Vinay Sajip in branch '3.7': bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16672)

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset d004a5b082d0770682e6efbf03105a67469d4820 by Vinay Sajip in branch '3.8': bpo-38368: Added fix for ctypes crash when handling arrays in structs/unions. (GH-16589) (GH-16671)

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +16253 pull_request: https://github.com/python/cpython/pull/16672 ___ Python tracker ___

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +16252 pull_request: https://github.com/python/cpython/pull/16671 ___ Python tracker ___

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset e8bedbddadaa86be6bd86dc32dbdbd53933a4988 by Vinay Sajip in branch 'master': bpo-38368: Added fix for ctypes crash when handling arrays in structs… (GH-16589) https://github.com/python/cpython/commit/e8bedbddadaa86be6bd86dc32dbdbd53933a4988

[issue38368] Crash when subclassing ctypes.Union

2019-10-08 Thread Matthias Klose
Change by Matthias Klose : -- keywords: +3.7regression -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +16179 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/16589 ___ Python tracker

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: > We should not segfault here. Agreed, MAX_ELEMENTS was set to be an upper bound which shouldn't be hit. I'll investigate with OP's example data and see where the bug is. -- ___ Python tracker

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Steve Dower
Steve Dower added the comment: Given this limit can easily be hit by user code, I'd like to see it turned into a proper check with an exception (or a dynamic array) rather than just an assertion. We should not segfault here. while (length > 0) { actual_types[actual_type_index++] =

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Steve Dower
Steve Dower added the comment: Increasing MAX_ELEMENTS fixes it, but I'm not sure what other impacts there are from doing that. +Vinay who added the array handling that's hitting the limit. -- nosy: +vinay.sajip versions: +Python 3.9 ___ Python

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Steve Dower
Steve Dower added the comment: I get this assertion in a debug build: Assertion failed: actual_type_index <= MAX_ELEMENTS, file c:\projects\cpython\modules\_ctypes\stgdict.c, line 718 -- ___ Python tracker

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Steve Dower
Steve Dower added the comment: Also crashes on Windows (x64 and x86), and on 3.7.5rc1, so this is likely in our code. -- nosy: +ned.deily, steve.dower priority: normal -> release blocker stage: -> test needed versions: +Python 3.7 ___ Python

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am adding 3.8 regression since the report says 3.8.0b4 works and segfaults with 3.8.0RC1. -- keywords: +3.8regression nosy: +lukasz.langa, xtreak ___ Python tracker

[issue38368] Crash when subclassing ctypes.Union

2019-10-04 Thread Doug O'Riordan
New submission from Doug O'Riordan : Ran into Segfaults while trying to use pysnmp with 3.8.0rc1. The code is running fine on 3.8.0b04. $ python3.8 Python 3.8.0rc1 (default, Oct 2 2019, 14:15:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux Type "help", "copyright", "credits" or "license"