tomerfiliba / plumbum

Plumbum: Shell Combinators
https://plumbum.readthedocs.io
MIT License
2.8k stars 182 forks source link

Crash during atexit() when importing .so compiled with boost.python linked with gold #556

Open mmatrosov opened 3 years ago

mmatrosov commented 3 years ago

I am not sure it is plumbum's fault, since there are a lot of variables in the equation, but please take a look.

I prepared the repro case and gathered some info in this repo: https://github.com/mmatrosov/plumbum-crash-repro

In short, if you import an extension library in c++ which uses boost.python, compiles with clang and links with gold, there is a crash in this line https://github.com/tomerfiliba/plumbum/blob/master/plumbum/commands/processes.py#L286 during program shutdown.