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

runtime: TestSegv/SegvInCgo timeout on ios-arm64-corellium #59947

Open
bcmills opened this issue May 3, 2023 · 2 comments
Open

runtime: TestSegv/SegvInCgo timeout on ios-arm64-corellium #59947

bcmills opened this issue May 3, 2023 · 2 comments
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-iOS GOOS=ios
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented May 3, 2023

From https://storage.googleapis.com/go-build-log/721ce2a9/ios-arm64-corellium_2cc89f52.log (a SlowBot on CL 491835):

--- FAIL: TestSegv (0.00s)
    --- FAIL: TestSegv/SegvInCgo (146.88s)
        exec.go:200: test timed out while running command: /tmp/workdir-host-ios-arm64-corellium-ios/tmp/go-build2227660142/testprogcgo.exe SegvInCgo
        crash_cgo_test.go:647: /tmp/workdir-host-ios-arm64-corellium-ios/tmp/go-build2227660142/testprogcgo.exe SegvInCgo: exit status 2
        crash_cgo_test.go:648: SIGQUIT: quit
            PC=0x1b3002580 m=2 sigcode=0
            
            goroutine 0 [idle]:
            runtime.pthread_cond_timedwait_relative_np(0x130048800, 0x1300487c0, 0x16f556dd8)
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/sys_darwin.go:512 +0x20 fp=0x16f556da0 sp=0x16f556d70 pc=0x100a91f50
            runtime.semasleep(0xdf8475800)
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/os_darwin.go:60 +0xf4 fp=0x16f556e00 sp=0x16f556da0 pc=0x100a6f8d4
            runtime.notetsleep_internal(0x100c891c0, 0xdf8475800, 0x16f556e78?, 0x100a80794?)
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/lock_sema.go:232 +0x128 fp=0x16f556e40 sp=0x16f556e00 pc=0x100a47958
            runtime.notetsleep(0x13a0a117e45?, 0x130048480?)
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/lock_sema.go:283 +0x4c fp=0x16f556e80 sp=0x16f556e40 pc=0x100a47b1c
            runtime.sysmon()
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/proc.go:5444 +0x20c fp=0x16f556ee0 sp=0x16f556e80 pc=0x100a8080c
            runtime.mstart1()
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/proc.go:1508 +0x88 fp=0x16f556f10 sp=0x16f556ee0 pc=0x100a778c8
            runtime.mstart0()
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/proc.go:1465 +0x64 fp=0x16f556f40 sp=0x16f556f10 pc=0x100a77824
            runtime.mstart()
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/asm_arm64.s:128 +0x10 fp=0x16f556f50 sp=0x16f556f40 pc=0x100aa4db0
            
            goroutine 1 [syscall]:
            runtime.cgocall(0x100b475b8, 0x130042e68)
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/cgocall.go:157 +0x44 fp=0x130042e30 sp=0x130042df0 pc=0x100a40734
            main._Cfunc_pause()
            	_cgo_gotypes.go:446 +0x34 fp=0x130042e60 sp=0x130042e30 pc=0x100b3cc94
            main.SegvInCgo()
            	/private/var/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/testdata/testprogcgo/segv.go:54 +0x8c fp=0x130042e90 sp=0x130042e60 pc=0x100b42f6c
            main.main()
            	/private/var/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/testdata/testprogcgo/main.go:34 +0x11c fp=0x130042f30 sp=0x130042e90 pc=0x100b3c40c
            runtime.main()
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/proc.go:267 +0x2bc fp=0x130042fd0 sp=0x130042f30 pc=0x100a74cac
            runtime.goexit()
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x130042fd0 sp=0x130042fd0 pc=0x100aa7544

…

            goroutine 19 [syscall]:
            runtime.cgocall(0x100b47590, 0x13003ffb8)
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/cgocall.go:157 +0x44 fp=0x13003ff80 sp=0x13003ff40 pc=0x100a40734
            main._Cfunc_nop()
            	_cgo_gotypes.go:434 +0x30 fp=0x13003ffb0 sp=0x13003ff80 pc=0x100b3cc40
            main.SegvInCgo.func1()
            	/private/var/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/testdata/testprogcgo/segv.go:45 +0x24 fp=0x13003ffd0 sp=0x13003ffb0 pc=0x100b42fb4
            runtime.goexit()
            	/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/asm_arm64.s:1197 +0x4 fp=0x13003ffd0 sp=0x13003ffd0 pc=0x100aa7544
            created by main.SegvInCgo in goroutine 1
            	/private/var/tmp/workdir-host-ios-arm64-corellium-ios/go/src/runtime/testdata/testprogcgo/segv.go:42 +0x6c

(attn @golang/ios; CC @golang/runtime)

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label May 3, 2023
@bcmills bcmills added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-iOS GOOS=ios labels May 3, 2023
@bcmills bcmills added this to the Backlog milestone May 3, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/492075 mentions this issue: runtime: skip TestSegv/SegvInCgo earlier on ios

gopherbot pushed a commit that referenced this issue May 4, 2023
It appears to sometimes hang instead of crashing,
which can cause subsequent tests to time out.

For #59947.

Change-Id: Id4ac3c0cd5f7f345334d3e0ed3f48e40b9ff191c
Reviewed-on: https://go-review.googlesource.com/c/go/+/492075
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-iOS GOOS=ios
Projects
Development

No branches or pull requests

3 participants