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

os: fatal error: attempt to execute system stack code on user stack (on linux/arm builder) #30591

Open
ALTree opened this Issue Mar 5, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@ALTree
Copy link
Member

ALTree commented Mar 5, 2019

The linux/arm builder just failed (at tip) on the os test suite, with the following error:

fatal error: attempt to execute system stack code on user stack

goroutine 87 [running]:
runtime.throw(0x195855, 0x32)
	/workdir/go/src/runtime/panic.go:627 +0x5c fp=0x4cef44 sp=0x4cef30 pc=0x3ce28
runtime.morestackc()
	/workdir/go/src/runtime/stack.go:1310 +0x18 fp=0x4cef50 sp=0x4cef44 pc=0x57580
runtime.stackfree(0x45c000, 0x45e000)
	/workdir/go/src/runtime/stack.go:414 +0x2dc fp=0x4cef50 sp=0x4cef50 pc=0x552a0
runtime.newm(0x49e9a0, 0x4267c)
	/workdir/go/src/runtime/proc.go:1812 +0x24 fp=0x4cef64 sp=0x4cef50 pc=0x42404
runtime: unexpected return pc for runtime.newm called from 0x49c000
stack: frame={sp:0x4cef64, fp:0x4cef78} stack=[0x4ce800,0x4cf000)
004ceee4:  00000000  00000000  00000000  00000000 
004ceef4:  00000000  00000000  00000000  00000000 
004cef04:  00000000  00000000  00000000  00000000 
004cef14:  0003cfc8 <runtime.fatalthrow+68>  0003ce28 <runtime.throw+92>  004cef20  00068358 <runtime.fatalthrow.func1+0> 
004cef24:  0049e9a0  0003ce28 <runtime.throw+92>  004cef30  00057580 <runtime.morestackc+24> 
004cef34:  004cef38  000682ec <runtime.throw.func1+0>  00195855  00000032 
004cef44:  000552a0 <runtime.stackfree+732>  00195855  00000032  00042404 <runtime.newm+36> 
004cef54:  0045c000  0045e000  00000000  00000000 
004cef64: <0049c000  0049e9a0  0004267c <runtime.startTemplateThread+76>  00000000 
004cef74:  001972ec >00000000  00000000  00046afc <runtime.LockOSThread+100> 
004cef84:  001972ec  00000000  00000001  00046a01 <runtime.gfpurge+81> 
004cef94:  0013ca64 <os_test.TestProgWideChdir.func1+292>  002c3920  00000000  0006b650 <runtime.goexit+4> 
004cefa4:  00000000  00000000  00000000  00000000 
004cefb4:  00000000  00000000  00000000  00000000 
004cefc4:  00000000  00000000  00000000  00000000 
004cefd4:  00000000  00000000  00000000  004eee80 
004cefe4:  004f10e0  004eeec0  00000009  00000000 
004ceff4:  00000000 
runtime.newm(0x0, 0x46afc)
	/workdir/go/src/runtime/proc.go:1812 +0x24 fp=0x4cef78 sp=0x4cef64 pc=0x42404
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80

goroutine 1 [chan receive]:
testing.(*T).Run(0x4f10e0, 0x18cee8, 0x11, 0x196f40, 0x1)
	/workdir/go/src/testing/testing.go:917 +0x2d8
testing.runTests.func1(0x496000)
	/workdir/go/src/testing/testing.go:1157 +0x68
testing.tRunner(0x496000, 0x480f14)
	/workdir/go/src/testing/testing.go:865 +0xa4
testing.runTests(0x40c0a0, 0x2b3478, 0x77, 0x77, 0x0)
	/workdir/go/src/testing/testing.go:1155 +0x240
testing.(*M).Run(0x446100, 0x0)
	/workdir/go/src/testing/testing.go:1072 +0x138
main.main()
	_testmain.go:308 +0x130

goroutine 5 [syscall]:
os/signal.signal_recv(0x0)
	/workdir/go/src/runtime/sigqueue.go:139 +0x130
os/signal.loop()
	/workdir/go/src/os/signal/signal_unix.go:23 +0x14
created by os/signal.init.0
	/workdir/go/src/os/signal/signal_unix.go:29 +0x30

goroutine 77 [runnable]:
os_test.TestProgWideChdir(0x4f10e0)
	/workdir/go/src/os/os_test.go:1300 +0x35c
testing.tRunner(0x4f10e0, 0x196f40)
	/workdir/go/src/testing/testing.go:865 +0xa4
created by testing.(*T).Run
	/workdir/go/src/testing/testing.go:916 +0x2b8

goroutine 78 [runnable]:
os_test.TestProgWideChdir.func1(0x4eee80, 0x4f10e0, 0x4eeec0, 0x0)
	/workdir/go/src/os/os_test.go:1255
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80

goroutine 79 [chan send, locked to thread]:
os_test.TestProgWideChdir.func1(0x4eee80, 0x4f10e0, 0x4eeec0, 0x1)
	/workdir/go/src/os/os_test.go:1272 +0x11c
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80

goroutine 80 [chan send]:
os_test.TestProgWideChdir.func1(0x4eee80, 0x4f10e0, 0x4eeec0, 0x2)
	/workdir/go/src/os/os_test.go:1272 +0x11c
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80

goroutine 81 [chan send, locked to thread]:
os_test.TestProgWideChdir.func1(0x4eee80, 0x4f10e0, 0x4eeec0, 0x3)
	/workdir/go/src/os/os_test.go:1272 +0x11c
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80

goroutine 82 [chan send]:
os_test.TestProgWideChdir.func1(0x4eee80, 0x4f10e0, 0x4eeec0, 0x4)
	/workdir/go/src/os/os_test.go:1272 +0x11c
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80

goroutine 85 [runnable]:
os_test.TestProgWideChdir.func1(0x4eee80, 0x4f10e0, 0x4eeec0, 0x7)
	/workdir/go/src/os/os_test.go:1255
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80

goroutine 86 [runnable]:
os_test.TestProgWideChdir.func1(0x4eee80, 0x4f10e0, 0x4eeec0, 0x8)
	/workdir/go/src/os/os_test.go:1255
created by os_test.TestProgWideChdir
	/workdir/go/src/os/os_test.go:1255 +0x80
FAIL	os	0.178s
ok  	os/exec	3.672s
2019/03/05 04:45:47 Failed: exit status 1

Full log: https://build.golang.org/log/9592acb86aec954a29903bf39b780f3af5b7d30e

That builder is usually not flaky at all, so this probably warrants an investigation.

cc @ianlancetaylor

@ALTree ALTree added this to the Go1.13 milestone Mar 5, 2019

@ALTree ALTree changed the title os/exec: fatal error: attempt to execute system stack code on user stack (on linux/arm builder) os: fatal error: attempt to execute system stack code on user stack (on linux/arm builder) Mar 5, 2019

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

ianlancetaylor commented Mar 5, 2019

Looks like maybe LockOSThread called startTemplateThread called newm. But I don't see how we got from there to stackfree.

CC @aclements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.