Skip to content

go build command-line-arguments: read |0: interrupted system call #349

Closed

Description

@tg123

Microsoft Windows [Version 10.0.14342]

install go from apt-get install golang

$ go version
go version go1.2.1 linux/amd64

go build
go build command-line-arguments: read |0: interrupted system call

However, it cloud work without error sometimes

Activity

  1. stehufntdev commented on May 12, 2016

    @stehufntdev

    Thanks for reporting the issue. We investigated this locally and it is caused by missing support for restartable system calls (i.e. SA_RESTART flag).

    Please give us feedback on the uservoice page so we can prioritize.

  2. mvadu commented on May 22, 2016

    @mvadu

    Stephen Hufnagel (@stehufntdev) the repo readme says "This repo is for the reporting of issues found within and when using Bash on Ubuntu on Windows", and you are asking us to go to UserVoice? Then what is the point of reporting it here?

  3. aseering commented on May 22, 2016

    @aseering
    Contributor

    Adarsha (@mvadu) -- Github is good at capturing and discussing technical information about a bug or feature request. But there are many (I'm guessing at least hundreds if not thousands?) of people reporting bugs or requesting features or (etc) against WSL. I've seen bug trackers where bugs for popular issues get tons of "me too!"'s, and it's a real pain to read through all of those comments to figure out what the actual bug is, find the latest updates from the people who are actually debugging it, etc. So the important bugs actually become more annoying to fix.

    I think Microsoft is trying to differentiate between technical issues and use cases. Your report is both -- "go build is an important command for developing Go software" is a use case; "go build doesn't work because of lack of SA_RESTART support" is a technical issue. So it's useful to have it in both places.

  4. mvadu commented on May 23, 2016

    @mvadu

    Adam Seering (@aseering) I did create a new user voice topic for this as well.

  5. simonbuchan commented on Jun 1, 2016

    @simonbuchan

    Also happens with github's hub command (written in go). Since that's recommended to be aliased to git, this can hit pretty often!

  6. RobWC commented on Aug 2, 2016

    @RobWC

    +1

  7. technowar commented on Oct 11, 2016

    @technowar

    Simon Buchan (@simonbuchan), if it annoys you, use brew or Ruby's version. The latter isn't recommended.

    Anyways, any updates on this?

  8. tg123 commented on Oct 11, 2016

    @tg123
    MemberAuthor
  9. retorquere commented on Oct 19, 2016

    @retorquere

    How do I get 14905 on my system?

  10. stehufntdev commented on Oct 20, 2016

    @stehufntdev

    14905 is a Windows insider build, to get that on your system you need to enroll the machine in the Windows insider program.

  11. sleaze commented on Oct 24, 2016

    @sleaze

    What if we don't want to opt into full telemetry? :s

  12. MikeCook9994 commented on Nov 23, 2016

    @MikeCook9994

    You don't get windows insider. Windows insider isn't for you to get builds and fixes early. It's to get information about their new builds.

  13. aseering commented on Nov 23, 2016

    @aseering
    Contributor

    Michael Cook (@MikeCook9994) -- could you provide a reference for that statement? I install Insider builds from here on a regular basis: https://insider.windows.com/

  14. 8 remaining items

  15. mrbeskin commented on Mar 11, 2017

    @mrbeskin

    Stephen Hufnagel (@stehufntdev) Sorry, deleted my comment before I saw there was a reply . . . I realized I was on the Anniversary update. I am working on getting my hands on the latest available build and I will test there. Thank you for your reply.

  16. stehufntdev commented on Mar 11, 2017

    @stehufntdev

    No worries, thanks for the confirmation! Please let us know if you see any issues for insider builds.

  17. cweeks12 commented on Mar 16, 2017

    @cweeks12

    Is there any indication of when this build is going to be available generally? I just ran into this issue in my Go development

  18. benhillis commented on Mar 16, 2017

    @benhillis
    Member

    Connor Weeks (@cweeks12) - Creator's update is due soon. I don't have an exact date but I think April or early May.

  19. fraklo commented on Mar 22, 2017

    @fraklo

    Not sure if it's been noted, but I get the same issue when trying to run
    go run test.go
    if however I run
    go run ./*
    or even go up a directory and run
    go run test_dir/*
    The file runs.

  20. JamieSinn commented on May 30, 2017

    @JamieSinn

    This issue is still persisting.

  21. sunilmut commented on Jun 12, 2017

    @sunilmut
    Member

    Frak Lopez (@fraklo) and Jamie Sinn (@JamieSinn) - I tried this simple example https://gobyexample.com/reading-files and it worked fine for me. I was able to run the file using the command go run test.go. I am running go version 1.6.2. This was on Insiders build 16215. If the issue persists for you, please include the Windows build that you are running (output of the ver command) and an strace strace -o <strace_file> -ff <failing_cmd>

    $go version
    go version go1.6.2 linux/amd64
    
  22. JamieSinn commented on Jun 13, 2017

    @JamieSinn

    I am using go 1.8, I have not used an insider's build.
    Will grab stack traces soon.

  23. sunilmut commented on Jun 13, 2017

    @sunilmut
    Member

    Jamie Sinn (@JamieSinn) - Ok, thanks. Please also post your Windows version (using the ver CMD) and full repro steps.

  24. kanonji commented on Aug 21, 2017

    @kanonji

    I tried https://gobyexample.com/reading-files and not worked.

    $ go run reading-files.go
    go build command-line-arguments: /home/kanonji/local/stock/go1.8.3.linux-amd64/pkg/tool/linux_amd64/compile: read |0: interrupted system call
    
    $ cat go-run-reading-files-go.sh
    #!/bin/sh
    go run reading-files.go
    
    $ strace -ff -o straced/go-run-reading-files-go ./go-run-reading-files-go.sh
    go build command-line-arguments: /home/kanonji/local/stock/go1.8.3.linux-amd64/pkg/tool/linux_amd64/link: read |0: interrupted system call
    

    strace generates 20 files. Do you need all files or maybe only last one?

    $ go version
    go version go1.8.3 linux/amd64
    
    >ver
    
    Microsoft Windows [Version 10.0.14393]
    
  25. therealkenc commented on Mar 24, 2018

    @therealkenc

    The OP here was related to restartable system calls and was addressed in 14905 and by extension Creators Update 15063.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions