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

Potentially unsafe exit in QCOR #176

Open
1tnguyen opened this issue Jul 2, 2021 · 0 comments
Open

Potentially unsafe exit in QCOR #176

1tnguyen opened this issue Jul 2, 2021 · 0 comments

Comments

@1tnguyen
Copy link
Contributor

1tnguyen commented Jul 2, 2021

In QCOR, xacc::Finalize() is implicitly called using atexit registration.

This could be unsafe (a bit too late) for XACC plugins that need to do tear-down (ExaTN).

e.g. ExaTN's ~NumServer will do createTensorOp(TensorOpCode::DESTROY) (resulting in memory allocation -> seg fault)

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