Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious AV in Exception test on Windows #664

Closed
MichalStrehovsky opened this issue Feb 9, 2021 · 2 comments
Closed

Spurious AV in Exception test on Windows #664

MichalStrehovsky opened this issue Feb 9, 2021 · 2 comments
Labels
area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation

Comments

@MichalStrehovsky
Copy link
Member

Hit in #658

https://dev.azure.com/dnceng/public/_build/results?buildId=984943&view=logs&jobId=35d6a56c-45ed-5990-d6d7-83c0517ee7bd&j=35d6a56c-45ed-5990-d6d7-83c0517ee7bd&t=e88c72e3-7200-56f5-e785-b7f587430c6a&s=ff05ad62-bb9a-53b6-ce9f-72f329a63e7c

BEGIN EXECUTION
" "D:\workspace\_work\1\s\dotnet.cmd" msbuild /p:IlcPath=D:\workspace\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\nativeaot nativebuild.proj"
D:\workspace\_work\1\s\.dotnet
Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Generating compatible native code. To optimize for size or speed, visit https://aka.ms/OptimizeCoreRT
/_/src/libraries/System.Private.CoreLib/src/System/Resources/ManifestBasedResourceGroveler.cs(238): Trim analysis warning IL2026: System.Resources.ManifestBasedResourceGroveler.CreateResourceSet(Stream,Assembly): Calling 'System.Resources.ManifestBasedResourceGroveler.InternalGetResourceSetFromSerializedData(Stream,String,String,ResourceManagerMediator)' which has `RequiresUnreferencedCodeAttribute` can break functionality when trimming application code. [D:\workspace\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\nativeaot\SmokeTests\Exceptions\Exceptions\nativebuild.proj]
/_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs(2665): Trim analysis warning IL2072: System.Diagnostics.Tracing.EventSource.EnsureDescriptorsInitialized(): '#0' argument does not satisfy 'All' in call to 'System.Diagnostics.Tracing.EventSource.CreateManifestAndDescriptors(Type,String,EventSource,EventManifestOptions)'. The return value of method 'System.Object.GetType()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. [D:\workspace\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\nativeaot\SmokeTests\Exceptions\Exceptions\nativebuild.proj]
/_/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.Core.cs(99): AOT analysis warning IL9700: System.Resources.ResourceReader.InitializeBinaryFormatter(): Calling 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' which has `RequiresDynamicCodeAttribute` can break functionality when compiled fully ahead of time. [D:\workspace\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\nativeaot\SmokeTests\Exceptions\Exceptions\nativebuild.proj]
/_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/SimpleTypeInfos.cs(297): Trim analysis warning IL2072: System.Diagnostics.Tracing.NullableTypeInfo.WriteData(PropertyValue): '#0' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The return value of method 'System.Diagnostics.Tracing.TraceLoggingTypeInfo.get_DataType()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. [D:\workspace\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\nativeaot\SmokeTests\Exceptions\Exceptions\nativebuild.proj]
/_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/SimpleTypeInfos.cs(278): Trim analysis warning IL2070: System.Diagnostics.Tracing.NullableTypeInfo.NullableTypeInfo(Type,List`1<Type>): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The parameter '#1' of method 'System.Diagnostics.Tracing.NullableTypeInfo.NullableTypeInfo(Type,List`1<Type>)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. [D:\workspace\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\nativeaot\SmokeTests\Exceptions\Exceptions\nativebuild.proj]
/_/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/TypeAnalysis.cs(35): Trim analysis warning IL2070: System.Diagnostics.Tracing.TypeAnalysis.TypeAnalysis(Type,EventDataAttribute,List`1<Type>): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperties()'. The parameter '#1' of method 'System.Diagnostics.Tracing.TypeAnalysis.TypeAnalysis(Type,EventDataAttribute,List`1<Type>)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. [D:\workspace\_work\1\s\artifacts\tests\coreclr\windows.x64.Checked\nativeaot\SmokeTests\Exceptions\Exceptions\nativebuild.proj]
 native\Exceptions 
Exception caught!
Null reference exception in write barrier caught!
Null reference exception caught!
Exception caught via filter!
Executing finally in Main + ThrowExcThroughMethodsWithFinalizers1 + ThrowExcThroughMethodsWithFinalizers2
Executing finally in Main + ThrowExcThroughMethodsWithFinalizers1
ThrowExcThroughMethodsWithFinalizers2
Expected: 100
Actual: -1073741819
END EXECUTION - FAILED
FAILED
@MichalStrehovsky MichalStrehovsky added the area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation label Feb 9, 2021
@AntonLapounov
Copy link
Member

Do we have infrastructure for saving crash dumps?

@MichalStrehovsky
Copy link
Member Author

Not seen this in the runtime repo.

@MichalStrehovsky MichalStrehovsky closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NativeAOT-coreclr .NET runtime optimized for ahead of time compilation
Projects
None yet
Development

No branches or pull requests

2 participants