-
Notifications
You must be signed in to change notification settings - Fork 845
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
Tautomer Query copy constructor is shallow not deep causing segfaults in destructor #3821
Comments
It appears that the template molecule should be a shared ptr as well:
should be
However, I remember some compilers not liking shared_ptrs to const pointers. |
Another approach to fixing this which solves the thread safety problem would be keep |
Are the tautomers used as well during the search? |
ah, right. It's the tautomers that are used during the query, not the template molecule. |
I agree that a deep copy should be made, I’ll update the pr.
…----
Brian Kelley
On Feb 17, 2021, at 2:28 PM, Greg Landrum ***@***.***> wrote:
ah, right. It's the tautomers that are used during the query, not the template molecule.
I still think it makes sense to do a deep copy of the whole thing in the copy ctor.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Failing Test (for tautomerQueryTestCatch)
The text was updated successfully, but these errors were encountered: