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

Hang onto libraries #573

Merged
merged 4 commits into from
May 25, 2022
Merged

Hang onto libraries #573

merged 4 commits into from
May 25, 2022

Conversation

Hoverbear
Copy link
Contributor

In #572 we discovered that on glibc 2.17 (notably, CentOS 7) there appears to be some surprising behavior around dropping the libloading::os::unix::Library structures, the Drop implementation calls dlclose which is... notably a "challenged" call.

This these structures are already used for the remaining duration of the cargo-pgx binary execution, there is no harm in keeping them around until they can be part of the normal program drops on exit instead. This avoids the issue sufficiently in my testing.

Hoverbear added 3 commits May 24, 2022 12:23
Signed-off-by: Ana Hobden <[email protected]>
Signed-off-by: Ana Hobden <[email protected]>
@Hoverbear Hoverbear requested a review from eeeebbbbrrrr May 24, 2022 19:32
@Hoverbear Hoverbear self-assigned this May 24, 2022
@Hoverbear Hoverbear linked an issue May 24, 2022 that may be closed by this pull request
Signed-off-by: Ana Hobden <[email protected]>
@Hoverbear Hoverbear merged commit 72c53da into develop May 25, 2022
@eeeebbbbrrrr eeeebbbbrrrr deleted the hang-onto-libraries branch June 20, 2023 17:58
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

Successfully merging this pull request may close these issues.

Segmentation fault when running pgx schema under CentOS 7
2 participants