Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Improve the band-aid solution for seg faults and the static TLS error #4846

Merged
merged 3 commits into from
Dec 6, 2020

Conversation

eladsegal
Copy link
Contributor

I kept getting "ImportError: dlopen: cannot load any more object with static TLS" and segmentation faults.
At first, it seemed the cause is the import of sklearn in the AUC metric. After adding sklearn import before everything else, I didn't get the static TLS error anymore, but continued getting seg faults which came from imports from transformers.
Adding a transformers import before all other imports helped with both errors.

Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this happens but I'm glad we have a work-around. Thanks!

@epwalsh epwalsh merged commit 41c5224 into allenai:master Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants