Should ASAN build use `-shared-libsan`?
未關閉
還沒有人認領這個 Issue。
build
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
@isuruf do I understand you correctly at https://github.com/scipy/scipy/pull/24066#discussion_r3723640806 that you are suggesting the following diff for CPython?
diff --git a/configure.ac b/configure.ac
index 3a9841b1e7d..7b44be75623 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3520,7 +3520,7 @@ AC_ARG_WITH([address_sanitizer],
[
AC_MSG_RESULT([$withval])
BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
-LDFLAGS="-fsanitize=address $LDFLAGS"
+LDFLAGS="-fsanitize=address -shared-libsan $LDFLAGS"
# ASan works by controlling memory allocation, our own malloc interferes.
with_pymalloc="no"
],
Also, is this only necessary on linux?
Linked PRs
- gh-155420
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 configure.ac 中的 address_sanitizer 選項開始,並閱讀連結 PR gh-155420 中的討論。檢查 -shared-libsan 是否適用於 CPython 支援的平台,尤其是 Linux,並驗證產生的 ASAN 建置行為。完成的標準是記錄或實作平台範圍及所需的設定變更。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- build-system
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100