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/race: invalid spdelta tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy #13568

Closed
bradfitz opened this issue Dec 10, 2015 · 3 comments
Closed

Comments

@bradfitz
Copy link
Contributor

Weird trybot failure in tsan:

https://storage.googleapis.com/go-build-log/78af9465/linux-amd64-race_91e55cda.log

--- FAIL: TestStackBarrierProfiling (4.60s)
    pprof_test.go:342: subprocess failed with signal: segmentation fault:
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5304 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1
        invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5304 0x0 -1
FAIL
FAIL    runtime/pprof   13.799s
2015/12/10 18:38:36 Failed: exit status 1

/cc @aclements

@bradfitz bradfitz added this to the Go1.6 milestone Dec 10, 2015
@rsc rsc assigned rsc and unassigned dvyukov Dec 11, 2015
@rsc
Copy link
Contributor

rsc commented Dec 11, 2015

I think that's the stack unwinder trying to unwind through TSAN during a profiling signal, which it should not. Looks like the linker is not writing down "I don't have information" correctly, or else the runtime is not recognizing it.

@dvyukov
Copy link
Member

dvyukov commented Dec 11, 2015

I was able to reproduce it once in 1000 runs, using stress ./pprof.test -test.short:

--- FAIL: TestStackBarrierProfiling (1.16s)
pprof_test.go:342: subprocess failed with signal: segmentation fault (core dumped):
invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x59e850 0x59e8e7 0x0 -1
invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x59e850 0x59e8e4 0x0 -1
FAIL

It took more than an hour.

@gopherbot
Copy link

CL https://golang.org/cl/18322 mentions this issue.

@rsc rsc modified the milestones: Go1.7Early, Go1.6 Feb 10, 2016
prataprc added a commit to bnclabs/gofast that referenced this issue Jul 4, 2016
@golang golang locked and limited conversation to collaborators May 6, 2017
@rsc rsc removed their assignment Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants