Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Issue 7098050: code review 7098050: runtime: dump full stacks on throw and signals (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by dvyukov
Modified:
12 years, 1 month ago
Reviewers:
CC:
rsc, minux1, golang-dev
Visibility:
Public.

Description

runtime: dump the full stack of a throwing goroutine Useful for debugging of runtime bugs. + Do not print "stack segment boundary" unless GOTRACEBACK>1. + Do not traceback system goroutines unless GOTRACEBACK>1.

Patch Set 1 #

Patch Set 2 : diff -r c53ac9baac67 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r c53ac9baac67 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r c53ac9baac67 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 5 : diff -r c53ac9baac67 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r aee6d7fe395a https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 7 : diff -r aee6d7fe395a https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 8 : diff -r aee6d7fe395a https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 9 : diff -r c0a5b4ad0895 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 10 : diff -r 9bcb8f09b9dc https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -11 lines) Patch
M src/pkg/runtime/panic.c View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 3 chunks +3 lines, -1 line 0 comments Download
M src/pkg/runtime/symtab.c View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/time.goc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M src/pkg/runtime/traceback_arm.c View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -4 lines 0 comments Download
M src/pkg/runtime/traceback_x86.c View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 16
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 2 months ago (2013-01-12 13:45:51 UTC) #1
minux1
FTR, this is mostly the patch proposed by Russ here: https://codereview.appspot.com/7069060/#msg7 The only change is ...
12 years, 2 months ago (2013-01-12 14:14:25 UTC) #2
dvyukov
Perhaps we can make it finer grained -- set the flag in signal handlers only ...
12 years, 2 months ago (2013-01-12 14:29:37 UTC) #3
bradfitz
I agree that user errors (a deadlock) shouldn't result in tons of scary-looking error spew. ...
12 years, 2 months ago (2013-01-12 16:55:59 UTC) #4
minux1
On Sat, Jan 12, 2013 at 10:29 PM, <dvyukov@google.com> wrote: > Perhaps we can make ...
12 years, 2 months ago (2013-01-12 16:59:18 UTC) #5
akumar_mail.nanosouffle.net
UNIX signals don't necessarily map one-to-one and onto Plan 9 notes from the kernel; are ...
12 years, 2 months ago (2013-01-13 05:12:43 UTC) #6
dvyukov
On 2013/01/13 05:12:43, akumar_mail.nanosouffle.net wrote: > UNIX signals don't necessarily map one-to-one and onto Plan ...
12 years, 2 months ago (2013-01-13 14:14:36 UTC) #7
dvyukov
On 2013/01/12 16:55:59, bradfitz wrote: > I agree that user errors (a deadlock) shouldn't result ...
12 years, 2 months ago (2013-01-13 14:16:24 UTC) #8
dvyukov
PTAL now it prints full stacks only on runtime.throw() except deadlocks
12 years, 1 month ago (2013-01-21 15:57:42 UTC) #9
minux1
LGTM.
12 years, 1 month ago (2013-01-21 16:03:10 UTC) #10
rsc
I wonder if the throwing variable should be per-M. It is likely that only the ...
12 years, 1 month ago (2013-01-22 22:20:36 UTC) #11
dvyukov
On 2013/01/22 22:20:36, rsc wrote: > I wonder if the throwing variable should be per-M. ...
12 years, 1 month ago (2013-01-23 07:13:19 UTC) #12
dvyukov
PTAL I've made throwing per-M and now it affects only the current goroutine. + hide ...
12 years, 1 month ago (2013-01-27 15:31:01 UTC) #13
minux1
On 2013/01/27 15:31:01, dvyukov wrote: > the trace looks as follows: > > panic: runtime ...
12 years, 1 month ago (2013-01-27 15:46:18 UTC) #14
rsc
LGTM Thanks.
12 years, 1 month ago (2013-01-29 00:32:16 UTC) #15
dvyukov
12 years, 1 month ago (2013-01-29 10:59:25 UTC) #16
*** Submitted as https://code.google.com/p/go/source/detail?r=ab5aaf4b34f2 ***

runtime: dump the full stack of a throwing goroutine
Useful for debugging of runtime bugs.
+ Do not print "stack segment boundary" unless GOTRACEBACK>1.
+ Do not traceback system goroutines unless GOTRACEBACK>1.

R=rsc, minux.ma
CC=golang-dev
https://codereview.appspot.com/7098050
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b