-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
Milestone
Description
Description
Asp.net singleFile apps throw the following exception:
[STDERR] Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libSystem.Native' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSystem.Native: cannot open shared object file: No such file or directory
[STDERR] at System.Runtime.InteropServices.Marshal.AllocBSTRByteLen(UInt32 length) in System.Private.CoreLib.dll:token 0x600463f+0x1d
[STDERR] at System.StubHelpers.AnsiBSTRMarshaler.ConvertToNative(Int32 flags, String strManaged) in System.Private.CoreLib.dll:token 0x6003357+0x2f
[STDERR] at Interop.Globalization.GetSortHandle(String localeName, IntPtr& sortHandle) in System.Private.CoreLib.dll:token 0x600001c+0x25
[STDERR] at System.Globalization.CompareInfo.SortHandleCache.GetCachedSortHandle(String sortName) in System.Private.CoreLib.dll:token 0x600204f+0x1f
[STDERR] at System.Globalization.CompareInfo.IcuInitSortHandle() in System.Private.CoreLib.dll:token 0x6002033+0x77
[STDERR] at System.Globalization.CultureInfo.get_CompareInfo() in System.Private.CoreLib.dll:token 0x6002106+0xa
[STDERR] at System.String.StartsWith(String value, StringComparison comparisonType) in System.Private.CoreLib.dll:token 0x60006d1+0x0
[STDERR] at System.String.StartsWith(String value) in System.Private.CoreLib.dll:token 0x60006d0+0xe
[STDERR] at Microsoft.Extensions.Configuration.CommandLine.CommandLineConfigurationProvider.Load() in Microsoft.Extensions.Configuration.CommandLine.dll:token 0x600001c+0x27
[STDERR] at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers) in Microsoft.Extensions.Configuration.dll:token 0x600003f+0x52
[STDERR] at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() in Microsoft.Extensions.Configuration.dll:token 0x6000028+0x3e
[STDERR] at Benchmarks.Program.Main(String[] args) in Benchmarks.dll:token 0x6000032+0xfa
Configuration
1. dotnet new webapi
2. dotnet publish -r linux-x64 /p:PublishSingleFile=true
Regression?
Yes, looks related to this change: #54006
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status