Both prebuild release and manual installation crashed on Windows10 2004 caused by V panic: substr(4, 0) out of bounds (len=0)
#19466
Labels
Bug
This tag is applied to issues which reports bugs.
Install/first impressions
Bugs/feature requests, that are related to the first impressions that users have of V.
Modules: os
Bugs/feature requests, that are related to the `os` module.
OS: Windows
Bugs/feature requests, that are specific to Windows OS.
Describe the bug
Prebuild release crashed on Windows10 2004 when in REPL to eval or build any HelloWorld code
Manual installation crashed using
.\make.bat
Reproduction Steps
Prebuild release:
download latest release: v-weekly.2023.39.zip
extract it and add to PATH, before this I cleaned all PATH on Windows
run cmd.exe
run v
repl is opened
Input "2+3" and enter
crash
create an empty
fn main(){}
source fileuse
v .
to buildcrash
Manual installation:
git clone https://github.com/vlang/v
cd v
and run.\make.bat
Expected Behavior
Prebuild release can work without crash.
Manual installation can work.
Current Behavior
Prebuild binary crashed
Compile from source crashed
Possible Solution
No response
Additional Information/Context
Both prebuild and manual installation crashed,
Which I have tried:
git clone https://github.com/vlang/v
and build it;None of them is available, all crashed.
All of crash caused by
V panic: substr(4, 0) out of bounds (len=0)
There is another issue,
The
make.bat
usewhere
to detect GCC or Clang, it caused detect GCC failed even I have already added "mingw/bin" into PATH,So I deleted GCC detect code below, and built using GCC, still crashed, same issue:
GCC can build
v_win_bootstrap.exe
, after that crashedV version
I have tried newest code by
git clone
,and also tried newest prebuild release(weekly.2023.39) and old release(0.4.1_2), try both binary or build it from source.
Environment details (OS name and version, etc.)
Windows10 2004 x64
Hardware Ryzen7 1700x
The text was updated successfully, but these errors were encountered: