diff options
| author | Russ Cox <rsc@golang.org> | 2013-12-13 15:44:57 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-12-13 15:44:57 -0500 |
| commit | bc135f6492035024e778fe7dedb451ebaa06d3e8 (patch) | |
| tree | 0d380fd72d92f17a99f5a496de99f1b4f6979174 /src/pkg/runtime/proc.c | |
| parent | c134ce272f5e1170908771f8371f5f8c01caf37c (diff) | |
| download | go-bc135f6492035024e778fe7dedb451ebaa06d3e8.tar.xz | |
runtime: fix crash in runtime.GoroutineProfile
This is a possible Go 1.2.1 candidate.
Fixes #6946.
R=iant, r
CC=golang-dev
https://golang.org/cl/41640043
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index de26c72d3d..ed3e1e73ee 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -276,7 +276,7 @@ runtime·tracebackothers(G *me) if((gp = m->curg) != nil && gp != me) { runtime·printf("\n"); runtime·goroutineheader(gp); - runtime·traceback(gp->sched.pc, gp->sched.sp, gp->sched.lr, gp); + runtime·traceback(~(uintptr)0, ~(uintptr)0, 0, gp); } for(gp = runtime·allg; gp != nil; gp = gp->alllink) { @@ -290,7 +290,7 @@ runtime·tracebackothers(G *me) runtime·printf("\tgoroutine running on other thread; stack unavailable\n"); runtime·printcreatedby(gp); } else - runtime·traceback(gp->sched.pc, gp->sched.sp, gp->sched.lr, gp); + runtime·traceback(~(uintptr)0, ~(uintptr)0, 0, gp); } } |
