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

CLR Asset Failure !AreCETShadowStacksEnabled() || UseSpecialUserModeApc() error #489

Open
TusharBeniwalGH opened this issue Jan 21, 2025 · 7 comments
Labels
bug We can reproduce the issue and confirmed it is a bug.

Comments

@TusharBeniwalGH
Copy link

Seeing below exception when empty lambda function is run in visual studio 2022 with profile Mock Lambda Test Tool

Image

Profile

{
"profiles": {
"Mock Lambda Test Tool": {
"commandName": "Executable",
"commandLineArgs": "--port 5050",
"workingDirectory": ".\bin\$(Configuration)\net8.0",
"executablePath": "%USERPROFILE%\.dotnet\tools\dotnet-lambda-test-tool-8.0.exe"
}
}
}

Please assist.

@TusharBeniwalGH TusharBeniwalGH added the bug We can reproduce the issue and confirmed it is a bug. label Jan 21, 2025
@shruti0085
Copy link
Contributor

Hi @TusharBeniwalGH can you share details about the type of project you are attempting to launch the mock lambda test tool with? Is it a .NET 8 project?
Also could you please share your toolkit logs to help us investigate this further?

@shruti0085 shruti0085 added the needs-response Waiting on additional info and feedback. Will move to `closing-soon` in 30 days label Jan 22, 2025
@TusharBeniwalGH
Copy link
Author

Hi it is AWS Lambda Project (.NET Core C#) ,yes it is .NET 8 project

Image

below error snippet from event viewer

Image

@github-actions github-actions bot removed the needs-response Waiting on additional info and feedback. Will move to `closing-soon` in 30 days label Jan 23, 2025
@normj
Copy link
Member

normj commented Jan 24, 2025

Can you run the dotnet --list-sdks and dotnet --list-runtimes commands and let us know the output. Wondering if you have any preview SDK versions that is possibly causing a corruption of the lambda tool host that the .NET SDK generates when the tool is installed.

Can you also try uninstalling and reinstalling the test tool from the command line?

dotnet tool uninstall -g amazon.lambda.testtool-8.0
dotnet tool install -g amazon.lambda.testtool-8.0

@shruti0085 shruti0085 added the needs-response Waiting on additional info and feedback. Will move to `closing-soon` in 30 days label Jan 28, 2025
@TusharBeniwalGH
Copy link
Author

Image

Image

Also did below as asked but still same exception

dotnet tool uninstall -g amazon.lambda.testtool-8.0
dotnet tool install -g amazon.lambda.testtool-8.0

Image

@github-actions github-actions bot removed the needs-response Waiting on additional info and feedback. Will move to `closing-soon` in 30 days label Jan 29, 2025
@TusharBeniwalGH
Copy link
Author

any update please @normj @shruti0085 @redhotpenguin @hyandell , I am waiting since last week.

@TusharBeniwalGH
Copy link
Author

any update please

@normj
Copy link
Member

normj commented Feb 22, 2025

From my understanding the AreCETShadowStacksEnabled error can happen due to antivirus or security software. Or admin policies set on the local machine. Can describe your development environment. Is this Windows X64 or ARM? Are there any special Antivirus or security software running in the environment? Do you know if other .NET tools work in this environment. For example we have a new preview version of the tooling, can see if you has the same startup issue. To do that that test run the following commands.

dotnet tool install -g amazon.lambda.testtool --prerelease
dotnet lambda-test-tool start --lambda-emulator-port 5050

If that does fail with the same error can you run

dotnet lambda-test-tool info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug We can reproduce the issue and confirmed it is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants