Skip to content
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

cmd/cgo/internal/testcshared: Test(Unexported|Exported)Symbols failures with SIGSEGV on android/arm64 #64823

Open
gopherbot opened this issue Dec 20, 2023 · 5 comments
Labels
arch-arm64 compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Android
Milestone

Comments

@gopherbot
Copy link

gopherbot commented Dec 20, 2023

#!watchflakes
post <- goos == "android" && pkg == "cmd/cgo/internal/testcshared" && test ~ `Test(Exported|Unexported)Symbols` && `signal: segmentation fault`

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestExportedSymbols (17.76s)
    cshared_test.go:368: run: [/data/data/com.termux/files/home/clangwrap -fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/go-build1491619758=/tmp/go-build -gno-record-gcc-switches -pie -I pkg/android_arm64 -I /data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/testcshared4062456105 -o testp0 main0.c libgo.a]
    cshared_test.go:372: run: [./testp0]
    cshared_test.go:372: command failed: [./testp0]
        signal: segmentation fault

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 Dec 20, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/cgo/internal/testcshared" && test == "TestExportedSymbols"
2023-11-22 16:20 android-arm64-corellium go@d4430f69 cmd/cgo/internal/testcshared.TestExportedSymbols (log)
--- FAIL: TestExportedSymbols (17.76s)
    cshared_test.go:368: run: [/data/data/com.termux/files/home/clangwrap -fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/go-build1491619758=/tmp/go-build -gno-record-gcc-switches -pie -I pkg/android_arm64 -I /data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/testcshared4062456105 -o testp0 main0.c libgo.a]
    cshared_test.go:372: run: [./testp0]
    cshared_test.go:372: command failed: [./testp0]
        signal: segmentation fault

watchflakes

@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/cgo/internal/testcshared" && test == "TestExportedSymbols"
2023-11-22 03:55 android-arm64-corellium go@b06f59e7 cmd/cgo/internal/testcshared.TestExportedSymbols (log)
--- FAIL: TestExportedSymbols (14.39s)
    cshared_test.go:368: run: [/data/data/com.termux/files/home/clangwrap -fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/go-build3114826600=/tmp/go-build -gno-record-gcc-switches -pie -I pkg/android_arm64 -I /data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/testcshared345054431 -o testp0 main0.c libgo.a]
    cshared_test.go:372: run: [./testp0]
    cshared_test.go:372: command failed: [./testp0]
        signal: segmentation fault

watchflakes

@bcmills bcmills changed the title cmd/cgo/internal/testcshared: TestExportedSymbols failures cmd/cgo/internal/testcshared: Test(Unexported|Exported)Symbols failures with SIGSEGV on android/arm64 Jan 2, 2024
@bcmills bcmills added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jan 2, 2024
@gopherbot

This comment was marked as resolved.

@bcmills bcmills added this to the Backlog milestone Jan 2, 2024
@bcmills
Copy link
Contributor

bcmills commented Jan 2, 2024

(attn @golang/android)

@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "android" && pkg == "cmd/cgo/internal/testcshared" && test ~ `Test(Exported|Unexported)Symbols` && `signal: segmentation fault`
2023-11-21 22:23 android-arm64-corellium go@ff05cdbd cmd/cgo/internal/testcshared.TestUnexportedSymbols (log)
--- FAIL: TestUnexportedSymbols (1.57s)
    cshared_test.go:524: run: [go build -buildmode=c-shared -installsuffix testcshared -o libgo2.a ./libgo2]
    cshared_test.go:537: run: [/data/data/com.termux/files/home/clangwrap -fPIC -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/data/data/com.termux/files/home/tmpdir/workdir-host-android-arm64-corellium-android/tmp/go-build1025158417=/tmp/go-build -gno-record-gcc-switches -pie -I pkg/android_arm64 -o testp2 main2.c -Wl,--no-as-needed libgo2.a]
    cshared_test.go:542: run: [./testp2]
    cshared_test.go:542: command failed: [./testp2]
        signal: segmentation fault

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-arm64 compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Android
Projects
Status: Active
Development

No branches or pull requests

3 participants