dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.56k stars 4.54k forks source link

tsan (thread sanitizer) failures on x86_64 from clang14 #73833

Open RobertHenry6bev opened 1 year ago

RobertHenry6bev commented 1 year ago

Description

Running on x86_64 compiled with clang14 -O0 -fsanitize=address compiling source near head/main as of Aug 12 00:09 UTC. Attached are the first 1000 lines of error reports, perhaps many of them redundant. I was unable to get the tsan'ed application to run under gdb, but did not perservere.

Interpreting tsan output is tricky. I hold the tsan lead author in very high regard.

Reproduction Steps

compile with clang14 -fsanitize=address Run with LD_PRELOAD pointing to the appropriate libtsan.so.N file, as it needs to be loaded before anything else.

Expected behavior

no thread sanitizer errors at runtime

Actual behavior

robhenry-first-tsan.txt Lots of apparent errors. These are tricky to understand. See attachment.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

dotnet-issue-labeler[bot] commented 1 year ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

mangod9 commented 12 months ago

is this required for 8?