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

os.read_lines panic: int(20983250944) cast results in -491585536 #15908

Open
leoliu0 opened this issue Sep 28, 2022 · 0 comments
Open

os.read_lines panic: int(20983250944) cast results in -491585536 #15908

leoliu0 opened this issue Sep 28, 2022 · 0 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@leoliu0
Copy link

leoliu0 commented Sep 28, 2022

OS: linux, "Arch Linux"
Processor: 128 cpus, 64bit, little endian, AMD Ryzen Threadripper 3990X 64-Core Processor
CC version: cc (GCC) 12.2.0

getwd: /home/leo/Downloads
vmodules: /home/leo/.vmodules
vroot: /home/leo/v
vexe: /home/leo/v/v
vexe mtime: 2022-09-28 06:56:48
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.1 d6b594c.bdf4c67

Git version: git version 2.37.3
Git vroot status: weekly.2022.39-5-gbdf4c679
.git/config present: true
thirdparty/tcc status: thirdparty-linux-amd64 827f7452

What did you do?
use os.read_lines to read a large file (about 20G csv)

import os
a := os.read_lines(os.args[1]) or { panic(err) }

What did you expect to see?
file being read

What did you see instead?

V panic: int(20983250944) cast results in -491585536
v hash: 385acb4
/tmp/v_1000/sv.11979449102949368545.tmp.c:7535: at _v_panic: Backtrace
/tmp/v_1000/sv.11979449102949368545.tmp.c:17156: by main__main
/tmp/v_1000/sv.11979449102949368545.tmp.c:17557: by main

@leoliu0 leoliu0 added the Bug This tag is applied to issues which reports bugs. label Sep 28, 2022
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.
Projects
None yet
Development

No branches or pull requests

1 participant