Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array invalid slice index in array.v 566 #23713

Open
quaesitor-scientiam opened this issue Feb 13, 2025 · 1 comment
Open

array invalid slice index in array.v 566 #23713

quaesitor-scientiam opened this issue Feb 13, 2025 · 1 comment
Labels
Bug This tag is applied to issues which reports bugs. Good First Issue (easy task) This issue is suitable to be worked on by new contributors. Status: Confirmed This bug has been confirmed to be valid by a contributor.

Comments

@quaesitor-scientiam
Copy link
Contributor

quaesitor-scientiam commented Feb 13, 2025

V version: V 0.4.9 362958d, press to see full `v doctor` output
V full version V 0.4.9 45fd7eb.362958d
OS windows, Microsoft Windows 11 Pro 26100 64-bit
Processor 24 cpus, 64bit, little endian, AMD Ryzen 9 5900X 12-Core Processor
Memory 99.29GB/127.92GB
V executable S:\repo\vlang\v.exe
V last modified time 2025-02-13 16:33:24
V home dir OK, value: S:\repo\vlang
VMODULES OK, value: C:\Users\john3.vmodules
VTMP OK, value: S:\temp\v_0
Current working dir OK, value: S:\vProjects\vDebug
Git version git version 2.45.1.windows.1
V git status weekly.2025.07-83-g362958d0
.git/config present true
cc version N/A
gcc version N/A
clang version clang version 18.1.8
msvc version Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34435 for x64
tcc version tcc version 0.9.27 (x86_64 Windows)
tcc git status thirdparty-windows-amd64 b425ac82
emcc version N/A
glibc version ldd (cygwin) 3.5.4

What did you do?
./v -g -o vdbg cmd/v && ./vdbg -g run main.v && S:\vProjects\vDebug\main.exe

module main

import v.builder.nativebuilder

fn main() {
	nativebuilder.start()
}

What did you see?

================ V panic ================
   module: builtin
 function: slice()
  message: array.slice: invalid slice index (start>end):1, 0
     file: S:/repo/vlang/vlib/builtin/array.v:566
   v hash: 362958d
=========================================
S:/temp/v_0/../../../../../..S:\repo\vlang\vlib\builtin\builtin.c.v:87: at panic_debug: Backtrace
S:/temp/v_0/../../../../../..S:\repo\vlang\vlib\builtin\array.v:566: by array_slice
S:/temp/v_0/../../../../../..S:\repo\vlang\vlib\v\pref\pref.v:1082: by v__pref__parse_args_and_show_errors
S:/temp/v_0/../../../../../..S:\repo\vlang\vlib\v\pref\pref.v:268: by v__pref__parse_args
S:/temp/v_0/../../../../../..S:\repo\vlang\vlib\v\builder\nativebuilder\nativebuilder.v:11: by v__builder__nativebuilder__start
S:/temp/v_0/../../../../../..S:\vProjects\vDebug\main.v:6: by main__main
S:/temp/v_0/../../../../../..S:\temp\v_0\main.01JM073GNZYV8GFCXZ5P3VXKYN.tmp.c:56615: by wmain
00a31570 : by ???
00a316d3 : by ???
7ffd62dbe8d7 : by ???

What did you expect to see?

clean compile

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Copy link

Connected to Huly®: V_0.6-22131

@JalonSolov JalonSolov added Bug This tag is applied to issues which reports bugs. Status: Confirmed This bug has been confirmed to be valid by a contributor. labels Feb 13, 2025
@felipensp felipensp added the Good First Issue (easy task) This issue is suitable to be worked on by new contributors. label Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs. Good First Issue (easy task) This issue is suitable to be worked on by new contributors. Status: Confirmed This bug has been confirmed to be valid by a contributor.
Projects
None yet
Development

No branches or pull requests

3 participants