Repository navigation
Closed
Description
Error
Most likely related to #4879
Extracting the https://ci.dot.net/public/Sdk/11.0.100-preview.3.26128.104/dotnet-sdk-11.0.100-preview.3.26128.104-osx-x64.tar.gz results in multiple broken symlinks in the extracted output.
Interestingly the symlinks are broken differently depending on which app I use to extract !?!
Using Archive Utility or tar (symlinks look fine but don't point to correct file path):
$ find . -type l ! -exec test -e {} \; -print | xargs ls -l
lrwxr-xr-x 1 alexander staff 128 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.Abstractions.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.Abstractions.dll
lrwxr-xr-x 1 alexander staff 130 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.FileExtensions.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.FileExtensions.dll
lrwxr-xr-x 1 alexander staff 120 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.Json.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.Json.dll
lrwxr-xr-x 1 alexander staff 127 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.UserSecrets.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.UserSecrets.dll
lrwxr-xr-x 1 alexander staff 115 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.dll
lrwxr-xr-x 1 alexander staff 128 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.FileProviders.Abstractions.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.FileProviders.Abstractions.dll
lrwxr-xr-x 1 alexander staff 124 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.FileProviders.Physical.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.FileProviders.Physical.dll
lrwxr-xr-x 1 alexander staff 104 Feb 28 15:30 ./tools/net11.0/any/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.exe -> ../../../../../../dotnet-format/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.exe
lrwxr-xr-x 1 alexander staff 104 Feb 28 15:30 ./tools/net11.0/any/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts.dll -> ../../../../../../dotnet-format/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts.dll
lrwxr-xr-x 1 alexander staff 105 Feb 28 15:30 ./tools/net11.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll -> ../../../../../../dotnet-format/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll
lrwxr-xr-x 1 alexander staff 102 Feb 28 15:30 ./tools/net11.0/any/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll -> ../../../../../dotnet-format/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll
lrwxr-xr-x 1 alexander staff 106 Feb 28 15:30 ./tools/net11.0/any/runtimes/win/lib/net11.0/System.Diagnostics.EventLog.Messages.dll -> ../../../../../../../../../dotnet-format/runtimes/win/lib/net11.0/System.Diagnostics.EventLog.Messages.dllUsing The Unarchiver.app (note that the file names are truncated):
$ find . -type l ! -exec test -e {} \; -print | xargs ls -l
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.Abstractions.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Co
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.FileExtensions.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Co
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.Json.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Co
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.UserSecrets.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Co
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Configuration.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Co
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.FileProviders.Abstractions.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Fi
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.FileProviders.Physical.dll -> ../../../../../dotnet-user-jwts/11.0.0-preview.3.26128.104/tools/net11.0/any/Microsoft.Extensions.Fi
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./tools/net11.0/any/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.exe -> ../../../../../../dotnet-format/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./tools/net11.0/any/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts.dll -> ../../../../../../dotnet-format/BuildHost-net472/Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./tools/net11.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll -> ../../../../../../dotnet-format/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHos
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./tools/net11.0/any/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll -> ../../../../../dotnet-format/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.d
lrwxr-xr-x@ 1 alexander staff 100 Feb 28 15:30 ./tools/net11.0/any/runtimes/win/lib/net11.0/System.Diagnostics.EventLog.Messages.dll -> ../../../../../../../../../dotnet-format/runtimes/win/lib/net11.0/System.Diagnostics.EventLog.MessagLinks
No response
Root Cause
unknown
Blocking
- This issue is blocking
Affected Releases
- .NET 10
- .NET 10 (SDK band build)
- .NET 11
Reacted by Eric StJohn
Activity
ericstj commentedon Mar 6, 2026
Might be caused by dotnet/runtime#124753 cc @rzikm
ericstj commentedon Mar 6, 2026
Copilot analysis:
MichaelSimons commentedon Mar 6, 2026
First inspection indicates this is an issue w/signing. I inspected two real-signed builds and they both have this issue while 3 non-signed builds appear correct (inspected builds before and after the last re-bootstrap).
ericstj commentedon Mar 6, 2026
More copilot analysis -- does this pass muster @MichaelSimons
Your signing theory sounds reasonable too. It could be a problem repacking the tar messing up the symlinks. Not sure anyone's tested that scenario. Last year we had some round-tripping bugs there and folks tested them by pulling that roundtripping logic out of the signtool and just running it on a tar (without the signing). It made it easier to repro locally and fix - IIRC we had bugs both in the repacking tool and Tar itself.
MichaelSimons commentedon Mar 6, 2026
I don't think this is it. This copy logic can make some assumptions under the context of copying the SDK layout - e.g. when copying relative symbol links, the target existing within the copy scope.
I still suspect signing - If you look at the tarball you will see there are extra top level folders - e.g. sdk sub-folders where promoted to the root of the tarball. These top level folders contain broken links because the folders are not in the correct nested location.
ericstj commentedon Mar 6, 2026
You can try something like this to see if it repros:
dotnet/src/arcade/src/Microsoft.DotNet.SignTool/src/ZipData.cs
Lines 522 to 547 in fbcca4f
MichaelSimons commentedon Mar 6, 2026
I was able to reproduce the issue in my linux environment by taking a non-signed osx-x64.tar.gz and unpacking/repacking it with the signtool logic in a standalone app. I then ran the tool on the linux-x64.tar.gz and it didn't reproduce. I asked copilot to analyze the difference in the osx and linux tarballs
MichaelSimons commentedon Mar 6, 2026
@ericstj - does this analysis pass muster to you?
MichaelSimons commentedon Mar 9, 2026
I logged dotnet/runtime#125332 with a simple repro from a Mac generated tarball with long symbolic link paths.
ericstj commentedon Mar 9, 2026
Yeah, makes sense. @rzikm we'll need to get this fixed ASAP. @MichaelSimons I don't suppose you have a read on whether this is a regression or not, since this is the first time this is being used in the product?
MichaelSimons commentedon Mar 9, 2026
It is not a recent regression. This will reproduce on both 9 and 10. I didn't try any other older versions.
ericstj commentedon Mar 9, 2026
Looks like there might be a workaround - set the path in extended attributes. @MichaelSimons not sure if a workaround might help things here. Looks like @rzikm was fast with the fix in 11.
yinjiehe01 commentedon Mar 10, 2026
This issue does not repro on SDK 11.0.100-preview.2.26159.112 and still repro on SDK 11.0.100-preview.3.26157.103
MichaelSimons commentedon Mar 17, 2026
Verified this is fixed on the tip of main - 11.0.100-preview.3.26164.102