[Python-Dev] refleak hunting fun!
mwh at python.net
Mon Aug 18 19:16:48 EDT 2003
Neal Norwitz <neal at metaslash.com> writes:
> On Mon, Aug 18, 2003 at 02:25:04PM +0100, Michael Hudson wrote:
>> I did notice that there are more than just leaks here, I'm afraid:
>> >>> class BadSeq(tuple):
>> ... def __getitem__(self, i):
>> ... raise IndexError
>> [25508 refs]
>> >>> filter(None, BadSeq((1,)))
>> Segmentation fault
> I found this seg fault too.
> The attached patch fixes the problem. I think it's correct.
A.D. 1517: Martin Luther nails his 95 Theses to the church door and
is promptly moderated down to (-1, Flamebait).
(although I've seen it before)
More information about the Python-Dev