Go version

go1.25-devel_6c3b5a2798

Output of go env in your module/workspace:

AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='arm64'
GOARM64='v8.0'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4235166786=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='arm64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/root/Code/src/github.com/golang/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/root/Code/src/github.com/golang/go/pkg/tool/linux_arm64'
GOVCS=''
GOVERSION='go1.25-devel_6c3b5a2798 Thu Jul 3 18:43:56 2025 -0700'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

While preparing the upgrade of Fedora 43 to Go 1.25, TestLSAN/lsan1, TestLSAN/lsan2, and TestLSAN/lsan3 failed in aarch64 only. I'm aware that there are several flake issues, but I can reproduce this always.

What did you see happen?

The tests only fail in aarch64. I'm able to reproduce it always, even outside the Fedora CI. (Link to build)

--- FAIL: TestLSAN (30.26s)
    --- FAIL: TestLSAN/lsan2 (2.08s)
        lsan_test.go:44: /tmp/TestLSANlsan2724864547/001/lsan2 exited with exit status 1
            Tracer caught signal 11: addr=0xfbff3e1d0000 pc=0xffff8982c69c sp=0xfbff3a58bb70
            ==156218==LeakSanitizer has encountered a fatal error.
            ==156218==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
            ==156218==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
    --- FAIL: TestLSAN/lsan3 (2.14s)
        lsan_test.go:44: /tmp/TestLSANlsan33679270241/001/lsan3 exited with exit status 1
            Tracer caught signal 11: addr=0xfbff541d0000 pc=0xffff9f81c69c sp=0xfbff4f272b70
            ==156281==LeakSanitizer has encountered a fatal error.
            ==156281==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
            ==156281==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
    --- FAIL: TestLSAN/lsan1 (2.15s)
        lsan_test.go:49: /tmp/TestLSANlsan1566431062/001/lsan1
            exit status 1
            Tracer caught signal 11: addr=0xfbff380d7000 pc=0xffff83b9c69c sp=0xfbff3478bb70
            ==156255==LeakSanitizer has encountered a fatal error.
            ==156255==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
            ==156255==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
        lsan_test.go:64: output does not contain expected leak error "detected memory leaks"
FAIL
FAIL    cmd/cgo/internal/testsanitizers 37.964s

After enabling export LSAN_OPTIONS="verbosity=1:log_threads=1" I got the attached file output

verbose_ouput.log

What did you expect to see?

No failures.

Comment From: gabyhelp

Related Issues

Related Discussions

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: ianlancetaylor

What version of GCC are you using? That is, what is the output of gcc --version? Thanks.

Comment From: alexsaezm

What version of GCC are you using? That is, what is the output of gcc --version? Thanks.

gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)

Comment From: ianlancetaylor

CC @golang/arm

Comment From: alexsaezm

For the record, I just tried it in a different version of Fedora (Fedora 42) with the same gcc version, and it doesn't fail.

gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)

The only package that I see that might be different is glibc.

Comment From: ianlancetaylor

It's worth trying to recreate the problem on the failing system outside of the test harness by running something like

CGO_CFLAGS="-fsanitize=address" CGO_LDFLAGS="-fsanitize=address" go build -o /tmp/lsan $GOROOT/src/cmd/cgo/internal/testsanitizers/testdata/lsan2.go

and then run /tmp/lsan to see if it fails in the same way.

Comment From: alexsaezm

It's worth trying to recreate the problem on the failing system outside of the test harness by running something like

CGO_CFLAGS="-fsanitize=address" CGO_LDFLAGS="-fsanitize=address" go build -o /tmp/lsan $GOROOT/src/cmd/cgo/internal/testsanitizers/testdata/lsan2.go

and then run /tmp/lsan to see if it fails in the same way.

Interesting, I was unable to reproduce it in this way:

