diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-07-11 13:52:20 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-07-11 13:52:20 -0400 |
| commit | 01e1b0cb5377d665065707f9a270b223ea85a570 (patch) | |
| tree | d7557b2678e754abd649184d8589716d48fa27b4 /src/pkg/runtime/traceback_arm.c | |
| parent | c77baac560ae5318cd892e690198a28a1287ce6a (diff) | |
| download | go-01e1b0cb5377d665065707f9a270b223ea85a570.tar.xz | |
runtime: adjust traceback for new preemptive reality
Currently it crashes as follows:
fatal error: unknown pc
...
goroutine 71698 [runnable]:
runtime.racegoend()
src/pkg/runtime/race.c:171
runtime.goexit()
src/pkg/runtime/proc.c:1276 +0x9
created by runtime_test.testConcurrentReadsAfterGrowth
src/pkg/runtime/map_test.go:264 +0x332
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/10674047
Diffstat (limited to 'src/pkg/runtime/traceback_arm.c')
| -rw-r--r-- | src/pkg/runtime/traceback_arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/traceback_arm.c b/src/pkg/runtime/traceback_arm.c index b91017eea5..599f6093eb 100644 --- a/src/pkg/runtime/traceback_arm.c +++ b/src/pkg/runtime/traceback_arm.c @@ -164,7 +164,7 @@ runtime·gentraceback(uintptr pc0, uintptr sp0, uintptr lr0, G *gp, int32 skip, waspanic = f->entry == (uintptr)runtime·sigpanic; // Do not unwind past the bottom of the stack. - if(frame.pc == (uintptr)runtime·goexit || f->entry == (uintptr)runtime·mstart || f->entry == (uintptr)_rt0_go) + if(f->entry == (uintptr)runtime·goexit || f->entry == (uintptr)runtime·mstart || f->entry == (uintptr)_rt0_go) break; // Unwind to next frame. |
