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

Issue 7324058: code review 7324058: runtime/cgo: fix deadlock involving signals on darwin (Closed)

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

Description

runtime/cgo: fix deadlock involving signals on darwin sigprocmask() is process-wide on darwin, so two concurrent libcgo_sys_thread_start() can result in all signals permanently blocked, which in particular blocks handling of nil derefs. Fixes issue 4833.

Patch Set 1 #

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

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

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

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

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

Messages

Total messages: 14
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 2 months ago (2013-02-20 08:31:23 UTC) #1
dave_cheney.net
On 2013/02/20 08:31:23, dvyukov wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
11 years, 2 months ago (2013-02-20 08:38:23 UTC) #2
dvyukov
On 2013/02/20 08:38:23, dfc wrote: > On 2013/02/20 08:31:23, dvyukov wrote: > > Hello mailto:golang-dev@googlegroups.com, ...
11 years, 2 months ago (2013-02-20 08:40:35 UTC) #3
dave_cheney.net
Thanks. I'll make sure I patch my runtime. On Wed, Feb 20, 2013 at 7:40 ...
11 years, 2 months ago (2013-02-20 08:42:03 UTC) #4
dvyukov
ping
11 years, 2 months ago (2013-02-21 05:52:41 UTC) #5
dave_cheney.net
On 2013/02/21 05:52:41, dvyukov wrote: > ping Can you please point me to the latest ...
11 years, 2 months ago (2013-02-21 05:53:43 UTC) #6
dvyukov
Just merged Russ' changes. Try hg clpatch 7314062 now. On Thu, Feb 21, 2013 at ...
11 years, 2 months ago (2013-02-21 06:21:15 UTC) #7
dave_cheney.net
Hi, I'm still chasing merge conflicts on 7314062, then I can test 7324058
11 years, 2 months ago (2013-02-22 01:00:46 UTC) #8
dvyukov
The things are changing too fast... Perhaps, you may update to a revision w/o conflicts ...
11 years, 2 months ago (2013-02-22 04:14:07 UTC) #9
dave_cheney.net
https://codereview.appspot.com/7379046 On Fri, Feb 22, 2013 at 3:14 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > The ...
11 years, 2 months ago (2013-02-22 10:45:32 UTC) #10
dave_cheney.net
Ooops, please ignore my last message, wrong CL.
11 years, 2 months ago (2013-02-22 10:46:06 UTC) #11
rsc
LGTM
11 years, 2 months ago (2013-02-25 21:36:11 UTC) #12
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=c213d6e8e089 *** runtime/cgo: fix deadlock involving signals on darwin sigprocmask() is process-wide ...
11 years, 2 months ago (2013-02-25 21:36:33 UTC) #13
minux1
11 years, 2 months ago (2013-02-26 16:39:12 UTC) #14
Hi dvyukov, just a note about placement of cgo-dependent tests.
please place them into crash_cgo_test.go instead of crash_test.go,
or the test will run on cgo disabled hosts (e.g. FreeBSD/arm) and
cause test failures (
http://build.golang.org/log/152248fec98bb3c45d89fd9e01b57724d06f92ea)
Thank you.

I will fix the issue in CL 7393063.
Sign in to reply to this message.

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