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

Issue 47540043: code review 47540043: runtime: co-exist with NPTL's pthread_cancel().

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by sqweek
Modified:
9 years, 6 months ago
Reviewers:
tsuna, minux, iant
CC:
golang-codereviews, dvyukov
Visibility:
Public.

Description

runtime: co-exist with NPTL's pthread_cancel. NPTL uses SIGRTMIN (signal 32) to effect thread cancellation. Go's runtime replaces NPTL's signal handler with its own, and ends up aborting if a C library that ends up calling pthread_cancel is used. This patch prevents runtime from replacing NPTL's handler. Fixes issue 6997.

Patch Set 1 #

Patch Set 2 : diff -r 9fd412c6b156 https://code.google.com/p/go #

Patch Set 3 : diff -r 00964af13f7d https://code.google.com/p/go #

Patch Set 4 : diff -r 00cce3a34d7e https://code.google.com/p/go #

Patch Set 5 : diff -r 00cce3a34d7e https://code.google.com/p/go #

Patch Set 6 : diff -r 00cce3a34d7e https://code.google.com/p/go #

Total comments: 4

Patch Set 7 : diff -r 00cce3a34d7e https://code.google.com/p/go #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -1 line) Patch
M misc/cgo/test/cgo_linux_test.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A misc/cgo/test/issue6997_linux.c View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
A misc/cgo/test/issue6997_linux.go View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 1 comment Download
M src/pkg/runtime/signals_linux.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19
sqweek
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 3 months ago (2014-01-07 18:58:34 UTC) #1
iant
Can you look into adding a test, perhaps in misc/cgo/test?
10 years, 3 months ago (2014-01-07 19:39:00 UTC) #2
dvyukov
Doesn't this break existing Go programs that use SIGRTMIN?
10 years, 3 months ago (2014-01-08 06:45:25 UTC) #3
sqweek
Yes I would expect so, as the runtime is no longer handling SIGRTMIN. Unfortunately if ...
10 years, 3 months ago (2014-01-08 08:17:20 UTC) #4
iant
On Tue, Jan 7, 2014 at 10:45 PM, <dvyukov@google.com> wrote: > > Doesn't this break ...
10 years, 3 months ago (2014-01-08 14:20:18 UTC) #5
sqweek
I've added the test case to this CL in patch set 6. As I mentioned ...
10 years, 3 months ago (2014-01-08 17:08:45 UTC) #6
iant
https://codereview.appspot.com/47540043/diff/70001/misc/cgo/test/issue6997_linux.c File misc/cgo/test/issue6997_linux.c (right): https://codereview.appspot.com/47540043/diff/70001/misc/cgo/test/issue6997_linux.c#newcode1 misc/cgo/test/issue6997_linux.c:1: // Copyright 2013 The Go Authors. All rights reserved. ...
10 years, 3 months ago (2014-01-08 20:40:05 UTC) #7
iant
Also s/()// in the CL description, we don't usually that in Go comments.
10 years, 3 months ago (2014-01-08 21:47:12 UTC) #8
sqweek
Done, and submitted individual contributer license agreement. s/2013/2014/ needs applying here aswell: http://golang.org/doc/contribute.html
10 years, 3 months ago (2014-01-09 10:17:47 UTC) #9
iant
On 2014/01/09 10:17:47, sqweek wrote: > Done, and submitted individual contributer license agreement. Thanks. Unfortunately ...
10 years, 3 months ago (2014-01-09 14:53:53 UTC) #10
sqweek
On 2014/01/09 14:53:53, iant wrote: > You've signed your name as "sqweek;" is that your ...
10 years, 3 months ago (2014-01-09 15:44:32 UTC) #11
iant
LGTM On 2014/01/09 15:44:32, sqweek wrote: > > I've resubmitted the form using my legal ...
10 years, 3 months ago (2014-01-09 17:33:47 UTC) #12
iant
*** Submitted as https://code.google.com/p/go/source/detail?r=6c40c933eb03 *** runtime: co-exist with NPTL's pthread_cancel. NPTL uses SIGRTMIN (signal 32) ...
10 years, 3 months ago (2014-01-09 17:34:09 UTC) #13
sqweek
On 2014/01/09 17:33:47, iant wrote: > Thanks for your patience working through this CL. My ...
10 years, 3 months ago (2014-01-10 01:44:40 UTC) #14
tsuna
Sorry to resurrect this review, I figured it was better to comment here than send ...
9 years, 6 months ago (2014-10-31 05:45:04 UTC) #15
iant
On 2014/10/31 05:45:04, tsuna wrote: > Sorry to resurrect this review, I figured it was ...
9 years, 6 months ago (2014-10-31 16:40:22 UTC) #16
tsuna
On 2014/10/31 16:40:22, iant wrote: > Sure, send a CL. Done: https://codereview.appspot.com/170850043/ Thanks.
9 years, 6 months ago (2014-10-31 17:59:52 UTC) #17
minux
On Oct 31, 2014 12:35 PM, <tsunanet@gmail.com> wrote: > https://codereview.appspot.com/47540043/diff/90001/misc/cgo/test/issue6997_linux.go#newcode37 > misc/cgo/test/issue6997_linux.go:37: case <-time.After(5 * ...
9 years, 6 months ago (2014-10-31 18:36:15 UTC) #18
tsuna
9 years, 6 months ago (2014-10-31 18:37:22 UTC) #19
On 2014/10/31 18:36:15, minux wrote:
> i'm curious, are you using patched Go? why are you doing misc/cgo/test in
> your CI?

Nope, just building the release tarball into an RPM.
Sign in to reply to this message.

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