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

Issue 8334044: pkg:syscall: fix a bug in the shuffling of file descrip... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by cnicolaou
Modified:
11 years, 10 months ago
Reviewers:
CC:
iant, iant2, r, bradfitz, golang-dev
Visibility:
Public.

Description

syscall: fix a bug in the shuffling of file descriptors in StartProcess on Linux.

Patch Set 1 #

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

Total comments: 14

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -1 line) Patch
M src/pkg/os/exec/exec_test.go View 1 2 4 chunks +127 lines, -0 lines 0 comments Download
M src/pkg/syscall/exec_linux.go View 1 2 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 18
r
The fix looks good. I wouldn't mind another set of eyes on the test, though. ...
11 years, 10 months ago (2013-04-30 15:54:54 UTC) #1
iant
https://codereview.appspot.com/8334044/diff/2001/src/pkg/os/exec/exec_test.go File src/pkg/os/exec/exec_test.go (right): https://codereview.appspot.com/8334044/diff/2001/src/pkg/os/exec/exec_test.go#newcode244 src/pkg/os/exec/exec_test.go:244: w.Write([]byte(data[i])) Can use w.WriteString here. https://codereview.appspot.com/8334044/diff/2001/src/pkg/os/exec/exec_test.go#newcode282 src/pkg/os/exec/exec_test.go:282: case <-time.After(1 ...
11 years, 10 months ago (2013-04-30 16:30:11 UTC) #2
cnicolaou
Hello iant@golang.org, iant@google.com, r@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 10 months ago (2013-04-30 17:46:52 UTC) #3
cnicolaou
I've made the changes. https://codereview.appspot.com/8334044/diff/2001/src/pkg/os/exec/exec_test.go File src/pkg/os/exec/exec_test.go (right): https://codereview.appspot.com/8334044/diff/2001/src/pkg/os/exec/exec_test.go#newcode244 src/pkg/os/exec/exec_test.go:244: w.Write([]byte(data[i])) On 2013/04/30 16:30:11, iant ...
11 years, 10 months ago (2013-04-30 17:46:55 UTC) #4
bradfitz
CL description, first line: syscall: fix StartProcess shuffling of file descriptors on Linux (or something. ...
11 years, 10 months ago (2013-04-30 17:53:28 UTC) #5
cnicolaou
done. It looks to me as if the same problem exists on plan9, bsd - ...
11 years, 10 months ago (2013-04-30 18:01:22 UTC) #6
bradfitz
Don't worry about plan9. They don't have builders running yet, so they don't count. We ...
11 years, 10 months ago (2013-04-30 18:07:42 UTC) #7
iant
LGTM Wait for r.
11 years, 10 months ago (2013-04-30 18:32:04 UTC) #8
r
LGTM thanks.
11 years, 10 months ago (2013-04-30 18:34:09 UTC) #9
r
exec_test.go:270: Read: EOF exec_test.go:283: Read timedout is what I got on darwin -rob
11 years, 10 months ago (2013-04-30 18:37:02 UTC) #10
r
ok, i have a fix for bsd.
11 years, 10 months ago (2013-04-30 18:43:43 UTC) #11
r
*** Submitted as https://code.google.com/p/go/source/detail?r=b9afdc08225a *** syscall: fix a bug in the shuffling of file descriptors ...
11 years, 10 months ago (2013-04-30 18:52:27 UTC) #12
bradfitz
Whoa, what: go build math: wait: bad address http://build.golang.org/log/8ffe851878f9d1562b959264c7bddc34c3cdd394 On Tue, Apr 30, 2013 at ...
11 years, 10 months ago (2013-04-30 18:57:38 UTC) #13
iant2
On Tue, Apr 30, 2013 at 11:57 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Whoa, what: ...
11 years, 10 months ago (2013-04-30 19:11:31 UTC) #14
cnicolaou
>On Tue, Apr 30, 2013 at 11:07 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Don't worry ...
11 years, 10 months ago (2013-04-30 20:26:21 UTC) #15
iant2
On Tue, Apr 30, 2013 at 1:26 PM, Cosmos Nicolaou <cnicolaou@google.com> wrote: >>On Tue, Apr ...
11 years, 10 months ago (2013-04-30 20:30:50 UTC) #16
cnicolaou
sure, I just saw that. I'm still happy to try and fix it - I ...
11 years, 10 months ago (2013-04-30 20:34:31 UTC) #17
cnicolaou
11 years, 10 months ago (2013-05-02 15:00:44 UTC) #18
fwiw I've tracked this down to being another symptom of
https://code.google.com/p/go/issues/detail?id=2603. I'll work on a workaround
for this test and look into a fix for 2603.

Cheers, Cos.

On 2013/04/30 20:34:31, cnicolaou wrote:
> sure, I just saw that. I'm still happy to try and fix it - I don't
> think it'll be too hard once I have access to the build machines. If
> that's a hassle then I can just take care of it later when you guys
> have time to set me up with access. Thanks.
> 
> Cheers, Cos.
> 
> On Tue, Apr 30, 2013 at 1:30 PM, Ian Lance Taylor <mailto:iant@google.com>
wrote:
> > On Tue, Apr 30, 2013 at 1:26 PM, Cosmos Nicolaou
<mailto:cnicolaou@google.com>
> wrote:
> >>>On Tue, Apr 30, 2013 at 11:07 AM, Brad Fitzpatrick
<mailto:bradfitz@golang.org>
> wrote:
> >>> Don't worry about plan9.  They don't have builders running yet, so they
> >>> don't count.
> >>>
> >>> We can get you access to any of the builder machines for testing, though.
> >>
> >> sure, can you do that so that I can fix this up on all of the machine
> >> types. Darwin seems to work fine for me though. Thanks.
> >
> > We've disabled the test rather than worry about it for 1.1.
> >
> > Ian
Sign in to reply to this message.

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