Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os: on Plan 9: stat mycmd: stat buffer too short #11132

Closed
ianlancetaylor opened this issue Jun 9, 2015 · 3 comments
Closed

os: on Plan 9: stat mycmd: stat buffer too short #11132

ianlancetaylor opened this issue Jun 9, 2015 · 3 comments
Assignees
Milestone

Comments

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Jun 9, 2015

When I ran a version of http://golang.org/cl/10809 on the plan9 trybot, it failed with

--- FAIL: TestGoInstallCleansUpAfterGoBuild (0.61s)
go_test.go:171: running testgo [build]
go_test.go:171: running testgo [install]
go_test.go:484: testgo install did not remove command binary error: stat mycmd: stat buffer too short

This is from https://storage.googleapis.com/go-build-log/0ec7ceac/plan9-386_37213075.log , though I'm not sure how long that will stick around.

The code that causes this error is simply

    if _, err := os.Stat(file); err == nil {
        t.Fatal(msg)
    } else if !os.IsNotExist(err) {
        t.Fatal(msg, "error:", err)
    }

os.Stat is returning an error that is not nil, and not IsNotExist(err), but is intead the relatively meaningless error "stat buffer too short".

I am going to modify the test to avoid the error. Recording this issue so that the problem can be fixed.

@ianlancetaylor ianlancetaylor added this to the Go1.5Maybe milestone Jun 9, 2015
@bradfitz

This comment has been minimized.

Copy link
Contributor

@bradfitz bradfitz commented Jun 10, 2015

This is from https://storage.googleapis.com/go-build-log/0ec7ceac/plan9-386_37213075.log , though I'm not sure how long that will stick around.

Forever. It's in storage (Cloud storage!) and storage is cheap. The temporary URLs now have temporary in their name. They're in-process only because they stream live output. But I've filed #11141 for a better fix.

@0intro

This comment has been minimized.

Copy link
Member

@0intro 0intro commented Jun 10, 2015

Thanks for reporting. Maybe that's related to issue #10911,
were the TestRemoveAllRace started to return this error
intermittently on the old builder around May 13.
I'll investigate further.

@0intro 0intro self-assigned this Jun 10, 2015
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Jun 10, 2015

CL https://golang.org/cl/10900 mentions this issue.

@0intro 0intro closed this in bd8e3d0 Jun 11, 2015
@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jun 11, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.