Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
23
Star
30
Fork
165
src-openEuler
/
gcc
Closed
Code
Issues
30
Pull Requests
12
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
在arm平台使用asan编译选项的程序退出前会卡顿5s左右
Backlog
#I8C0YS
Bug
leonhard415
Opened this issue
2023-10-30 16:06
【环境信息】 软件信息: 1) OS版本及分支:openEuler release 23.09 2) 内核信息:6.4.0-10.1.0.20.oe2309.aarch64 3) 发现问题的组件版本信息:libasan-12.3.1-16.oe2309.aarch64 【问题复现步骤】 具体操作步骤: 安装libasan 准备测试demo cat test.c ``` #include <stdio.h> int main() { printf("hello\n"); return 0; } ``` 使用asan编译选项编译demo程序:gcc -fsanitize=address -fno-omit-frame-pointer -g -O2 test.c 执行程序,禁用内存泄露检查时正常,否则,程序在退出前会卡顿5s左右。 ``` # time ./a.out hello real 0m5.187s user 0m5.180s sys 0m0.005s # time ASAN_OPTIONS=detect_leaks=0 ./a.out hello real 0m0.008s user 0m0.003s sys 0m0.004s ``` 出现概率(是否必现,概率性错误):必现 【预期结果】 程序很快结束。 【实际结果】 程序在退出前会卡顿5s左右 【其他信息】 1,本测试在x86平台表现正常。 2,抓取了问题复现时的火焰图,发现lsan::ForEachChunk采样占比为99.8% 
【环境信息】 软件信息: 1) OS版本及分支:openEuler release 23.09 2) 内核信息:6.4.0-10.1.0.20.oe2309.aarch64 3) 发现问题的组件版本信息:libasan-12.3.1-16.oe2309.aarch64 【问题复现步骤】 具体操作步骤: 安装libasan 准备测试demo cat test.c ``` #include <stdio.h> int main() { printf("hello\n"); return 0; } ``` 使用asan编译选项编译demo程序:gcc -fsanitize=address -fno-omit-frame-pointer -g -O2 test.c 执行程序,禁用内存泄露检查时正常,否则,程序在退出前会卡顿5s左右。 ``` # time ./a.out hello real 0m5.187s user 0m5.180s sys 0m0.005s # time ASAN_OPTIONS=detect_leaks=0 ./a.out hello real 0m0.008s user 0m0.003s sys 0m0.004s ``` 出现概率(是否必现,概率性错误):必现 【预期结果】 程序很快结束。 【实际结果】 程序在退出前会卡顿5s左右 【其他信息】 1,本测试在x86平台表现正常。 2,抓取了问题复现时的火焰图,发现lsan::ForEachChunk采样占比为99.8% 
Comments (
2
)
Sign in
to comment
Status
Backlog
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Labels
sig/Compiler
Not set
Projects
Unprojected
Unprojected
Milestones
openEuler-23.09
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/gcc.git
git@gitee.com:src-openeuler/gcc.git
src-openeuler
gcc
gcc
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register