bazel: regression in 20250526.2 for unpacking non-ascii file names
Description of the bug:
admin@ip-172-31-7-56:~/vc/ef2$ rm -rf ~/.cache/bazel*
admin@ip-172-31-7-56:~/vc/ef2$ bazelisk build -k $REDACTED/...
2025/06/11 09:49:36 Downloading https://releases.bazel.build/9.0.0/rolling/9.0.0-pre.20250526.2/bazel-9.0.0-pre.20250526.2-linux-x86_64...
2025/06/11 09:49:36 Skipping basic authentication for releases.bazel.build because no credentials found in /home/admin/.netrc
Downloading: 59 MB out of 59 MB (100%)
Extracting Bazel installation...
Starting local Bazel server (9.0.0-pre.20250526.2) and connecting to it...
INFO: Repository aspect_rules_js+ instantiated at:
<builtin>: in <toplevel>
Repository rule http_archive defined at:
/home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/bazel_tools/tools/build_defs/repo/http.bzl:394:31: in <toplevel>
ERROR: /home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/bazel_tools/tools/build_defs/repo/http.bzl:139:45: An error occurred during the fetch of repository 'aspect_rules_js+':
Traceback (most recent call last):
File "/home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/bazel_tools/tools/build_defs/repo/http.bzl", line 139, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/aspect_rules_js+/temp11524386281555661874/rules_js-v2.3.7.tar.gz to /home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/aspect_rules_js+/temp11524386281555661874: [unix_jni.cc:281] /home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/aspect_rules_js+/js/private/test/image/non_ascii/empty empty.?? (No such file or directory)
WARNING: errors encountered while analyzing target '//infra/bento_runner/insert:insert_lib', it will not be built.
no such package '@@aspect_rules_js+//npm': java.io.IOException: Error extracting /home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/aspect_rules_js+/temp11524386281555661874/rules_js-v2.3.7.tar.gz to /home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/aspect_rules_js+/temp11524386281555661874: [unix_jni.cc:281] /home/admin/.cache/bazel/_bazel_admin/fd974fe89a796f9c35a0944ed09934ee/external/aspect_rules_js+/js/private/test/image/non_ascii/empty empty.?? (No such file or directory)
WARNING: errors encountered while analyzing target 'REDACTED'
admin@ip-172-31-7-56:~/vc/ef2$ cat .bazelversion
9.0.0-pre.20250526.2
admin@ip-172-31-7-56:~/vc/ef2$ vi .bazelversion
admin@ip-172-31-7-56:~/vc/ef2$ bazelisk build -k REDACTED/...
2025/06/11 09:52:33 Downloading https://releases.bazel.build/9.0.0/rolling/9.0.0-pre.20250516.2/bazel-9.0.0-pre.20250516.2-linux-x86_64...
2025/06/11 09:52:33 Skipping basic authentication for releases.bazel.build because no credentials found in /home/admin/.netrc
Downloading: 59 MB out of 59 MB (100%)
Extracting Bazel installation...
Starting local Bazel server (9.0.0-pre.20250516.2) and connecting to it...
INFO: Analyzed 9 targets (369 packages loaded, 13407 targets and 37 aspects configured).
INFO: Found 9 targets...
INFO: Elapsed time: 219.457s, Critical Path: 70.04s
INFO: 989 processes: 263 internal, 726 linux-sandbox.
INFO: Build completed successfully, 989 total actions
admin@ip-172-31-7-56:~/vc/ef2$
Which category does this issue belong to?
regression
What’s the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No full repro yet; the last release appears to work normally on dev workstations. The above is from an AWS VM running Debian 12, which I occasionally use.
Which operating system are you running Bazel on?
Linux
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
I’m sorry; I don’t have time for this right now.
Any other information, logs, or outputs that you want to share?
Maybe some kind of encoding issue determined by my locale settings?
$$ set|grep -v CRED|grep '^[A-Z]'
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:expand_aliases:extglob:extquote:force_fignore:globasciiranges:globskipdots:histappend:interactive_comments:login_shell:patsub_replacement:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=([0]="0")
BASH_ARGV=()
BASH_CMDS=()
BASH_COMPLETION_VERSINFO=([0]="2" [1]="11")
BASH_LINENO=()
BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:.
BASH_REMATCH=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
BASH_VERSION='5.2.15(1)-release'
COLUMNS=119
COMP_WORDBREAKS=$' \t\n"\'><=;|&(:'
DIRSTACK=()
EUID=1000
GROUPS=()
HISTCONTROL=ignoreboth
HISTFILE=/home/admin/.bash_history
HISTFILESIZE=2000
HISTSIZE=1000
HOME=/home/admin
HOSTNAME=ip-172-31-7-56
HOSTTYPE=x86_64
IFS=$' \t\n'
LANG=C.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LINES=36
LOGNAME=admin
LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:'
MACHTYPE=x86_64-pc-linux-gnu
MAILCHECK=60
MOTD_SHOWN=pam
OLDPWD=/home/admin/vc
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PIPESTATUS=([0]="0" [1]="0")
PPID=300743
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS2='> '
PS4='+ '
PWD=/home/admin/vc/ef2
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
SSH_CLIENT='62.216.209.72 12456 22'
SSH_CONNECTION='62.216.209.72 12456 172.31.7.56 22'
SSH_TTY=/dev/pts/0
TERM=xterm-256color
UID=1000
USER=admin
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_CLASS=user
XDG_SESSION_ID=19
XDG_SESSION_TYPE=tty
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (9 by maintainers)
Commits related to this issue
- Force a UTF-8 locale when `en_US.ISO-8859-1` is not available This provides UTF-8 support on systems that don't have valid locale settings by default and also don't provide the `en_US.ISO-8859-1` loc... — committed to bazel-io/bazel by fmeum a year ago
- Force a UTF-8 locale when `en_US.ISO-8859-1` is not available This provides UTF-8 support on systems that don't have valid locale settings by default and also don't provide the `en_US.ISO-8859-1` loc... — committed to bazel-io/bazel by fmeum a year ago
- [8.4.0] Force a UTF-8 locale when `en_US.ISO-8859-1` is not available (#26554) This provides UTF-8 support on systems that don't have valid locale settings by default and also don't provide the `en_U... — committed to bazelbuild/bazel by bazel-io a year ago
Sounds good - would you like to send a
CLPR?