Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

info can loop infinitely leaking memory if passed a recursive list #1890

Open
braingram opened this issue Dec 24, 2024 · 0 comments
Open

info can loop infinitely leaking memory if passed a recursive list #1890

braingram opened this issue Dec 24, 2024 · 0 comments

Comments

@braingram
Copy link
Contributor

braingram commented Dec 24, 2024

Description of the problem

Calling info (or search or schema_info) on an AsdfFile containing a recursive list will enter an infinite loop that will leak memory.

Example of the problem

import asdf
af = asdf.AsdfFile()
af['l'] = []
af['l'].append(af['l'])
af.info()  # never returns and consumes an ever increasing amount of memory

System information

asdf version: main
python version: 3.12
operating system: mac osx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant