Author steven.daprano
Recipients DeKrain, ronaldoussoren, steven.daprano
Date 2018-09-02.23:27:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20180902232752.GS27312@ando.pearwood.info>
In-reply-to <1535564240.55.0.56676864532.issue34543@psf.upfronthosting.co.za>
Content
I've tried running this code in Python 3.6:

from _struct import Struct
for i in range(100000):
    L = [Struct.__new__(Struct) for j in range(1000)]
    for s in L:
        try:
            x = s.pack_into(bytearray())
        except SystemError:
            pass

I've run it 6 times, for a total of 600 million calls to Struct.__new__ 
and pack_into, and I cannot reproduce any crash or segfault. An 
exception (SystemError) is the correct behaviour.

Is anyone able to try it under Python 3.7?

Unless somebody is able to demonstrate a segfault or core dump, or 
otherwise demonstrate a problem with the C code, I think this ticket 
ought to be closed.
History
Date User Action Args
2018-09-02 23:27:59steven.dapranosetrecipients: + steven.daprano, ronaldoussoren, DeKrain
2018-09-02 23:27:59steven.dapranolinkissue34543 messages
2018-09-02 23:27:59steven.dapranocreate