Uncaught NumberFormatException caused by --experimental_execution_log_file path #14949
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Local-Exec
Issues and PRs for the Execution (Local) team
type: bug
Description of the problem:
Bazel sometimes crashes when the path passed to
--experimental_execution_log_file
contains a number greater thanLong.MAX_VALUE
(9223372036854775807
). This can also happen if you set--execution_log_json_file
or--execution_log_binary_file
because a temp file is created for the execution log file and it will have a large number in it.Stack Trace:
This happens because
SpawnLogModule
creates anAsynchronousFileOutputStream
, which spawns a thread with the name of the file in the thread's name.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
It's not deterministic because it depends on some async thread stuff, but I can get it to happend pretty regularly by building stuff with
--experimental_execution_log_file=/tmp/exec99999999999999999999999999999999.log
Possible Fixes
NumberFormatException
exception andreturn MAX_SORT_INDEX;
If you have any preference as to which solution to implement, I'd be happy to submit a PR.
What operating system are you running Bazel on?
Ubuntu 20.04
What's the output of
bazel info release
?release 5.0.0
The text was updated successfully, but these errors were encountered: