gpt4 book ai didi

c++ - Windows 的 ThreadSanitizer 日期竞赛测试

转载 作者:可可西里 更新时间:2023-11-01 09:26:07 26 4
gpt4 key购买 nike

谁知道ThreadSanitizer ?有没有人在 windows (xp) 上使用这个工具?我从 here 下载最新版本.我为 VS2008 编写了测试应用程序(使用单个 printf("hello");)并编译它。然后tsan.bat --log-file=logTasn.txt --color --debug\test.exe看看

The application failed to initialize properly (0xc0000005). Click on OK to terminate the application.

=( 控制台中没有任何描述。而且我在 goolge 中找不到任何相关信息 =(有没有人有同样的问题?或者有人可以给我推荐吗?

最佳答案

您仍然可以在 Visual Studio 调试器中运行它。在您的解决方案中,将“Debugging>Command”从 $(TargetPath) 更改为 tsan.bat,并将“Debugging>Command Arguments”更改为 --log- file=logTasn.txt --color -- $(TargetPath).

然后您将在访问冲突发生时捕获它。

关于c++ - Windows 的 ThreadSanitizer 日期竞赛测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6955986/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com