You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FLAGS_version and FLAGS_minloglevel are exported in the sentencepiece shared library and can be interposed with the same named symbols from other shared libraries such as pytorch's c10. When using sentencepiece from python along with pytorch, this causes a crash in the Flag destructor due to the sentencepiece Flag object being larger than the standard absl Flag object.
The abseil situation is IMO quite problematic. See also #869 and #876. I have a branch that fixes some of this (based on 0.1.99, not master), at least for use with an external abseil (which is the basis of the packaging in conda-forge). I've been trying to get some guidance on how and in what form I could contribute back some of those changes, but so far no response in #876 😑
FLAGS_version and FLAGS_minloglevel are exported in the sentencepiece shared library and can be interposed with the same named symbols from other shared libraries such as pytorch's c10. When using sentencepiece from python along with pytorch, this causes a crash in the Flag destructor due to the sentencepiece Flag object being larger than the standard absl Flag object.
For example: #905 #560 #579
One possible fix is to use -Bsymbolic
Reference: https://maskray.me/blog/2021-05-16-elf-interposition-and-bsymbolic
The text was updated successfully, but these errors were encountered: