boostorg / boostorg/python

Crash in plumbum module when importing .so linked with gold

未關閉
#370 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
537
分支
223
平均合併
11 小時 22 分鐘
30 天內合併 PR
2

描述

I am not sure it is boost.python'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. It does not happen if the extension is not loaded, and I've never experienced this crash even though plumbum is widely used in our scripts.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start with the linked plumbum-crash-repro repository and reproduce the shutdown crash in plumbum/commands/processes.py around line 286. Compare importing the Boost.Python extension with leaving it unloaded under clang and the gold linker. Done means identifying and resolving the crash in the described configuration, with the reproduction confirming clean shutdown.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp, python
領域
backend
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。