v icon indicating copy to clipboard operation
v copied to clipboard

vweb: multiple simultaneous requests causes an invalid memory access exception

Open Andrew-Eathan opened this issue 3 years ago • 0 comments

v doctor's wise words

OS: windows, Microsoft Windows 10 Pro v19044 64-bit
Processor: 4 cpus, 64bit, little endian, Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
CC version: Error: exec failed (CreateProcess) with code 2: The system cannot find the file specified.
 cmd: cc --version

getwd: F:\stuff\Projects\v-mariluu-site - Copy
vmodules: C:\Users\Admin\.vmodules
vroot: F:\Program Files\v
vexe: F:\Program Files\v\v.exe
vexe mtime: 2022-10-14 11:08:08
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.1 6bf2ad1

Git version: git version 2.37.1.windows.1
Git vroot status: weekly.2022.40-70-g6bf2ad1f (2 commit(s) behind V master)
.git/config present: true
thirdparty/tcc status: thirdparty-windows-amd64 125e21e2

What did you do?

requested many css/js/image files at once on a single page, leading to this exact line in vweb to cause an invalid memory access error https://github.com/vlang/v/blob/master/vlib/vweb/vweb.v#L451

image

zip with reproducible example: test.zip you may need to run this multiple times to get the error i'm also not sure, but you might not get this issue if you have a faster hdd or an ssd, in that case rewrite the example code to spam even more requests

What did you expect to see?

not the messy error

What did you see instead?

the messy error

Andrew-Eathan avatar Oct 14 '22 20:10 Andrew-Eathan