Skip to content

[Android] .Net 10.0.102 random crash with SIGSEGV in push_object (sgen-tarjan-bridge.c:373:7) #123495

Closed

Description

@juwens

Description

* thread #1
  * frame #0: 0x0000007c70d3dfb8 libart.so`art_sigsegv_fault
    frame #1: 0x0000007c70d3db58 libart.so`art::FaultManager::HandleSigsegvFault(int, siginfo*, void*) - 18446743539240674471
    frame #2: 0x0000007f376a1c8c libsigchain.so`art::SignalChain::Handler(int, siginfo*, void*) + 372
    frame #3: 0x0000007f397d9860 [vdso]`__kernel_rt_sigreturn
    frame #4: 0x0000007bcc9632b8 libmonosgen-2.0.so`push_object [inlined] bridge_object_forward(obj=0x0000000000001000) at sgen-tarjan-bridge.c:373:7
    frame #5: 0x0000007bcc9632b8 libmonosgen-2.0.so`push_object(obj=0x0000000000001000) at sgen-tarjan-bridge.c:607:8
    frame #6: 0x0000007bcc961d50 libmonosgen-2.0.so`processing_stw_step [inlined] push_all(data=<unavailable>) at sgen-scan-object.h:59:3
    frame #7: 0x0000007bcc961d38 libmonosgen-2.0.so`processing_stw_step [inlined] dfs at sgen-tarjan-bridge.c:892:4
    frame #8: 0x0000007bcc961af4 libmonosgen-2.0.so`processing_stw_step at sgen-tarjan-bridge.c:1028:4
    frame #9: 0x0000007bcc95dba8 libmonosgen-2.0.so`sgen_bridge_processing_stw_step at sgen-bridge.c:224:2
    frame #10: 0x0000007bcc97bd5c libmonosgen-2.0.so`finish_gray_stack [inlined] sgen_client_bridge_processing_stw_step at sgen-client-mono.h:239:2
    frame #11: 0x0000007bcc97bd58 libmonosgen-2.0.so`finish_gray_stack(generation=0, ctx=ScanCopyContext @ 0x000001ba12e13d10) at sgen-gc.c:1191:3
    frame #12: 0x0000007bcc97ae88 libmonosgen-2.0.so`collect_nursery(reason="Nursery full", is_overflow=0) at sgen-gc.c:1930:2
    frame #13: 0x0000007bcc977370 libmonosgen-2.0.so`sgen_perform_collection [inlined] sgen_perform_collection_inner(requested_size=<unavailable>, generation_to_collect=<unavailable>, reason=<unavailable>, forced_serial=<unavailable>, stw=<unavailable>) at sgen-gc.c:2650:7
    frame #14: 0x0000007bcc97719c libmonosgen-2.0.so`sgen_perform_collection(requested_size=4096, generation_to_collect=0, reason="Nursery full", forced_serial=0, stw=1) at sgen-gc.c:2739:2
    frame #15: 0x0000007bcc977158 libmonosgen-2.0.so`sgen_ensure_free_space(size=4096, generation=-270389504) at sgen-gc.c:2616:2
    frame #16: 0x0000007bcc97398c libmonosgen-2.0.so`sgen_alloc_obj_nolock(vtable=0xb400007ce3c95a28, size=128) at sgen-alloc.c:279:6
    frame #17: 0x0000007bcc973e50 libmonosgen-2.0.so`sgen_alloc_obj(vtable=0xb400007ce3c95a28, size=128) at sgen-alloc.c:454:8
    frame #18: 0x0000007bcc965824 libmonosgen-2.0.so`mono_gc_alloc_obj(vtable=<unavailable>, size=<unavailable>) at sgen-mono.c:690:20
    frame #19: 546325651364 (wrapper managed-to-native) object:__icall_wrapper_mono_gc_alloc_obj (intptr,intptr) [{0xb400007ce35fa1b0} + 0x74]  (0x7f338bdf30 0x7f338be008) [0xb400007d3356ebb0 - RootDomain]
    frame #20: 546350011060 (wrapper alloc) object:AllocSmall (intptr,intptr) [{0xb400007ce35f9bd0} + 0xfc]  (0x7f34ff91b8 0x7f34ff92d0) [0xb400007d3356ebb0 - RootDomain]
    frame #21: 533639199944 Microsoft.AspNetCore.Components.WebView.WebViewManager:MessageReceived (System.Uri,string) [{0xb400007cebe23868} + 0x138]  (0x7c3f5ffb90 0x7c3f5ffd88) [0xb400007d3356ebb0 - RootDomain]
    frame #22: 533639199456 Microsoft.AspNetCore.Components.WebView.Maui.AndroidWebKitWebViewManager:<SetUpMessageChannel>b__16_0 (string) [{0xb400007cebe02760} + 0x48]  (0x7c3f5ffa98 0x7c3f5ffaec) [0xb400007d3356ebb0 - RootDomain]
    frame #23: 533639198848 Microsoft.AspNetCore.Components.WebView.Maui.AndroidWebKitWebViewManager/BlazorWebMessageCallback:OnMessage (Android.Webkit.WebMessagePort,Android.Webkit.WebMessage) [{0xb400007cebe02800} + 0x88]  (0x7c3f5ff7f8 0x7c3f5ff8cc) [0xb400007d3356ebb0 - RootDoma"..
    frame #24: 533639197956 Android.Webkit.WebMessagePort/WebMessageCallback:n_OnMessage_Landroid_webkit_WebMessagePort_Landroid_webkit_WebMessage_ (intptr,intptr,intptr,intptr) [{0xb400007cec0f6e58} + 0xec]  (0x7c3f5ff418 0x7c3f5ff5e0) [0xb400007d3356ebb0 - RootDomain]
    frame #25: 533639184376 (wrapper native-to-managed) Android.Webkit.WebMessagePort/WebMessageCallback:n_OnMessage_Landroid_webkit_WebMessagePort_Landroid_webkit_WebMessage_ (intptr,intptr,intptr,intptr) [{0xb400007cec0f6ee8} + 0x68]  (0x7c3f5fbf90 0x7c3f5fc034) [0xb400007d3356ebb"..