$ LSAN_OPTIONS=verbosity=1:log_threads=1 /tmp/lsan
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_printf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_sprintf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_snprintf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_fprintf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_vprintf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_vsprintf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_vsnprintf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__isoc99_vfprintf'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__b64_ntop'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept '__b64_pton'
==42810==Registered root region at 0xffff92e01310 of size 80
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92e01310 of size 80
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'pthread_mutexattr_getrobust_np'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdrmem_create'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdrstdio_create'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_short'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_u_short'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_int'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_u_int'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_long'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_u_long'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_hyper'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_u_hyper'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_longlong_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_u_longlong_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_int8_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_uint8_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_int16_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_uint16_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_int32_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_uint32_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_int64_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_uint64_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_quad_t'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_u_quad_t'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_bool'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_enum'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_char'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_u_char'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_float'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_double'
==42810==Registered root region at 0xffff92c00b70 of size 48
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92c00b70 of size 48
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_bytes'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_string'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdrrec_create'
==42810==Registered root region at 0xffff93400f40 of size 64
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff93400f40 of size 64
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: failed to intercept 'xdr_destroy'
==42810==Registered root region at 0xffff92e01310 of size 80
==42810==Registered root region at 0xffff930007a0 of size 32
==42810==Unregistered root region at 0xffff92e01310 of size 80
==42810==Unregistered root region at 0xffff930007a0 of size 32
==42810==AddressSanitizer: libc interceptors initialized
|| `[0x201000000000, 0xffffffffffff]` || HighMem    ||
|| `[0x041200000000, 0x200fffffffff]` || HighShadow ||
|| `[0x001200000000, 0x0411ffffffff]` || ShadowGap  ||
|| `[0x001000000000, 0x0011ffffffff]` || LowShadow  ||
|| `[0x000000000000, 0x000fffffffff]` || LowMem     ||
MemToShadow(shadow): 0x001200000000 0x00123fffffff 0x009240000000 0x0411ffffffff
redzone=16
max_redzone=2048
quarantine_size_mb=256M
thread_local_quarantine_size_kb=1024K
malloc_context_size=30
SHADOW_SCALE: 3
SHADOW_GRANULARITY: 8
SHADOW_OFFSET: 0x001000000000
==42810==Installed the sigaction for signal 11
==42810==Installed the sigaction for signal 7
==42810==Installed the sigaction for signal 8
==42810==T0: FakeStack created: 0xfbff916f7000 -- 0xfbff92200000 stack_size_log: 20; mmapped 11300K, noreserve=0 
==42810==T0: stack [0xffffe705f000,0xffffe785f000) size 0x800000; local=0xffffe785d0bc
==42810==AddressSanitizer Init done
==42810==T2: FakeStack created: 0xfbff47ec7000 -- 0xfbff489d0000 stack_size_log: 20; mmapped 11300K, noreserve=0 
==42810==T1: FakeStack created: 0xfbff473be000 -- 0xfbff47ec7000 stack_size_log: 20; mmapped 11300K, noreserve=0 
==42810==T2: stack [0xfbff491f0000,0xfbff499ef100) size 0x7ff100; local=0xfbff499ee77c
==42810==T1: stack [0xfbff49a00000,0xfbff4a1ff100) size 0x7ff100; local=0xfbff4a1fe77c
==42810==T3: FakeStack created: 0xfbff468b5000 -- 0xfbff473be000 stack_size_log: 20; mmapped 11300K, noreserve=0 
==42810==T3: stack [0xfbff489e0000,0xfbff491df100) size 0x7ff100; local=0xfbff491de77c

Comment From: ianlancetaylor

Thanks. That doesn't seem to have reproduced the problem, though—I don't see a "LSAN has encountered a fatal error" message. Not sure why.

Comment From: alexsaezm

Thanks. That doesn't seem to have reproduced the problem, though—I don't see a "LSAN has encountered a fatal error" message. Not sure why.

It looks like the hardware doesn't support these features, as cat /proc/cpuinfo | grep -E -o "bti|pac" doesn't return anything, but the tests don't detect it. And when comparing the objdump output of lsan1 with and without the -fsanitize=address flags, I can see way more NOOP in the one that was built with the flag set. My understanding is that those instructions are not supported, and everything falls apart when running them inside the test suite.

On a side note, when running all the testsanitizer tests, there are way more errors that don't happen on other architectures. I attached a log just in case I missed something: testsanitizers.log

Comment From: s4uliu5

Just my two cents on this matter.

I have two almost identical Manjaro Linux systems. On the first one (not updated) with:

  • glibc 2.41+r48+g5cb575ca9a3d-1
  • gcc 15.1.1+r7+gf36ec88aa85a-1
  • linux615 6.15.7-1

All tests passed and I don’t see this issue. But on the second, recently updated system with:

  • glibc 2.42+r3+gbc13db739377-1
  • gcc 15.1.1+r500+gb1b8d8ce3eea-1
  • linux615 6.15.9-2

I’m encountering this issue with the same test failures.

Comment From: dbro86

I have the same problem with the same test errors. However, in Archlinux and AMD64 architecture.

--- FAIL: TestLSAN (13.40s)
    --- FAIL: TestLSAN/lsan2 (1.47s)
        lsan_test.go:44: /tmp/TestLSANlsan22210495688/001/lsan2 exited with exit status 1
            Tracer caught signal 11: addr=0x7b3b446f5000 pc=0x7f3b903626e0 sp=0x7b3b420e0b40
            ==94254==LeakSanitizer has encountered a fatal error.
            ==94254==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
            ==94254==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
    --- FAIL: TestLSAN/lsan3 (1.47s)
        lsan_test.go:44: /tmp/TestLSANlsan31294745825/001/lsan3 exited with exit status 1
            Tracer caught signal 11: addr=0x7bd9e9cf5000 pc=0x7fda359626e0 sp=0x7bd9e5bd5b40
            ==94239==LeakSanitizer has encountered a fatal error.
            ==94239==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
            ==94239==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
    --- FAIL: TestLSAN/lsan1 (1.71s)
        lsan_test.go:49: /tmp/TestLSANlsan12947010294/001/lsan1
            exit status 1
            Tracer caught signal 11: addr=0x7bdab59fe000 pc=0x7fdb00b626e0 sp=0x7bdab15d6b40
            ==94471==LeakSanitizer has encountered a fatal error.
            ==94471==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
            ==94471==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
        lsan_test.go:64: output does not contain expected leak error "detected memory leaks"
FAIL
FAIL    cmd/cgo/internal/testsanitizers 18.004s

  • glibc: 2.42+r17+gd7274d718e6f-1
  • gcc: 15.2.1+r22+gc4e96a094636-1
  • linux: 6.16.3.arch1-1

Comment From: dbro86

So, please update the title and remove the 'linux/aarch64' part