Open
Description
Describe the bug
When run test, it always fail in native test, but if run separate test on native, it pass.
Reproduction Steps
v test vlib
Expected Behavior
pass test
Current Behavior
OK [ 554/2394] C: 1401.9 ms, R: 2.945 ms vlib/v/slow_tests/assembly/asm_test.amd64.v
OK [ 555/2394] C: 531.6 ms, R: 926.344 ms vlib/v/slow_tests/comptime_if_expr_threads_test.v
FAIL [ 556/2394] C: 348.5 ms, R: 10795.797 ms vlib/v/gen/native/tests/native_test.v
OK [ 1/30] 1935.708 ms vlib/v/gen/native/tests/arrays.vv , took 1934ms to compile, 0ms to run
OK [ 2/30] 280.704 ms vlib/v/gen/native/tests/asm.vv , took 271ms to compile, 8ms to run
OK [ 3/30] 240.189 ms vlib/v/gen/native/tests/assert.vv , took 238ms to compile, 1ms to run
OK [ 4/30] 329.697 ms vlib/v/gen/native/tests/assign.vv , took 327ms to compile, 2ms to run
OK [ 5/30] 261.977 ms vlib/v/gen/native/tests/atexpr.vv , took 258ms to compile, 3ms to run
OK [ 6/30] 238.567 ms vlib/v/gen/native/tests/compare.vv , took 237ms to compile, 1ms to run
OK [ 7/30] 204.490 ms vlib/v/gen/native/tests/comptime.vv , took 200ms to compile, 4ms to run
OK [ 8/30] 264.323 ms vlib/v/gen/native/tests/defer.vv , took 262ms to compile, 1ms to run
OK [ 9/30] 318.450 ms vlib/v/gen/native/tests/enum.vv , took 313ms to compile, 1ms to run
OK [10/30] 322.608 ms vlib/v/gen/native/tests/expressions.vv , took 318ms to compile, 4ms to run
OK [11/30] 383.506 ms vlib/v/gen/native/tests/fibonacci_native.vv , took 380ms to compile, 3ms to run
OK [12/30] 377.819 ms vlib/v/gen/native/tests/float.vv , took 369ms to compile, 7ms to run
OK [13/30] 398.935 ms vlib/v/gen/native/tests/for.vv , took 394ms to compile, 3ms to run
OK [14/30] 314.929 ms vlib/v/gen/native/tests/general.vv , took 311ms to compile, 3ms to run
OK [15/30] 278.982 ms vlib/v/gen/native/tests/hello.vv , took 276ms to compile, 1ms to run
OK [16/30] 338.145 ms vlib/v/gen/native/tests/ifs.vv , took 335ms to compile, 2ms to run
OK [17/30] 253.296 ms vlib/v/gen/native/tests/inc.vv , took 248ms to compile, 4ms to run
OK [18/30] 298.275 ms vlib/v/gen/native/tests/libc.vv , took 297ms to compile, 1ms to run
OK [19/30] 221.436 ms vlib/v/gen/native/tests/match.vv , took 217ms to compile, 3ms to run
FAIL [20/30] 209.955 ms /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/method.vv failed to run, res.exit_code: 126 != 0
> The failed program, produced this output:
------------------------------------------------
------------------------------------------------
> tmperrfile: /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/method.vv.tmperr, exists: true, content:
------------------------------------------------
sh: 1: /tmp/v_1000/tsession_7c05cccc7740_01JVF0PRH0NS8THTFKXWKMZKM9/native_tests/method.vv.exe: Text file busy
------------------------------------------------
OK [21/30] 274.633 ms vlib/v/gen/native/tests/multi_assign.vv , took 271ms to compile, 3ms to run
OK [22/30] 332.584 ms vlib/v/gen/native/tests/pointers.vv , took 329ms to compile, 3ms to run
OK [23/30] 334.353 ms vlib/v/gen/native/tests/print.vv , took 332ms to compile, 2ms to run
OK [24/30] 263.649 ms vlib/v/gen/native/tests/simple_fn_calls.vv , took 258ms to compile, 4ms to run
OK [25/30] 372.783 ms vlib/v/gen/native/tests/string.vv , took 371ms to compile, 1ms to run
OK [26/30] 252.720 ms vlib/v/gen/native/tests/struct.vv , took 248ms to compile, 4ms to run
OK [27/30] 387.809 ms vlib/v/gen/native/tests/struct_with_fn.vv , took 382ms to compile, 5ms to run
OK [28/30] 439.259 ms vlib/v/gen/native/tests/sumcall.vv , took 438ms to compile, 1ms to run
OK [29/30] 304.828 ms vlib/v/gen/native/tests/typeof.vv , took 260ms to compile, 2ms to run
FAIL [30/30] 357.124 ms /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/vtest_int_cmp.vv failed to run, res.exit_code: 126 != 0
> The failed program, produced this output:
------------------------------------------------
------------------------------------------------
> tmperrfile: /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/vtest_int_cmp.vv.tmperr, exists: true, content:
------------------------------------------------
sh: 1: /tmp/v_1000/tsession_7c05cccc7740_01JVF0PRH0NS8THTFKXWKMZKM9/native_tests/vtest_int_cmp.vv.exe: Permission denied
------------------------------------------------
--------------------------------------------------------------------------------
Summary for native: 2 failed, 28 passed, 30 total. Elapsed time: 10792 ms.
FAIL [ 557/2394] C: 322.1 ms, R: 10965.593 ms vlib/v/gen/llvm/tests/native_test.v
OK [ 1/30] 2087.244 ms vlib/v/gen/native/tests/arrays.vv , took 2086ms to compile, 0ms to run
OK [ 2/30] 236.024 ms vlib/v/gen/native/tests/asm.vv , took 234ms to compile, 1ms to run
OK [ 3/30] 282.849 ms vlib/v/gen/native/tests/assert.vv , took 279ms to compile, 3ms to run
OK [ 4/30] 320.412 ms vlib/v/gen/native/tests/assign.vv , took 273ms to compile, 3ms to run
OK [ 5/30] 204.955 ms vlib/v/gen/native/tests/atexpr.vv , took 199ms to compile, 5ms to run
OK [ 6/30] 222.883 ms vlib/v/gen/native/tests/compare.vv , took 221ms to compile, 1ms to run
OK [ 7/30] 259.252 ms vlib/v/gen/native/tests/comptime.vv , took 255ms to compile, 3ms to run
OK [ 8/30] 344.769 ms vlib/v/gen/native/tests/defer.vv , took 342ms to compile, 2ms to run
FAIL [ 9/30] 246.715 ms /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/enum.vv failed to run, res.exit_code: 126 != 0
> The failed program, produced this output:
------------------------------------------------
------------------------------------------------
> tmperrfile: /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/enum.vv.tmperr, exists: true, content:
------------------------------------------------
sh: 1: /tmp/v_1000/tsession_7c05cccc7740_01JVF0PRH0NS8THTFKXWKMZKM9/native_tests/enum.vv.exe: Permission denied
------------------------------------------------
OK [10/30] 246.160 ms vlib/v/gen/native/tests/expressions.vv , took 244ms to compile, 1ms to run
OK [11/30] 319.418 ms vlib/v/gen/native/tests/fibonacci_native.vv , took 295ms to compile, 6ms to run
OK [12/30] 324.769 ms vlib/v/gen/native/tests/float.vv , took 322ms to compile, 2ms to run
OK [13/30] 379.452 ms vlib/v/gen/native/tests/for.vv , took 376ms to compile, 1ms to run
OK [14/30] 397.156 ms vlib/v/gen/native/tests/general.vv , took 389ms to compile, 7ms to run
OK [15/30] 287.067 ms vlib/v/gen/native/tests/hello.vv , took 285ms to compile, 1ms to run
OK [16/30] 320.796 ms vlib/v/gen/native/tests/ifs.vv , took 313ms to compile, 6ms to run
OK [17/30] 282.214 ms vlib/v/gen/native/tests/inc.vv , took 280ms to compile, 1ms to run
OK [18/30] 307.675 ms vlib/v/gen/native/tests/libc.vv , took 303ms to compile, 4ms to run
FAIL [19/30] 326.338 ms /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/match.vv failed to run, res.exit_code: 126 != 0
> The failed program, produced this output:
------------------------------------------------
------------------------------------------------
> tmperrfile: /media/HD/github/kbkpbot/v/vlib/v/gen/native/tests/match.vv.tmperr, exists: true, content:
------------------------------------------------
sh: 1: /tmp/v_1000/tsession_7c05cccc7740_01JVF0PRH0NS8THTFKXWKMZKM9/native_tests/match.vv.exe: Text file busy
------------------------------------------------
OK [20/30] 246.202 ms vlib/v/gen/native/tests/method.vv , took 241ms to compile, 4ms to run
OK [21/30] 255.983 ms vlib/v/gen/native/tests/multi_assign.vv , took 252ms to compile, 3ms to run
OK [22/30] 257.636 ms vlib/v/gen/native/tests/pointers.vv , took 256ms to compile, 1ms to run
OK [23/30] 246.087 ms vlib/v/gen/native/tests/print.vv , took 243ms to compile, 2ms to run
OK [24/30] 271.236 ms vlib/v/gen/native/tests/simple_fn_calls.vv , took 269ms to compile, 1ms to run
OK [25/30] 400.295 ms vlib/v/gen/native/tests/string.vv , took 392ms to compile, 2ms to run
OK [26/30] 452.135 ms vlib/v/gen/native/tests/struct.vv , took 444ms to compile, 7ms to run
OK [27/30] 379.928 ms vlib/v/gen/native/tests/struct_with_fn.vv , took 372ms to compile, 7ms to run
OK [28/30] 336.951 ms vlib/v/gen/native/tests/sumcall.vv , took 332ms to compile, 4ms to run
OK [29/30] 341.002 ms vlib/v/gen/native/tests/typeof.vv , took 298ms to compile, 4ms to run
OK [30/30] 375.705 ms vlib/v/gen/native/tests/vtest_int_cmp.vv , took 374ms to compile, 1ms to run
--------------------------------------------------------------------------------
Summary for native: 2 failed, 28 passed, 30 total. Elapsed time: 10960 ms.
OK [ 558/2394] C: 289.6 ms, R: 4.499 ms vlib/v/slow_tests/map_issue_16285_test.v
OK [ 559/2394] C: 365.3 ms, R: 961.048 ms vlib/v/slow_tests/crun_mode/crun_test.v
OK [ 560/2394] C: 351.4 ms, R: 6.866 ms vlib/v/slow_tests/map_issue_22139_clear_test.v
OK [ 561/2394] C: 392.3 ms, R: 4.663 ms vlib/v/slow_tests/map_issue_22143_clear_test.v
OK [ 562/2394] C: 334.6 ms, R: 470.120 ms vlib/v/slow_tests/keep_args_alive_test.c.v
OK [ 563/2394] C: 374.0 ms, R: 1705.079 ms vlib/v/slow_tests/map_issue_22145_clear_test.v
Possible Solution
No response
Additional Information/Context
But if run test on native, it always pass.
$ v test vlib/v/gen/native
---- Testing... --------------------------------------------------------------------------
OK [1/2] C: 1000.9 ms, R: 1.915 ms vlib/v/gen/native/macho_test.v
OK [2/2] C: 211.8 ms, R: 4608.065 ms vlib/v/gen/native/tests/native_test.v
------------------------------------------------------------------------------------------
Summary for all V _test.v files: 2 passed, 2 total. Elapsed time: 4821 ms, on 2 parallel jobs. Comptime: 1212 ms. Runtime: 4609 ms.
V version
V 0.4.10 d433835
Environment details (OS name and version, etc.)
V full version | V 0.4.10 d433835 |
---|---|
OS | linux, Ubuntu 24.04.2 LTS |
Processor | 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz |
Memory | 11.27GB/15.51GB |
V executable | /media/HD/github/kbkpbot/v/v |
V last modified time | 2025-05-16 14:03:55 |
V home dir | OK, value: /media/HD/github/kbkpbot/v |
VMODULES | OK, value: /home/mars/.vmodules |
VTMP | OK, value: /tmp/v_1000 |
Current working dir | OK, value: /media/HD/github/kbkpbot/v |
Git version | git version 2.43.0 |
V git status | weekly.2025.17-115-gd433835a |
.git/config present | true |
cc version | cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 |
gcc version | gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 |
clang version | Ubuntu clang version 18.1.3 (1ubuntu1) |
tcc version | tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux) |
tcc git status | thirdparty-linux-amd64 696c1d84 |
emcc version | N/A |
glibc version | ldd (Ubuntu GLIBC 2.39-0ubuntu8.4) 2.39 |
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.
Metadata
Metadata
Assignees
Labels
This tag is applied to issues which reports bugs.Bugs/feature requests, that are specific to Linux-based OS.Bugs requests, that are related to failing tests.Bugs/feature requests, that are related to testing framework, `test_` functions and `_test.v` files.Bugs/feature requests, that are related to the V native code backend.