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: frequent TestSegv failures on linux-mips64le-mengzhuo #50605

Closed
bcmills opened this issue Jan 14, 2022 · 5 comments
Closed

runtime: frequent TestSegv failures on linux-mips64le-mengzhuo #50605

bcmills opened this issue Jan 14, 2022 · 5 comments
Labels
arch-mips FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Linux
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Jan 14, 2022

(Pulled out from #49182; CC @prattmic @cherrymui.)

runtime.TestSegv is still failing periodically on the linux-mips64le-mengzhuo builder (CC @mengzhuo).

A skip was added on 386 for #50504, but that skip does not apply to mips64le. It also isn't obvious to me why this doesn't show up on the other MIPS builders (especially linux-mips64le-rtrk).

--- FAIL: TestSegv (0.00s)
    --- FAIL: TestSegv/SegvInCgo (0.01s)
        testenv.go:361: [/tmp/workdir-host-linux-mipsle-mengzhuo/tmp/go-build3370841287/testprogcgo.exe SegvInCgo] exit status: exit status 2
        crash_cgo_test.go:616: SIGSEGV: segmentation violation
            PC=0xfff089cc6c m=3 sigcode=0
            
            goroutine 0 [idle]:
            runtime: unknown pc 0xfff089cc6c
            stack: frame={sp:0xffc905e518, fp:0x0} stack=[0xffc885ecc0,0xffc905e8c0)
            0x000000ffc905e418:  0x000000ffbb7fb1d0  0x000000fff08b8000 
            0x000000ffc905e428:  0x000000fff08c0030  0x000000fff0892d04 
            0x000000ffc905e438:  0x0000000000000004  0x000000fff08b8000 
            0x000000ffc905e448:  0x000000ffbb7fb290  0x000000fff09115d8 
            0x000000ffc905e458:  0x0000000000000007  0x0000000000804000 
            0x000000ffc905e468:  0x000000ffbaff8000  0x000000fff08b8000 
            0x000000ffc905e478:  0x000000013d1283b0  0x0000000120154530 
            0x000000ffc905e488:  0x000000ffc905e6f8  0x0000000000000000 
            0x000000ffc905e498:  0x0000000000000400  0x010000ffc9b18700 
            0x000000ffc905e4a8:  0x0000300000000000  0x000000ffc9d13fff 
            0x000000ffc905e4b8:  0x0000000000000400  0x000000012001fd50 <runtime.(*mcentral).grow+0x0000000000000180> 
            0x000000ffc905e4c8:  0x000000ffc9b18600  0x0000000000000100 
            0x000000ffc905e4d8:  0x000000ffc9d13fff  0x98ba71403ce9ad00 
            0x000000ffc905e4e8:  0x000000ffc9b18700  0x00000000000f4240 
            0x000000ffc905e4f8:  0x000000013d1283b0  0x0000000001406f40 
            0x000000ffc905e508:  0x000000ffc905e6f8  0x000000013d1283b0 
            0x000000ffc905e518: <0x0000000120154530  0x000000ffc905e6b8 
            0x000000ffc905e528:  0x000000000000000b  0x000000012028bf90 
            0x000000ffc905e538:  0x00000000000f4240  0x000000012015440c 
            0x000000ffc905e548:  0x000000ffc9b18600  0x0000300000000000 
            0x000000ffc905e558:  0x000000ffc9d13fff  0x000000ffc905e6b8 
            0x000000ffc905e568:  0x000000013d1283b0  0x0000000000000030 
            0x000000ffc905e578:  0x0000000000000000  0x0000000000000000 
            0x000000ffc905e588:  0x000000c0000821a0  0x000000ffc905e518 
            0x000000ffc905e598:  0x0000000120260000  0x98ba71403ce9ad00 
            0x000000ffc905e5a8:  0x000000012028bf90  0x0000000120154664 
            0x000000ffc905e5b8:  0x0000000000000000  0x0000000000000000 
            0x000000ffc905e5c8:  0x0000000000000001  0x000000012001ece0 <runtime.(*mcache).refill+0x0000000000000210> 
            0x000000ffc905e5d8:  0x0000000000000000  0x000000012001ed28 <runtime.(*mcache).refill+0x0000000000000258> 
            0x000000ffc905e5e8:  0x00000001202ad4c8  0x00000001200122bc <runtime.(*mcache).nextFree+0x00000000000000b4> 
            0x000000ffc905e5f8:  0x00000001200122d4 <runtime.(*mcache).nextFree+0x00000000000000cc>  0x0000000000002000 
            0x000000ffc905e608:  0x0000000000000178  0x0000000000000020 
            runtime: unknown pc 0xfff089cc6c
            stack: frame={sp:0xffc905e518, fp:0x0} stack=[0xffc885ecc0,0xffc905e8c0)
            0x000000ffc905e418:  0x000000ffbb7fb1d0  0x000000fff08b8000 
            0x000000ffc905e428:  0x000000fff08c0030  0x000000fff0892d04 
            0x000000ffc905e438:  0x0000000000000004  0x000000fff08b8000 
            0x000000ffc905e448:  0x000000ffbb7fb290  0x000000fff09115d8 
            0x000000ffc905e458:  0x0000000000000007  0x0000000000804000 
            0x000000ffc905e468:  0x000000ffbaff8000  0x000000fff08b8000 
            0x000000ffc905e478:  0x000000013d1283b0  0x0000000120154530 
            0x000000ffc905e488:  0x000000ffc905e6f8  0x0000000000000000 
            0x000000ffc905e498:  0x0000000000000400  0x010000ffc9b18700 
            0x000000ffc905e4a8:  0x0000300000000000  0x000000ffc9d13fff 
            0x000000ffc905e4b8:  0x0000000000000400  0x000000012001fd50 <runtime.(*mcentral).grow+0x0000000000000180> 
            0x000000ffc905e4c8:  0x000000ffc9b18600  0x0000000000000100 
            0x000000ffc905e4d8:  0x000000ffc9d13fff  0x98ba71403ce9ad00 
            0x000000ffc905e4e8:  0x000000ffc9b18700  0x00000000000f4240 
            0x000000ffc905e4f8:  0x000000013d1283b0  0x0000000001406f40 
            0x000000ffc905e508:  0x000000ffc905e6f8  0x000000013d1283b0 
            0x000000ffc905e518: <0x0000000120154530  0x000000ffc905e6b8 
            0x000000ffc905e528:  0x000000000000000b  0x000000012028bf90 
            0x000000ffc905e538:  0x00000000000f4240  0x000000012015440c 
            0x000000ffc905e548:  0x000000ffc9b18600  0x0000300000000000 
            0x000000ffc905e558:  0x000000ffc9d13fff  0x000000ffc905e6b8 
            0x000000ffc905e568:  0x000000013d1283b0  0x0000000000000030 
            0x000000ffc905e578:  0x0000000000000000  0x0000000000000000 
            0x000000ffc905e588:  0x000000c0000821a0  0x000000ffc905e518 
            0x000000ffc905e598:  0x0000000120260000  0x98ba71403ce9ad00 
            0x000000ffc905e5a8:  0x000000012028bf90  0x0000000120154664 
            0x000000ffc905e5b8:  0x0000000000000000  0x0000000000000000 
            0x000000ffc905e5c8:  0x0000000000000001  0x000000012001ece0 <runtime.(*mcache).refill+0x0000000000000210> 
            0x000000ffc905e5d8:  0x0000000000000000  0x000000012001ed28 <runtime.(*mcache).refill+0x0000000000000258> 
            0x000000ffc905e5e8:  0x00000001202ad4c8  0x00000001200122bc <runtime.(*mcache).nextFree+0x00000000000000b4> 
            0x000000ffc905e5f8:  0x00000001200122d4 <runtime.(*mcache).nextFree+0x00000000000000cc>  0x0000000000002000 
            0x000000ffc905e608:  0x0000000000000178  0x0000000000000020 
            
            goroutine 1 [sleep]:
            time.Sleep(0x3b9aca00)
            	/tmp/workdir-host-linux-mipsle-mengzhuo/go/src/runtime/time.go:194 +0x1a4
            main.SegvInCgo()
            	/tmp/workdir-host-linux-mipsle-mengzhuo/go/src/runtime/testdata/testprogcgo/segv.go:56 +0x118
            main.main()
            	/tmp/workdir-host-linux-mipsle-mengzhuo/go/src/runtime/testdata/testprogcgo/main.go:34 +0x200
            
            goroutine 6 [runnable]:
            main._Cfunc_nop()
            	_cgo_gotypes.go:356 +0x54
            main.SegvInCgo.func1()
            	/tmp/workdir-host-linux-mipsle-mengzhuo/go/src/runtime/testdata/testprogcgo/segv.go:47 +0x44
            created by main.SegvInCgo
            	/tmp/workdir-host-linux-mipsle-mengzhuo/go/src/runtime/testdata/testprogcgo/segv.go:44 +0xbc
            
            r0   0x0	r1   0xc00008c000
            r2   0x0	r3   0x1
            r4   0x3	r5   0xffc905e5b8
            r6   0x0	r7   0x0
            r8   0xfff0910a58	r9   0xffbb8028d0
            r10  0xffc9d14000	r11  0x4000000
            r12  0x0	r13  0x38
            r14  0x0	r15  0x0
            r16  0x0	r17  0x13d1283b0
            r18  0x30	r19  0x0
            r20  0x0	r21  0xc0000821a0
            r22  0xffc905e518	r23  0x120260000
            r24  0x15f697930316c9	r25  0xfff089cc20
            r26  0x10	r27  0x0
            r28  0xfff08c0030	r29  0xffc905e518
            r30  0xc000002ea0	r31  0x120154664
            pc   0xfff089cc6c	link 0x120154664
            lo   0x0	hi   0x0
            
        crash_cgo_test.go:640: unexpectedly saw "runtime: " in output
FAIL
FAIL	runtime	41.325s

greplogs --dashboard -md -l -e '(?ms)\Alinux-mips.*FAIL: TestSegv'

2022-01-13T23:35:37-e550c30/linux-mips64le-mengzhuo
2021-12-04T04:41:31-cd5f2cf/linux-mips64le-mengzhuo
2021-11-24T21:11:45-b77f5f9/linux-mips64le-mengzhuo
2021-11-17T04:55:12-1d004fa/linux-mips64le-mengzhuo
2021-11-12T23:07:01-c8d6ee1/linux-mips64le-mengzhuo
2021-11-04T14:54:46-00d6d20/linux-mips64le-mengzhuo

@bcmills bcmills added arch-mips NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Linux labels Jan 14, 2022
@bcmills bcmills added this to the Backlog milestone Jan 14, 2022
@bcmills bcmills modified the milestones: Backlog, Go1.18 Jan 14, 2022
@gopherbot
Copy link

Change https://golang.org/cl/378554 mentions this issue: runtime: skip known TestSegv failure mode on linux-mips64le-mengzhuo

@bcmills
Copy link
Contributor Author

bcmills commented Jan 14, 2022

(If we add a skip for this test, this issue can be moved to the Backlog milestone.)

@bcmills bcmills modified the milestones: Go1.18, Backlog Jan 14, 2022
gopherbot pushed a commit that referenced this issue Jan 14, 2022
Also adjust other skips to actually call t.Skip, so that the test
correctly shows as skipped instead of passing.

For #50605

Change-Id: Ied482f231a879224c5a92e2c47a6b21c1593a7da
Reviewed-on: https://go-review.googlesource.com/c/go/+/378554
Trust: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
@mengzhuo
Copy link
Contributor

mengzhuo commented Jan 17, 2022

(If we add a skip for this test, this issue can be moved to the Backlog milestone.)

I'll take a look.
@bcmills I think it's OK to move this issue to backlog.

@bcmills
Copy link
Contributor Author

bcmills commented Feb 7, 2022

A similar failure also occurred on linux-amd64-clang and on netbsd-arm-bsiegert, so either there are multiple underlying causes or this failure mode is platform-independent. Consolidating issues on the theory that it's the latter.

@bcmills
Copy link
Contributor Author

bcmills commented Feb 7, 2022

Duplicate of #50979

@bcmills bcmills marked this as a duplicate of #50979 Feb 7, 2022
@bcmills bcmills closed this as completed Feb 7, 2022
jproberts pushed a commit to jproberts/go that referenced this issue Jun 21, 2022
Also adjust other skips to actually call t.Skip, so that the test
correctly shows as skipped instead of passing.

For golang#50605

Change-Id: Ied482f231a879224c5a92e2c47a6b21c1593a7da
Reviewed-on: https://go-review.googlesource.com/c/go/+/378554
Trust: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
@golang golang locked and limited conversation to collaborators Feb 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-mips FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Linux
Projects
None yet
Development

No branches or pull requests

3 participants