Reproduction Steps

At random places in our LOB app.

Expected behavior

App should not be crashed by runtime/sgen

Actual behavior

App app crashes due to error in runtime/sgen

Regression?

Not really. We've seen these crashes in .Net 8, and it was promised in the corresponding Tickets that the issues have been fixed with .Net 10.

Known Workarounds

none

Configuration

  • .Net 10.0.102
  • Android 16
  • ARM64
  • Pixel 7a

Other information

No response

Activity

  1. added
    untriaged
    on Jan 22, 2026
  2. added
    needs-area-label
    on Jan 22, 2026
  3. added and removed
    needs-area-label
    on Jan 22, 2026
  4. dotnet-policy-service commented on Jan 22, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  5. dotnet-policy-service commented on Jan 22, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @BrzVlad
    See info in area-owners.md if you want to be subscribed.

  6. BrzVlad commented on Jan 22, 2026

    @BrzVlad
    Member

    This crash doesn't really seem related to the other tarjan bridge crashes that you were referring. It rather looks like memory corruption inside managed objects. Did you try to see whether using the new bridge fixes these crashes ?

  7. MihuBot commented on Jan 22, 2026

    @MihuBot

    I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

  8. changed the title [-][Android] .Net 10.0.102 random crash with SIGSEGV in sgen[/-] [+][Android] .Net 10.0.102 random crash with SIGSEGV in sgen push_object[/+] on Jan 23, 2026
  9. changed the title [-][Android] .Net 10.0.102 random crash with SIGSEGV in sgen push_object[/-] [+][Android] .Net 10.0.102 random crash with SIGSEGV in push_object (sgen-tarjan-bridge.c:373:7)[/+] on Jan 23, 2026
  10. juwens commented on Jan 23, 2026

    @juwens
    Author

    Did you try to see whether using the new bridge fixes these crashes?

    How do i run the app with the "new bridge"?

  11. juwens commented on Jan 23, 2026

    @juwens
    Author

    another crash with a very similar similar stack in libmonosgen. But this crashed at is_opaque_object instead of bridge_object_forward.

    * thread #118
      * frame #0: 0x0000007c70d3dfb8 libart.so`art_sigsegv_fault
        frame #1: 0x0000007c70d3db58 libart.so`art::FaultManager::HandleSigsegvFault(int, siginfo*, void*) - 18446743539240674471
        frame #2: 0x0000007f376a1c8c libsigchain.so`art::SignalChain::Handler(int, siginfo*, void*) + 372
        frame #3: 0x0000007f397d9860 [vdso]`__kernel_rt_sigreturn
        frame #4: 0x0000007bcbf572e0 libmonosgen-2.0.so`push_object [inlined] is_opaque_object(obj=0x0000007b377015a0) at sgen-tarjan-bridge.c:594:11
        frame #5: 0x0000007bcbf572d8 libmonosgen-2.0.so`push_object(obj=0x0000007b377015a0) at sgen-tarjan-bridge.c:614:6
        frame #6: 0x0000007bcbf55f48 libmonosgen-2.0.so`processing_stw_step [inlined] push_all(data=<unavailable>) at sgen-scan-object.h:66:3
        frame #7: 0x0000007bcbf55f14 libmonosgen-2.0.so`processing_stw_step [inlined] dfs at sgen-tarjan-bridge.c:892:4
        frame #8: 0x0000007bcbf55af4 libmonosgen-2.0.so`processing_stw_step at sgen-tarjan-bridge.c:1028:4
        frame #9: 0x0000007bcbf51ba8 libmonosgen-2.0.so`sgen_bridge_processing_stw_step at sgen-bridge.c:224:2
        frame #10: 0x0000007bcbf6fd5c libmonosgen-2.0.so`finish_gray_stack [inlined] sgen_client_bridge_processing_stw_step at sgen-client-mono.h:239:2
        frame #11: 0x0000007bcbf6fd58 libmonosgen-2.0.so`finish_gray_stack(generation=0, ctx=ScanCopyContext @ 0x00006000016d5350) at sgen-gc.c:1191:3
        frame #12: 0x0000007bcbf6ee88 libmonosgen-2.0.so`collect_nursery(reason="Nursery full", is_overflow=0) at sgen-gc.c:1930:2
        frame #13: 0x0000007bcbf6b370 libmonosgen-2.0.so`sgen_perform_collection [inlined] sgen_perform_collection_inner(requested_size=<unavailable>, generation_to_collect=<unavailable>, reason=<unavailable>, forced_serial=<unavailable>, stw=<unavailable>) at sgen-gc.c:2650:7
        frame #14: 0x0000007bcbf6b19c libmonosgen-2.0.so`sgen_perform_collection(requested_size=4128, generation_to_collect=0, reason="Nursery full", forced_serial=0, stw=1) at sgen-gc.c:2739:2
        frame #15: 0x0000007bcbf6b158 libmonosgen-2.0.so`sgen_ensure_free_space(size=4128, generation=-134244832) at sgen-gc.c:2616:2
        frame #16: 0x0000007bcbf67960 libmonosgen-2.0.so`sgen_alloc_obj_nolock(vtable=0xb400007ce37a5860, size=4128) at sgen-alloc.c:258:6
        frame #17: 0x0000007bcbf5a14c libmonosgen-2.0.so`mono_gc_alloc_vector(vtable=0xb400007ce37a5860, size=4128, max_length=2048) at sgen-mono.c:1119:20
        frame #18: 0x7f2c570f74 (wrapper managed-to-native) object:__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr) [{0xb400007ce3616828} + 0x7c]  (0x7f2c570ef8 0x7f2c570fd8) [0xb400007d335e22f0 - RootDomain]
        frame #19: 0x7f34ffa0e8 (wrapper alloc) object:AllocVector (intptr,intptr) [{0xb400007ce3605200} + 0x168]  (0x7f34ff9f80 0x7f34ffa134) [0xb400007d335e22f0 - RootDomain]
        frame #20: 0x7f29f30fc4 System.GC:AllocateArray<char> (int,bool) [{0xb400007e23655580} + 0x64]  (0x7f29f30f60 0x7f29f30fd4) [0xb400007d335e22f0 - RootDomain]
        frame #21: 0x7f29f30ef4 System.GC:AllocateUninitializedArray<char> (int,bool) [{0xb400007e23652c70} + 0x34]  (0x7f29f30ec0 0x7f29f30f00) [0xb400007d335e22f0 - RootDomain]
        frame #22: 0x7f21be52d4 System.Text.StringBuilder:ExpandByABlock (int) [{0xb400007ce3d97ab0} + 0x13c]  (0x7f21be5198 0x7f21be5418) [0xb400007d335e22f0 - RootDomain]
        frame #23: 0x7f1c82faa0 System.Text.StringBuilder:AppendWithExpansion (char) [{0xb400007ce3e96810} + 0x38]  (0x7f1c82fa68 0x7f1c82fb2c) [0xb400007d335e22f0 - RootDomain]
        frame #24: 0x7f217ee35c System.Text.StringBuilder:Append (char) [{0xb400007ce38197f0} + 0xdc]  (0x7f217ee280 0x7f217ee38c) [0xb400007d335e22f0 - RootDomain]
        frame #25: 0x7c715787b8 System.Diagnostics.StackTrace:ToString (System.Diagnostics.StackTrace/TraceFormat,System.Text.StringBuilder) [{0xb400007cee568f88} + 0x4d0]  (0x7c715782e8 0x7c715791a8) [0xb400007d335e22f0 - RootDomain]
        frame #26: 0x7c71578220 System.Diagnostics.StackTrace:ToString (System.Diagnostics.StackTrace/TraceFormat) [{0xb400007cee568e20} + 0x60]  (0x7c715781c0 0x7c71578258) [0xb400007d335e22f0 - RootDomain]
        frame #27: 0x7c71578130 System.Exception:GetStackTrace () [{0xb400007ce3f07bd0} + 0x58]  (0x7c715780d8 0x7c7157813c) [0xb400007d335e22f0 - RootDomain]
        frame #28: 0x7c71578018 System.Exception:get_StackTrace () [{0xb400007ce35dd1d8} + 0x90]  (0x7c71577f88 0x7c71578044) [0xb400007d335e22f0 - RootDomain]
        frame #29: 0x7c7157a8c8 System.Exception:ToString () [{0xb400007ce35dd1b0} + 0x100]  (0x7c7157a7c8 0x7c7157ac38) [0xb400007d335e22f0 - RootDomain]
        frame #30: 0x7f1f08664c Serilog.Formatting.Display.MessageTemplateTextFormatter:Format (Serilog.Events.LogEvent,System.IO.TextWriter) [{0xb400007ce3f66dc8} + 0x694]  (0x7f1f085fb8 0x7f1f086ff8) [0xb400007d335e22f0 - RootDomain]
        frame #31: 0x7f21be9c20 Serilog.Sinks.File.FileSink:Serilog.Sinks.File.IFileSink.EmitOrOverflow (Serilog.Events.LogEvent) [{0xb400007da359cc18} + 0x178]  (0x7f21be9aa8 0x7f21be9d04) [0xb400007d335e22f0 - RootDomain]
        frame #32: 0x7f1f171170 Serilog.Sinks.File.RollingFileSink:Emit (Serilog.Events.LogEvent) [{0xb400007da359c540} + 0x170]  (0x7f1f171000 0x7f1f171230) [0xb400007d335e22f0 - RootDomain]
        frame #33: 0x7f2161666c Serilog.Core.Sinks.RestrictedSink:Emit (Serilog.Events.LogEvent) [{0xb400007ce3aaa9d0} + 0xf4]  (0x7f21616578 0x7f216166a8) [0xb400007d335e22f0 - RootDomain]
        frame #34: 0x7f21bf8498 Serilog.Core.Sinks.SafeAggregateSink:Emit (Serilog.Events.LogEvent) [{0xb400007ce3bc2a18} + 0xf0]  (0x7f21bf83a8 0x7f21bf854c) [0xb400007d335e22f0 - RootDomain]
        frame #35: 0x7f21bf5cc0 Serilog.Core.Logger:Dispatch (Serilog.Events.LogEvent) [{0xb400007ce3d372a0} + 0x140]  (0x7f21bf5b80 0x7f21bf5cd8) [0xb400007d335e22f0 - RootDomain]
        frame #36: 0x7f21bf5430 Serilog.Core.Logger:Write (Serilog.Events.LogEvent) [{0xb400007ce3bdea80} + 0x68]  (0x7f21bf53c8 0x7f21bf544c) [0xb400007d335e22f0 - RootDomain]
        frame #37: 0x7f21beda88 Serilog.Core.Sinks.SecondaryLoggerSink:Emit (Serilog.Events.LogEvent) [{0xb400007ce3bc26c0} + 0xa8]  (0x7f21bed9e0 0x7f21bedac4) [0xb400007d335e22f0 - RootDomain]
        frame #38: 0x7f21bf8498 Serilog.Core.Sinks.SafeAggregateSink:Emit (Serilog.Events.LogEvent) [{0xb400007ce3bc2a18} + 0xf0]  (0x7f21bf83a8 0x7f21bf854c) [0xb400007d335e22f0 - RootDomain]
        frame #39: 0x7f21611678 Serilog.Core.Sinks.FilteringSink:Emit (Serilog.Events.LogEvent) [{0xb400007ce3bc2e28} + 0x148]  (0x7f21611530 0x7f21611724) [0xb400007d335e22f0 - RootDomain]
        frame #40: 0x7f21bf5cc0 Serilog.Core.Logger:Dispatch (Serilog.Events.LogEvent) [{0xb400007ce3d372a0} + 0x140]  (0x7f21bf5b80 0x7f21bf5cd8) [0xb400007d335e22f0 - RootDomain]
        frame #41: 0x7f21bf6330 Serilog.Core.Logger:Serilog.Core.ILogEventSink.Emit (Serilog.Events.LogEvent) [{0xb400007ce3bc4168} + 0x58]  (0x7f21bf62d8 0x7f21bf6360) [0xb400007d335e22f0 - RootDomain]
        frame #42: 0x7f21bf5cc0 Serilog.Core.Logger:Dispatch (Serilog.Events.LogEvent) [{0xb400007ce3d372a0} + 0x140]  (0x7f21bf5b80 0x7f21bf5cd8) [0xb400007d335e22f0 - RootDomain]
        frame #43: 0x7f21bf6330 Serilog.Core.Logger:Serilog.Core.ILogEventSink.Emit (Serilog.Events.LogEvent) [{0xb400007ce3bc4168} + 0x58]  (0x7f21bf62d8 0x7f21bf6360) [0xb400007d335e22f0 - RootDomain]
        frame #44: 0x7f21bf5cc0 Serilog.Core.Logger:Dispatch (Serilog.Events.LogEvent) [{0xb400007ce3d372a0} + 0x140]  (0x7f21bf5b80 0x7f21bf5cd8) [0xb400007d335e22f0 - RootDomain]
        frame #45: 0x7f21bf5430 Serilog.Core.Logger:Write (Serilog.Events.LogEvent) [{0xb400007ce3bdea80} + 0x68]  (0x7f21bf53c8 0x7f21bf544c) [0xb400007d335e22f0 - RootDomain]
        frame #46: 0x7f0b0de768 Serilog.Extensions.Logging.SerilogLogger:Log<Microsoft.Extensions.Logging.LoggerMessage/LogValues`1<string>> (Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,Microsoft.Extensions.Logging.LoggerMessage/LogValues`1<string>,System."..
        frame #47: 0x7f0b0ddcf8 Microsoft.Extensions.Logging.Logger:<Log>g__LoggerLog|14_0<Microsoft.Extensions.Logging.LoggerMessage/LogValues`1<string>> (Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,Microsoft.Extensions.Logging.ILogger,System.Exception,Sy"..
        frame #48: 0x7f0b0ddaec Microsoft.Extensions.Logging.Logger:Log<Microsoft.Extensions.Logging.LoggerMessage/LogValues`1<string>> (Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,Microsoft.Extensions.Logging.LoggerMessage/LogValues`1<string>,System.Excep"..
        frame #49: 0x7f0b0dd4dc Microsoft.Extensions.Logging.LoggerMessage/<>c__DisplayClass10_0`1<T1_REF>:<Define>g__Log|0 (Microsoft.Extensions.Logging.ILogger,T1_REF,System.Exception) [{0xb400007e23c146c0} + 0x154]  (0x7f0b0dd388 0x7f0b0dd4f8) [0xb400007d335e22f0 - RootDomain]
        frame #50: 0x7f0b0dd2fc Microsoft.Extensions.Logging.LoggerMessage/<>c__DisplayClass10_0`1<T1_REF>:<Define>b__1 (Microsoft.Extensions.Logging.ILogger,T1_REF,System.Exception) [{0xb400007e23c143f0} + 0x94]  (0x7f0b0dd268 0x7f0b0dd318) [0xb400007d335e22f0 - RootDomain]
    
  12. juwens commented on Jan 26, 2026

    @juwens
    Author

    I tried the "new" Bridge with MONO_GC_PARAMS=bridge-implementation=new.
    The App is about 5-6 times slower than before.
    A navigation which took 1sec before, takes 6s with "new" bridge.

  13. BrzVlad commented on Feb 2, 2026

    @BrzVlad
    Member

    This looks like a different manifestation of same issue around GC. Closing in favor of #123537

  14. removed
    untriaged
    on Feb 2, 2026
  15. locked and limited conversation to collaborators on Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions