Skip to content

cmd/cgo/internal/testsanitizers: TestLSAN/lsan2 failures #73697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gopherbot opened this issue May 13, 2025 · 2 comments
Open

cmd/cgo/internal/testsanitizers: TestLSAN/lsan2 failures #73697

gopherbot opened this issue May 13, 2025 · 2 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "cmd/cgo/internal/testsanitizers" && test == "TestLSAN/lsan2"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestLSAN/lsan2
=== PAUSE TestLSAN/lsan2
=== CONT  TestLSAN/lsan2
    lsan_test.go:44: /home/swarming/.swarming/w/ir/x/t/TestLSANlsan21255423491/001/lsan2 exited with exit status 1
        
        =================================================================
        ==2366409==ERROR: LeakSanitizer: detected memory leaks
        
        Direct leak of 24 byte(s) in 1 object(s) allocated from:
            #0 0x7ffff75d5704 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
            #1 0x100853a8 in x_cgo_thread_start /_/GOROOT/src/runtime/cgo/gcc_util.c:15
            #2 0x10073838 in runtime.asmcgocall /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_ppc64x.s:719
        
        SUMMARY: AddressSanitizer: 24 byte(s) leaked in 1 allocation(s).
--- FAIL: TestLSAN/lsan2 (1.41s)

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/cgo/internal/testsanitizers" && test == "TestLSAN/lsan2"
2025-05-13 16:21 gotip-linux-ppc64le_power10 go@a632009c cmd/cgo/internal/testsanitizers.TestLSAN/lsan2 (log)
=== RUN   TestLSAN/lsan2
=== PAUSE TestLSAN/lsan2
=== CONT  TestLSAN/lsan2
    lsan_test.go:44: /home/swarming/.swarming/w/ir/x/t/TestLSANlsan21255423491/001/lsan2 exited with exit status 1
        
        =================================================================
        ==2366409==ERROR: LeakSanitizer: detected memory leaks
        
        Direct leak of 24 byte(s) in 1 object(s) allocated from:
            #0 0x7ffff75d5704 in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
            #1 0x100853a8 in x_cgo_thread_start /_/GOROOT/src/runtime/cgo/gcc_util.c:15
            #2 0x10073838 in runtime.asmcgocall /home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_ppc64x.s:719
        
        SUMMARY: AddressSanitizer: 24 byte(s) leaked in 1 allocation(s).
--- FAIL: TestLSAN/lsan2 (1.41s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label May 13, 2025
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/cgo/internal/testsanitizers" && test == "TestLSAN/lsan2"
2025-05-16 04:37 gotip-linux-amd64-longtest go@4b5a64f4 cmd/cgo/internal/testsanitizers.TestLSAN/lsan2 (log)
=== RUN   TestLSAN/lsan2
=== PAUSE TestLSAN/lsan2
=== CONT  TestLSAN/lsan2
    lsan_test.go:44: /home/swarming/.swarming/w/ir/x/t/TestLSANlsan2165035726/001/lsan2 exited with exit status 1
        
        =================================================================
        ==784837==ERROR: LeakSanitizer: detected memory leaks
        
        Direct leak of 24 byte(s) in 1 object(s) allocated from:
            #0 0x7b38daf58e8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
            #1 0x47ad18 in x_cgo_thread_start /_/GOROOT/src/runtime/cgo/gcc_util.c:15
            #2 0x46a87c in runtime.asmcgocall ?:949
            #3 0x43c4b0 in runtime.newm1 (/home/swarming/.swarming/w/ir/x/t/TestLSANlsan2165035726/001/lsan2+0x43c4b0)
            #4 0x43c3a4 in runtime.newm (/home/swarming/.swarming/w/ir/x/t/TestLSANlsan2165035726/001/lsan2+0x43c3a4)
            #5 0x43c9b8 in runtime.startm (/home/swarming/.swarming/w/ir/x/t/TestLSANlsan2165035726/001/lsan2+0x43c9b8)
            #6 0x464d8b in runtime.wakep (/home/swarming/.swarming/w/ir/x/t/TestLSANlsan2165035726/001/lsan2+0x464d8b)
            #7 0x43fc52 in runtime.goschedImpl (/home/swarming/.swarming/w/ir/x/t/TestLSANlsan2165035726/001/lsan2+0x43fc52)
            #8 0x44e910 in runtime.newstack (/home/swarming/.swarming/w/ir/x/t/TestLSANlsan2165035726/001/lsan2+0x44e910)
            #9 0x468cfc in runtime.morestack ?:620
        
        SUMMARY: AddressSanitizer: 24 byte(s) leaked in 1 allocation(s).
--- FAIL: TestLSAN/lsan2 (3.64s)

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: No status
Development

No branches or pull requests

1 participant