Bicep crash in System.Text.Json.Serialization.Converters.ObjectDefaultConverter
bugNeeds: Triage :mag:
**Bicep version**
FROM mcr.microsoft.com/azure-cli@sha256:925b5871029fe16b82650c8298201e5dd91ac8122c7af1d150b57edc8c9f316a
**Describe the bug**
```
sonde-bootstrap | Generating ECDSA P-256 self-signed certificate
sonde-bootstrap | Starting sonde-azure-bootstrap for device-code auth and Bicep deployment
sonde-bootstrap | Pulling bootstrap image...
sonde-bootstrap | To sign in, use a web browser to open the page https://login.microsoft.com/device and enter the code FC943M6Y6 to authenticate.
sonde-bootstrap | Detected device code: FC943M6Y6
sonde-bootstrap | __SONDE_AZURE_DEPLOYMENT_START__
sonde-bootstrap | WARNING: The configuration value of bicep.use_binary_from_path has been set to 'false'.
sonde-bootstrap | ERROR: Fatal error.
sonde-bootstrap | System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
sonde-bootstrap | at DynamicClass..ctor()
sonde-bootstrap | at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].OnTryRead(System.Text.Json.Utf8JsonReader ByRef, System.Type, System.Text.Json.JsonSerializerOptions, System.Text.Json.ReadStack ByRef, System.__Canon ByRef)
sonde-bootstrap | at System.Text.Json.Serialization.JsonConverter`1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TryRead(System.Text.Json.Utf8JsonReader ByRef, System.Type, System.Text.Json.JsonSerializerOptions, System.Text.Json.ReadStack ByRef, System.__Canon ByRef, Boolean ByRef)
sonde-bootstrap | at System.Text.Json.Serialization.JsonConverter`1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ReadCore(System.Text.Json.Utf8JsonReader ByRef, System.__Canon ByRef, System.Text.Json.JsonSerializerOptions, System.Text.Json.ReadStack ByRef)
sonde-bootstrap | at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Deserialize(System.Text.Json.Utf8JsonReader ByRef, System.Text.Json.ReadStack ByRef)
sonde-bootstrap | at System.Text.Json.JsonSerializer.ReadFromSpan[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.ReadOnlySpan`1<Byte>, System.Text.Json.Serialization.Metadata.JsonTypeInfo`1<System.__Canon>, System.Nullable`1<Int32>)
sonde-bootstrap | at System.Text.Json.JsonSerializer.Deserialize[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Text.Json.JsonElement, System.Text.Json.JsonSerializerOptions)
sonde-bootstrap | at Bicep.Core.Extensions.JsonElementExtensions.ToNonNullObject[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Text.Json.JsonElement, System.Text.Json.JsonSerializerOptions)
sonde-bootstrap | at Bicep.Core.Configuration.CloudConfiguration.Bind(System.Text.Json.JsonElement)
sonde-bootstrap | at Bicep.Core.Configuration.RootConfiguration.Bind(System.Text.Json.JsonElement, Bicep.IO.Abstraction.IOUri)
sonde-bootstrap | at Bicep.Core.Configuration.ConfigurationManager.LoadConfiguration(Bicep.IO.Abstraction.IFileHandle)
sonde-bootstrap | at System.Collections.Concurrent.ConcurrentDictionary`2[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetOrAdd(System.__Canon, System.Func`2<System.__Canon,System.__Canon>)
sonde-bootstrap | at Bicep.Core.Configuration.ConfigurationManager.GetConfiguration(Bicep.IO.Abstraction.IOUri)
sonde-bootstrap | at Bicep.Core.SourceGraph.BicepSourceFile.get_Configuration()
sonde-bootstrap | at Bicep.Core.SourceGraph.SourceFileGroupingBuilder.PopulateRecursive(Bicep.Core.SourceGraph.BicepSourceFile, System.Collections.Frozen.FrozenSet`1<Bicep.Core.SourceGraph.ISourceFile>)
sonde-bootstrap | at Bicep.Core.SourceGraph.SourceFileGroupingBuilder.PopulateRecursive(Bicep.IO.Abstraction.IOUri, Bicep.Core.Registry.ArtifactReference, System.Collections.Frozen.FrozenSet`1<Bicep.Core.SourceGraph.ISourceFile>)
sonde-bootstrap | at Bicep.Core.SourceGraph.SourceFileGroupingBuilder.Build(Bicep.IO.Abstraction.IOUri, System.Collections.Frozen.FrozenSet`1<Bicep.Core.SourceGraph.ISourceFile>)
sonde-bootstrap | at Bicep.Core.SourceGraph.SourceFileGroupingBuilder.Build(Bicep.IO.Abstraction.IFileExplorer, Bicep.Core.Registry.IModuleDispatcher, Bicep.Core.SourceGraph.IActiveSourceFileLookup, Bicep.Core.SourceGraph.ISourceFileFactory, Bicep.IO.Abstraction.IOUri, Boolean)
sonde-bootstrap | at Bicep.Core.BicepCompiler.CreateCompilationWithoutRestore(Bicep.IO.Abstraction.IOUri, Bicep.Core.SourceGraph.IActiveSourceFileLookup, Boolean)
sonde-bootstrap | at Bicep.Core.BicepCompiler+<CreateCompilation>d__11.MoveNext()
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Core.BicepCompiler+<CreateCompilation>d__11, Azure.Bicep.Core, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<CreateCompilation>d__11 ByRef)
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Core.BicepCompiler+<CreateCompilation>d__11, Azure.Bicep.Core, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<CreateCompilation>d__11 ByRef)
sonde-bootstrap | at Bicep.Core.BicepCompiler.CreateCompilation(Bicep.IO.Abstraction.IOUri, Bicep.Core.SourceGraph.IActiveSourceFileLookup, Boolean, Boolean)
sonde-bootstrap | at Bicep.Cli.Commands.BuildCommand+<Compile>d__7.MoveNext()
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Commands.BuildCommand+<Compile>d__7, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<Compile>d__7 ByRef)
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Commands.BuildCommand+<Compile>d__7, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<Compile>d__7 ByRef)
sonde-bootstrap | at Bicep.Cli.Commands.BuildCommand.Compile(Bicep.IO.Abstraction.IOUri, Bicep.IO.Abstraction.IOUri, Boolean, System.Nullable`1<Bicep.Cli.Arguments.DiagnosticsFormat>, Boolean)
sonde-bootstrap | at Bicep.Cli.Commands.BuildCommand+<RunAsync>d__6.MoveNext()
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Commands.BuildCommand+<RunAsync>d__6, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__6 ByRef)
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Commands.BuildCommand+<RunAsync>d__6, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__6 ByRef)
sonde-bootstrap | at Bicep.Cli.Commands.BuildCommand.RunAsync(Bicep.Cli.Arguments.BuildArguments)
sonde-bootstrap | at Bicep.Cli.Program+<RunAsync>d__4.MoveNext()
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+<RunAsync>d__4, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__4 ByRef)
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+<RunAsync>d__4, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<RunAsync>d__4 ByRef)
sonde-bootstrap | at Bicep.Cli.Program.RunAsync(System.String[], System.Threading.CancellationToken)
sonde-bootstrap | at Bicep.Cli.Program+<>c__DisplayClass3_0+<<Main>b__0>d.MoveNext()
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+<>c__DisplayClass3_0+<<Main>b__0>d, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<<Main>b__0>d ByRef)
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+<>c__DisplayClass3_0+<<Main>b__0>d, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<<Main>b__0>d ByRef)
sonde-bootstrap | at Bicep.Cli.Program+<>c__DisplayClass3_0.<Main>b__0(System.Threading.CancellationToken)
sonde-bootstrap | at Bicep.Cli.Program+<RunWithCancellationAsync>d__6.MoveNext()
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+<RunWithCancellationAsync>d__6, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<RunWithCancellationAsync>d__6 ByRef)
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+<RunWithCancellationAsync>d__6, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<RunWithCancellationAsync>d__6 ByRef)
sonde-bootstrap | at Bicep.Cli.Program.RunWithCancellationAsync(System.Func`2<System.Threading.CancellationToken,System.Threading.Tasks.Task`1<Int32>>)
sonde-bootstrap | at Bicep.Cli.Program+<Main>d__3.MoveNext()
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Bicep.Cli.Program+<Main>d__3, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<Main>d__3 ByRef)
sonde-bootstrap | at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Int32, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Start[[Bicep.Cli.Program+<Main>d__3, bicep, Version=0.43.0.0, Culture=neutral, PublicKeyToken=null]](<Main>d__3 ByRef)
sonde-bootstrap | at Bicep.Cli.Program.Main(System.String[])
sonde-bootstrap | at Bicep.Cli.Program.<Main>(System.String[])
sonde-bootstrap | qemu: uncaught target signal 6 (Aborted) - core dumped
sonde-bootstrap | failed to wait for bootstrap container: Docker container wait error:
sonde-bootstrap exited with code 1
```
**To Reproduce**
Run bootstrap workflow for https://github.com/Alan-Jowett/sonde on an ARM64 device as part of a docker compose deployment.
**Additional context**
This repro requires specialized hardware. Let me know what logs or additional info you might need.
关闭于 2026-06-10 5 条评论