Skip to content

SIGILL gvisor.dev.gvisor.atomicbitops.orUint32 atomicbitops_arm64.s #263

Backlog

Description

@ignoramous

Android 8 (Samsung):

Crashed: Thread: SIGILL  0x0000007676b68784
#00 pc 0xae5784 libgojni.so (gvisor.dev/gvisor/pkg/atomicbitops.orUint32 [atomicbitops_arm64.s:39]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#01 pc 0xb6f7f0 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*receiver).handleRcvdSegment [rcv.go:489]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#02 pc 0xb5e4f4 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*Endpoint).sendEmptyRaw [connect.go:1043]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#03 pc 0xb4a2bc libgojni.so (gvisor.dev/gvisor/pkg/tcpip/stack.(*PacketBuffer).DecRef.func1 [packet_buffer.go:211]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#04 pc 0xb75d14 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*sender).sendEmptySegment [snd.go:1897]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#05 pc 0xb78f40 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*Endpoint).resetKeepaliveTimer.deferwrap1 [keepalive_mutex.go:48]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#06 pc 0xb5f19c libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*Endpoint).handleSegmentLocked [connect.go:1368]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#07 pc 0xb4dd68 libgojni.so (gvisor.dev/gvisor/pkg/sleep.(*Sleeper).nextWaker [sleep_unsafe.go:228]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#08 pc 0xb71eb8 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*segmentQueue).dequeue [segment_queue.go:86]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#09 pc 0xb71ea0 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*segmentQueue).dequeue [segment_queue.go:83]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#10 pc 0xb5ef94 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*Endpoint).handleSegmentsLocked [connect.go:1281]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#11 pc 0xb78edc libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*Endpoint).sendRaw.deferwrap1 [connect.go:1056]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#12 pc 0xb6134c libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.handleConnected [dispatcher.go:218]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#13 pc 0xb60be4 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*epQueue).dequeue [ep_queue_mutex.go:48]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#14 pc 0xb61da8 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*processor).start [dispatcher.go:346]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#15 pc 0xb61cf8 libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*processor).start [dispatcher.go:335]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#16 pc 0xb7b0ec libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*segment).DecRef.func1 [segment.go:202]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#17 pc 0xb793ec libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*dispatcher).startLocked.gowrap1 [dispatcher.go:436]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#18 pc 0xb7930c libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.handleListen.deferwrap1 [dispatcher.go:290]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#19 pc 0xb7934c libgojni.so (gvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*processor).start.deferwrap2 [dispatcher.go:318]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
#20 pc 0x9caf60 libgojni.so (runtime.goexit [asm_arm64.s:1039]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)

Activity

  1. ignoramous commented on Dec 2, 2026

    @ignoramous
    ContributorAuthor

    Summary from Gemini 4:

    Issue Summary

    • Exception Type: SIGILL (Illegal Instruction)
    • Exception Address: 0x0000007676b68784
    • Crashing File: atomicbitops_arm64.s (Assembly source)
    • Crashing Symbol/Function: gvisor.dev/gvisor/pkg/atomicbitops.orUint32
    • Device Scope: Exclusively reported on Samsung devices.
    • OS Version Context: Android 8 (Oreo).

    A SIGILL crash indicates that the CPU attempted to execute an invalid or unsupported machine instruction. In this case, the crash occurs during an atomic bitwise OR operation (orUint32) written in ARM64 assembly (atomicbitops_arm64.s), likely used within a Go-compiled binary (as indicated by the gvisor.dev package path) embedded in the Android application.

    Potential Causes

    1. Unsupported ARMv8/ARMv8.x-A Instructions: The assembly code in atomicbitops_arm64.s might utilize newer ARM system instructions (such as Large System Extensions/LSE atomic instructions like LDSET, LDOCLR, etc.) that are not supported by the specific system-on-chip (SoC) used in the affected Samsung devices running Android 8.
    2. Kernel/Hypervisor Restrictions: Android 8 on certain Samsung chipsets (especially Exynos variants) may restrict specific low-level system operations or assembly instructions, triggering a SIGILL signal when user-space code attempts to bypass standard kernel APIs.
    3. Go Runtime Compatibility Issues: The gvisor package relies heavily on low-level memory and thread manipulation. Older Go toolchains or specific versions of gvisor compiled for ARM64 might emit instructions incompatible with older Android 8 kernels/architectures.
  2. ignoramous commented on Dec 5, 2026

    @ignoramous
    ContributorAuthor

    SIGILL in websocket.Read?

    Crashed: Thread: SIGILL  0x0000007702f959f0
    #00 pc 0xd949f0 libgojni.so (github.com/coder/websocket/internal/util.(*ReaderFunc).Read [<autogenerated>:1]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #01 pc 0x98c9c4 libgojni.so (runtime.main [proc.go:8121]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #02 pc 0x99044c libgojni.so (runtime.allocm [proc.go:2349]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #03 pc 0x99578c libgojni.so (runtime.reentersyscall [proc.go:4691]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #04 pc 0x990408 libgojni.so (runtime.allocm [proc.go:2342]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #05 pc 0x9c3c3c libgojni.so (runtime.entersyscall [proc.go:4782]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #06 pc 0x99126c libgojni.so (runtime.newm1 [proc.go:2936]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #07 pc 0x9c0728 libgojni.so (runtime.cgocall [cgocall.go:198]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #08 pc 0x9c3c2c libgojni.so (runtime.entersyscall [proc.go:4781]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #09 pc 0x9c06e0 libgojni.so (runtime.cgocall [cgocall.go:167]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #10 pc 0x9c06e0 libgojni.so (runtime.cgocall [cgocall.go:167]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #11 pc 0x127abc4 libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #12 pc 0x12ed57c libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #13 pc 0x9caf60 libgojni.so (runtime.goexit [asm_arm64.s:1039]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #14 pc 0x127abbc libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #15 pc 0x1279d3c libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #16 pc 0x1279d3c libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #17 pc 0x128837c libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #18 pc 0x127ba5c libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #19 pc 0x12ed57c libgojni.so (_cgo_1ebd2d8f1b1c_Cfunc___android_log_write [cgo-gcc-prolog:63]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
    #20 pc 0x9bb7dc libgojni.so (runtime.xRegRestore.func1 [preempt_xreg.go:123]) (BuildId: 11505b78c61af2acf4a75d6d6056acc236460522)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions