commit | 995e157edbea8732769d63c3e0aecd29d6fa9774 | [log] [tgz] |
---|---|---|
author | tomlu <tomlu@google.com> | Tue Jan 09 12:36:37 2018 -0800 |
committer | Copybara-Service <copybara-piper@google.com> | Tue Jan 09 12:38:07 2018 -0800 |
tree | 4b77728e50cfbf9245f11964fba966152cf0e274 | |
parent | 48c21586a6776c91172f2ed5f9a63d0c22e08d16 [diff] |
Fix bug in unix_jni.cc that causes Path#exist to spuriously return true. We use errno to signal an error in the stat call that gets passed back to Java land. However, between the time we make the failed stat syscall and the time that we read the final value of errno we will very rarely make other syscalls in between, which will stomp the value of errno back to 0. This will get interpreted as "no error, the file exists" by the VFS. This bug has existed since 2009. Only a perturbation of the sequence of syscalls we make during startup has since caused the bug to surface. PiperOrigin-RevId: 181358035
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.