go/src
Dmitriy Vyukov 0603fbb01c runtime: fix unexpected return pc for runtime.newstackcall
With cl/112640043 TestCgoDeadlockCrash episodically print:
unexpected return pc for runtime.newstackcall
After adding debug output I see the following trace:

runtime: unexpected return pc for runtime.newstackcall called from 0xc208011b00
runtime.throw(0x414da86)
        src/pkg/runtime/panic.c:523 +0x77
runtime.gentraceback(0x40165fc, 0xba440c28, 0x0, 0xc208d15200, 0xc200000000, 0xc208ddfd20, 0x20, 0x0, 0x0, 0x300)
	src/pkg/runtime/traceback_x86.c:185 +0xca4
runtime.callers(0x1, 0xc208ddfd20, 0x20)
	src/pkg/runtime/traceback_x86.c:438 +0x98
mcommoninit(0xc208ddfc00)
	src/pkg/runtime/proc.c:369 +0x5c
runtime.allocm(0xc208052000)
	src/pkg/runtime/proc.c:686 +0xa6
newm(0x4017850, 0xc208052000)
	src/pkg/runtime/proc.c:933 +0x27
startm(0xc208052000, 0x100000001)
	src/pkg/runtime/proc.c:1011 +0xba
wakep()
	src/pkg/runtime/proc.c:1071 +0x57
resetspinning()
	src/pkg/runtime/proc.c:1297 +0xa1
schedule()
	src/pkg/runtime/proc.c:1366 +0x14b
runtime.gosched0(0xc20808e240)
	src/pkg/runtime/proc.c:1465 +0x5b
runtime.newstack()
	src/pkg/runtime/stack.c:891 +0x44d
runtime: unexpected return pc for runtime.newstackcall called from 0xc208011b00
runtime.newstackcall(0x4000cbd, 0x4000b80)
	src/pkg/runtime/asm_amd64.s:278 +0x6f

I suspect that it can happen on any stack split.
So don't unwind g0 stack.
Also, that comment is lying -- we can traceback w/o mcache,
CPU profiler does that.

LGTM=rsc
R=golang-codereviews
CC=golang-codereviews, khr, rsc
https://golang.org/cl/120040043
2014-07-23 18:51:34 +04:00
..
cmd cmd/gc: mark auxiliary symbols as containing no pointers 2014-07-23 17:36:10 +04:00
lib9 lib9: format %#04x, 0 as 0x0000 not 000000. 2014-07-23 10:17:47 -04:00
libbio libbio: add casts to eliminate -Wconversion warning 2014-04-14 09:36:47 -07:00
liblink liblink: more precise literal word comparison on arm 2014-07-23 10:17:59 -04:00
pkg runtime: fix unexpected return pc for runtime.newstackcall 2014-07-23 18:51:34 +04:00
Make.dist
all.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
all.bat
all.rc
androidtest.bash androidtest.bash: missing ! 2014-07-09 14:54:11 -04:00
clean.bash
clean.bat
clean.rc
make.bash build: make nacl pass 2014-05-20 12:10:19 -04:00
make.bat make.bat: do not exit builder on successful completion of make.bat (fixes build) 2014-07-21 16:29:38 +10:00
make.rc lib9: enable on Plan 9 2014-02-13 20:06:41 +01:00
nacltest.bash nacltest.bash: set GOROOT before invoking cmd/go 2014-07-10 15:36:48 -04:00
race.bash race.bash: support freebsd 2014-06-24 15:47:22 -07:00
race.bat race.bash,race.bat: unset GOROOT_FINAL during tests 2014-05-07 16:34:21 +10:00
run.bash run.bash: disable tests that don't (yet) like running off the host 2014-07-08 18:41:07 -04:00
run.bat build: remove goplay from run.bash and run.bat 2014-06-02 08:44:47 +10:00
run.rc build: be verbose when running tests on Plan 9 2014-07-20 13:14:53 +03:00
sudo.bash