[pypy-issue] [issue1305] [CFFI] Clarify ownership of nested structs

Gabriel tracker at bugs.pypy.org
Mon Oct 29 11:54:26 CET 2012

New submission from Gabriel <g2p.code+pypy at gmail.com>:

When a struct contains nested structs (not through pointers, embedded directly
inside), it appears that references to the inner struct can become invalid,
probably because they depend on the outer struct but don't prevent it from being
garbage collected.

Here is a test case; smaller test cases don't seem to trigger the memory error:

messages: 4917
nosy: pypy-issue
priority: critical
status: unread
title: [CFFI] Clarify ownership of nested structs

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list