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

Issue 97620043: code review 97620043: runtime: fix go of nil func value (Closed)

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

Description

runtime: fix go of nil func value Currently runtime derefences nil with m->locks>0, which causes unrecoverable fatal error. Panic instead. Fixes issue 8045.

Patch Set 1 #

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

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

Total comments: 2

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M src/pkg/runtime/crash_test.go View 1 2 3 4 2 chunks +21 lines, -0 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9
dvyukov
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 1 month ago (2014-05-20 16:22:42 UTC) #1
dvyukov
At your discretion as to whether it needs to go into 1.3.
12 years, 1 month ago (2014-05-20 16:23:04 UTC) #2
rsc
I do want to see this fixed for 1.3. https://codereview.appspot.com/97620043/diff/20002/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/97620043/diff/20002/src/pkg/runtime/proc.c#newcode1820 src/pkg/runtime/proc.c:1820: ...
12 years, 1 month ago (2014-05-20 16:58:13 UTC) #3
dvyukov
https://codereview.appspot.com/97620043/diff/20002/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/97620043/diff/20002/src/pkg/runtime/proc.c#newcode1820 src/pkg/runtime/proc.c:1820: runtime·panicstring("go of nil func value"); On 2014/05/20 16:58:13, rsc ...
12 years, 1 month ago (2014-05-20 17:08:17 UTC) #4
rsc
On Tue, May 20, 2014 at 1:08 PM, <dvyukov@google.com> wrote: > > https://codereview.appspot.com/97620043/diff/20002/src/pkg/runtime/proc.c > File ...
12 years, 1 month ago (2014-05-20 17:13:11 UTC) #5
rsc
Calling runtime.throw is probably a good enough simulation of the uncatchable panic.
12 years, 1 month ago (2014-05-20 20:17:43 UTC) #6
dvyukov
On 2014/05/20 20:17:43, rsc wrote: > Calling runtime.throw is probably a good enough simulation of ...
12 years, 1 month ago (2014-05-27 16:46:09 UTC) #7
rsc
LGTM
12 years, 1 month ago (2014-05-27 22:59:47 UTC) #8
rsc
12 years, 1 month ago (2014-05-28 03:59:59 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=eedf259bba6f ***

runtime: fix go of nil func value
Currently runtime derefences nil with m->locks>0,
which causes unrecoverable fatal error.
Panic instead.
Fixes issue 8045.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews, khr
https://codereview.appspot.com/97620043

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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