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

Memory gotcha with ConvertToTraceXML in python API #518

Open
analog-cbarber opened this issue Nov 4, 2024 · 0 comments
Open

Memory gotcha with ConvertToTraceXML in python API #518

analog-cbarber opened this issue Nov 4, 2024 · 0 comments
Labels

Comments

@analog-cbarber
Copy link

analog-cbarber commented Nov 4, 2024

In the Python API, t appears that ClientXML.ConvertToTraceXML requires you to make sure to keep a reference to the ClientXML object or else you will get a segfault.

    child = ClientXML()
    parent.GetChild(child, 0)
    trace = child.ConvertToTraceXML()
    child = None # can trigger GC
    trace.IsTagWme() # seg

It would be nice if this just didn't blow up like this, but short of that, it would be good to document this.

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

No branches or pull requests

2 participants