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.
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
16
Star
26
Fork
121
openEuler
/
gcc
Code
Issues
8
Pull Requests
9
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
26
[Backport] sanitizer: Fix asan against glibc 2.34 [PR100114]
Merged
编译小伙:master
openEuler:master
编译小伙
create on 2022-04-29 16:48
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
该PR为回合bugfix:sanitizer: Fix asan against glibc 2.34 [PR100114] Reference: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=d9f462fb372fb02da032cefd6b091d7582c425ae 经验证,此commit可解决openEuler 22.03 LTS GCC 10.3.1 + GLIBC 2.34无法正常使用地址消毒功能的BUG,可以使用如下方法验证(参考https://bugzilla.redhat.com/show_bug.cgi?id=1950244#c4): 1. `yum install -y gcc libasan libasan-static` 2. `printf "int main(void) { return 0; }" > test.c` 3. `gcc -o test -g3 -O0 -fsanitize=address -fno-omit-frame-pointer test.c` 4. `./test` 合入commit前执行4: ``` [root@localhost sanitizer-bug]# ./test ==2592823==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of SetAlternateSignalStack (error code: 22) ==2592823==Process memory map follows: ... ``` 合入commit后执行4,记得设置PATH和LD_LIBRARY_PATH: ``` [root@localhost sanitizer-bug]# ./test ``` 可正常使用地址消毒功能。 #### deja测试结果如下所示: ``` === gcc Summary === # of expected passes 255333 # of unexpected failures 114 # of unexpected successes 35 # of expected failures 2035 # of unresolved testcases 127 # of unsupported tests 3037 === g++ Summary === # of expected passes 303883 # of expected failures 2084 # of unsupported tests 8800 === obj-c++ Summary === # of expected passes 1449 # of expected failures 10 # of unsupported tests 77 === objc Summary === # of expected passes 2790 # of unsupported tests 69 === gfortran Summary === # of expected passes 53973 # of unexpected failures 9 # of unexpected successes 6 # of expected failures 220 # of unsupported tests 91 ``` 测试结果说明: gcc新增通过用例510个,减少失败用例453个,减少不支持用例21个;新增7个unresolved用例,经验证后与gcc-master 回合目标commit处运行结果相同,为开源问题; g++新增通过用例1817个,减少失败用例544个,减少不支持用例21个; 
How to merge Pull Request
git checkout master
git pull https://gitee.com/li-yancheng/gcc.git master
git push origin master
Comments
12
Commits
1
Files
1
Checks
Code problems
0
Bulk operation
Expand
Collapse
Reviewer
Code Owner
Reviewer
Noah
jvmboy
eastb233
eastb233
kuen
kuenking111_admin
编译小伙
li-yancheng
huangxiaoquan
huang-xiaoquan
cf-zhao
cf-zhao
周磊
alexanderbill
stubCode
stubCode
熊洲
xiongzhou4
Lin
lin-4682
chenzheng1030
chenzheng1030
No Setting
Min number
0
Tester
Noah
jvmboy
eastb233
eastb233
kuen
kuenking111_admin
编译小伙
li-yancheng
huangxiaoquan
huang-xiaoquan
cf-zhao
cf-zhao
周磊
alexanderbill
stubCode
stubCode
熊洲
xiongzhou4
Lin
lin-4682
chenzheng1030
chenzheng1030
No Setting
Min number
0
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
openeuler-cla/yes
lgtm
approved
ci_successful
sig/Compiler
Link Issue
I54NWH
openEuler-22.03-LTS docker容器中编译asan,gcc报错
Successfully merged pull requests will close issues
Milestone
No related milestones
Participators
(4)
1
https://gitee.com/openeuler/gcc.git
git@gitee.com:openeuler/gcc.git
openeuler
gcc
gcc
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
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