1. 21 Jun, 2016 5 commits
  2. 20 Jun, 2016 6 commits
  3. 19 Jun, 2016 1 commit
    • Alex Brainman's avatar
      debug/pe: handle files with no string table · 691c5c15
      Alex Brainman authored
      pecoff.doc (https://goo.gl/ayvckk) in section 5.6 says:
      
      Immediately following the COFF symbol table is the COFF string table.
      The position of this table is found by taking the symbol table address
      in the COFF header, and adding the number of symbols multiplied by
      the size of a symbol.
      
      So it is unclear what to do when symbol table address is 0.
      Lets assume executable does not have any string table.
      
      Added new test with executable with no symbol table. The
      
      gcc -s testdata\hello.c -o testdata\gcc-386-mingw-no-symbols-exec.
      
      command was used to generate the executable.
      
      Fixes #16084
      
      Change-Id: Ie74137ac64b15daadd28e1f0315f3b62d1bf2059
      Reviewed-on: https://go-review.googlesource.com/24200Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      691c5c15
  4. 17 Jun, 2016 2 commits
  5. 16 Jun, 2016 4 commits
  6. 15 Jun, 2016 5 commits
  7. 14 Jun, 2016 7 commits
  8. 13 Jun, 2016 4 commits
  9. 12 Jun, 2016 2 commits
  10. 11 Jun, 2016 1 commit
  11. 10 Jun, 2016 3 commits
    • Ian Lance Taylor's avatar
      os: on GNU/Linux use waitid to avoid wait/kill race · cea29c4a
      Ian Lance Taylor authored
      On systems that support the POSIX.1-2008 waitid function, we can use it
      to block until a wait will succeed. This avoids a possible race
      condition: if a program calls p.Kill/p.Signal and p.Wait from two
      different goroutines, then it is possible for the wait to complete just
      before the signal is sent. In that case, it is possible that the system
      will start a new process using the same PID between the wait and the
      signal, causing the signal to be sent to the wrong process. The
      Process.isdone field attempts to avoid that race, but there is a small
      gap of time between when wait returns and isdone is set when the race
      can occur.
      
      This CL avoids that race by using waitid to wait until the process has
      exited without actually collecting the PID. Then it sets isdone, then
      waits for any active signals to complete, and only then collects the PID.
      
      No test because any plausible test would require starting enough
      processes to recycle all the process IDs.
      
      Update #13987.
      Update #16028.
      
      Change-Id: Id2939431991d3b355dfb22f08793585fc0568ce8
      Reviewed-on: https://go-review.googlesource.com/23967
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      Reviewed-by: default avatarAustin Clements <austin@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      cea29c4a
    • Robert Griesemer's avatar
      go/parser: document that parse functions need valid token.FileSet · e980a3d8
      Robert Griesemer authored
      + panic with explicit error if no file set it provided
      
      (Not providing a file set is invalid use of the API; panic
      is the appropriate action rather than returning an error.)
      
      Fixes #16018.
      
      Change-Id: I207f5b2a2e318d65826bdd9522fce46d614c24ee
      Reviewed-on: https://go-review.googlesource.com/24010
      Run-TryBot: Robert Griesemer <gri@golang.org>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      e980a3d8
    • Ian Lance Taylor's avatar
      cmd/go: clarify go get documentation · fee02d27
      Ian Lance Taylor authored
      Make the documentation for `go get` match the documentation for `go
      install`, since `go get` essentially invokes `go install`.
      
      Update #15825.
      
      Change-Id: I374d80efd301814b6d98b86b7a4a68dd09704c92
      Reviewed-on: https://go-review.googlesource.com/23925Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
      fee02d27