v
v copied to clipboard
break self -prod
Describe the bug (edit)
I was compile v 0.3.3:
v self -prod -autofree -gc none
v self
Expected Behavior
normal behaviour compile
Current Behavior
signal 11: segmentation fault
| 0x557697b759be | v(+0x2459be)
| 0x557697b781b4 | v(+0x2481b4)
| 0x557697b37789 | v(+0x207789)
| 0x55769793259e | v(+0x259e)
| 0x7f0da2c9018a | /lib/x86_64-linux-gnu/libc.so.6(+0x2718a)
| 0x7f0da2c90245 | /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85)
| 0x557697932c41 | v(+0x2c41)
Reproduction Steps
install v from git put command
Possible Solution
No response
Additional Information/Context
No response
V version
0.3.3-12-g10261c42
Environment details (OS name and version, etc.)
OS: linux, Kali GNU/Linux Rolling
Processor: 32 cpus, 64bit, little endian, AMD Ryzen 9 5950X 16-Core Processor
CC version: cc (Debian 12.2.0-14) 12.2.0
getwd: /home/matejmag/Documents/v
vmodules: /home/matejmag/.vmodules
vroot: /home/matejmag/Documents/v
vexe: /home/matejmag/Documents/v/v
vexe mtime: 2023-01-31 21:40:45
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.3 10261c4
Git version: git version 2.39.0
Git vroot status: 0.3.3-12-g10261c42
.git/config present: true
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
didn't reproduce on M1 Pro:
v: Ventura 13.0.1
V full version: V 0.3.3 804065a
v self -prod -autofree -gc none
V self compiling (-prod -autofree -gc none -o v2)...
V built successfully as executable "v".
didn't reproduce on M1 Pro:
v: Ventura 13.0.1 V full version: V 0.3.3 804065av self -prod -autofree -gc none V self compiling (-prod -autofree -gc none -o v2)... V built successfully as executable "v".
And after that it can v .?
Not on Linux...
$ v -o v2 -prod -autofree -gc none self
V self compiling (-o v2 -prod -autofree -gc none)...
$ ./v2 -o v3 -prod -autofree -gc none self
V panic: malloc_noscan(-311497027 <= 0)
v hash: 804065a
| 0x564017d45a57 | ./v2(+0x24da57)
| 0x564017d45dbe | ./v2(+0x24ddbe)
| 0x564017d486a4 | ./v2(+0x2506a4)
| 0x564017d068b9 | ./v2(+0x20e8b9)
| 0x564017afa58e | ./v2(+0x258e)
| 0x7fb02839f290 | /usr/lib/libc.so.6(+0x23290)
| 0x7fb02839f34a | /usr/lib/libc.so.6(__libc_start_main+0x8a)
| 0x564017afac35 | ./v2(+0x2c35)
$
C:\v>v self -prod -autofree -gc none
V self compiling (-prod -autofree -gc none -o v2)...
V built successfully as executable "v.exe".
C:\v>v help
Unhandled Exception 0xC0000374
print_backtrace_skipping_top_frames is not implemented
The build happened, but it doesn't work. OS: Windows 11