开发者

ThreadSanitizer date race test for Windows

开发者 https://www.devze.com 2023-03-26 07:32 出处:网络
Who knows ThreadSanitizer? Does anyo开发者_如何学Pythonne use this tool for windows (xp)? I download latest version from here. I wrote the test app for VS2008 (with single printf(\"hello\");) and comp

Who knows ThreadSanitizer? Does anyo开发者_如何学Pythonne use this tool for windows (xp)? I download latest version from here. I wrote the test app for VS2008 (with single printf("hello");) and compile it. Then tsan.bat --log-file=logTasn.txt --color -- debug\test.exeand see

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

=( without any description in console. And I can't find anything about that in goolge =( Does anyone has the same problem? Or somebody can give me recommendation?


You can still run this in the Visual Studio debugger. In your solution, change the "Debugging>Command" from $(TargetPath) to tsan.bat and the "Debugging>Command Arguments" to --log-file=logTasn.txt --color -- $(TargetPath).

You will then catch the Access Violation as it happens.


Ensure correct Visual C++ Runtime is installed. You may download one of the from (VS2008, 32-bit, RTM): http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=29


Timur, who's developing ThreadSanitizer for Windows, has just downloaded http://build.chromium.org/p/client.tsan/binaries/tsan-r3613-x86-windows-sfx.exe to C:\tmp , ran it to unpack TSan and it ran helloworld app without any problems, like this: C:\tmp\tsan-x86-windows\tsan.bat -- hello.exe

btw, --color should not be needed/used when you use --log-file

Please address the further questions to data-race-test@googlegroups.com

0

精彩评论

暂无评论...
验证码 换一张
取 消