-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[WINARM][Regression] Fail to run the command – & “C:\Program Files (x86)\dotnet\dotnet.exe" test --framework net7.0 --diag:loga.txt #71098
Comments
Looks like an MSBuild issue based on output: |
@benvillalobos can you check this since it's ARM related? It looks like the property function is blowing up? |
I have the same error with SDK |
This is high pri on my radar. Looks like it should be an easy repro |
Note to self: Maybe we can improve logging here. |
Notes from investigatingThis is a heck of a bug. There's something going on with that x86 dotnet install. I could repro this issue, and discovered a fatal error in the process. Both issues only repro in that x86 dotnet install. Here's a stack trace I got from the repro:
I think there's a larger issue here WRT x86 dotnet on arm64 machines. I haven't tested this on a non-arm64 machine yet. You can easily repro it (only on x86) with an empty project:
Here's the fatal error:
I captured a log (and removed env vars), it should be attached. It ends abruptly and there's no obvious sign at first glance at what's going on. Will get back to this tomorrow |
@benvillalobos drive-by question: have you tried with a 6.0.400-preview SDK that has the latest MSBuild bits in it? some of that looks like it might be a runtime problem. |
Scratch that. (had to re-include the .net sdk into the project). The fatal error does not come up in 6.0.400-preview.22316.6 and does come up in 7.0.100-preview.5.22307.18 (global jsoning the project between versions) 6.0.400-preview.22316.6 MSBuild Version: 1c045cf
7.0.100-preview.5.22307.18 MSBuild Version: 1c045cf
6.0.400 successfully repro's this issue, so I can continue the investigation tomorrow. The 7.0.100 looks to have a bigger issue in there. |
Currently discussing this internally, but it looks like an issue with the runtime. |
Transferring to runtime for triage. |
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. |
As the stack suggests, it's executing ref-emitted code here. The regex is either NonTransformItemMetadataPattern or ItemMetadataPattern. So main possibilities are - a bug introduced into the compiled regex engine or a bug in the runtime. Either way, that's showing up only when in 32 bit x86 running on Windows Arm64. @benvillalobos since you have a machine set up that repros this, is it possible to dump (out of the debugger) both the regex pattern, regex options, and the string it's running on? Then paste those into a Hello World app to see whether just running that pattern against that string triggers it. If so -- we've substantially narrowed this down. |
This issue also repro on dotnet-sdk-7.0.100-preview.7.22358.13. PS C:\tmp\mstest> & "C:\Program Files (x86)\dotnet\dotnet.exe" test --framework net7.0 --arch x64 --diag:logz2.txt |
Does this only repro with x86 emulation on arm64? There was a recent fix which was made recently for that. |
This issue still repro on today's dotnet-sdk-7.0.100-rc.1.22377.7. Does this only repro with x86 emulation on arm64? |
If this is emulation only then its most likely a dupe of #71856. |
A similar issue is closed: #71856, Please validate that this is now fixed. |
This issue still repro on today's build dotnet-sdk-7.0.100-rc.1.22403.8. Here is the repro VM: 172.20.30.177 Please refer to the project & dump file from: \mlangfs1\public\v-hozha1\20220804-71098\ PS C:\tmp\mstest> &"C:\Program Files (x86)\dotnet\dotnet.exe" test --framework net7.0 --diag:log1.txt |
the fix should be in runtime 7.0.0-rc.1.22403.8 and sdk 7.0.100-rc.1.22404.5 |
Closing since this should be fixed. |
Note:
1.It’s regression issue. It doesn’t repro on dotnet-sdk-7.0.100-preview.5.22225.1-win-arm64.
2. Repro VM: vsengarmsfx041
Builds info:
dotnet-runtime-3.1.26-win-x64
dotnet-sdk-6.0.400-preview.22314.17-win-x64
dotnet-sdk-7.0.100-preview.6.22314.18-win-arm64
dotnet-sdk-7.0.100-preview.6.22314.18-win-x64
dotnet-sdk-7.0.100-preview.6.22314.18-win-x86
Build Link:
https://aka.ms/dotnet/7.0.1xx/daily/dotnet-sdk-win-arm64.exe
https://aka.ms/dotnet/7.0.1xx/daily/dotnet-sdk-win-x64.exe
https://aka.ms/dotnet/7.0.1xx/daily/dotnet-sdk-win-x86.exe
https://aka.ms/dotnet/6.0.4xx/daily/dotnet-sdk-win-x64.exe
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-3.1.26-windows-x64-installer
Steps:
Execute the following commands by Powershell:
Update the project file in in this way
Expected Result:
The command should be run normally as following:
Actual Results:
Fail to run the command – & “C:\Program Files (x86)\dotnet\dotnet.exe" test --framework net7.0 --diag:logna.txt
--Log:
The text was updated successfully, but these errors were encountered: