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

cargo test failed with msg "error: test failed, to rerun pass --lib" #374

Open
3togo opened this issue Mar 9, 2023 · 3 comments
Open

cargo test failed with msg "error: test failed, to rerun pass --lib" #374

3togo opened this issue Mar 9, 2023 · 3 comments

Comments

@3togo
Copy link

3togo commented Mar 9, 2023

Below is the output:

test core::macros::tests::match_view_macro_with_get_rows ... ok
test core::index::tests::non_macro_seq_assign ... ok
test core::macros::tests::match_eval_macro_with_set_rows ... ok
[kernel][1678353237][1039744] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/kernel/random_engine.hpp:1065 ] Launching uniformPhilox: Blocks: [1] Threads: [256] Shared Memory: 0
[kernel][1678353237][1039743] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/kernel/random_engine.hpp:1065 ] Launching uniformPhilox: Blocks: [1] Threads: [256] Shared Memory: 0
[jit][1678353237][1039683] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/compile_module.cpp:467 ] {5423006948853190671  : loaded from /home/eli/.arrayfire/KER5423006948853190671_CU_86_AF_39.bin for NVIDIA GeForce RTX 3080 }
         1          1          1 
         1          1          1 
         1          1          1 

[kernel][1678353237][1039744] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/kernel/random_engine.hpp:1065 ] Launching uniformPhilox: Blocks: [1] Threads: [256] Shared Memory: 0
test core::macros::tests::seq_view2 ... ok[kernel][1678353237][1039686] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/Kernel.hpp:37 ] Launching arrayfire::cuda::index<float>: Blocks: [1, 1, 1] Threads: [64, 4, 1] Shared Memory: 0

test core::array::tests::thread_borrow_array ... [kernel][1678353237][1039739] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/kernel/random_engine.hpp:1065 ] Launching uniformPhilox: Blocks: [1] Threads: [256] Shared Memory: 0
ok
test core::macros::tests::seq_view ... ok
[kernel][1678353237][1039736] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/jit.cpp:520 ] Launching : Dims: [9,1,1,1] Blocks: [1 1 1] Threads: [128 1 1] threads: 128
[kernel][1678353237][1039669] [ /work/gitee/j_arrayfires/arrayfire/src/backend/cuda/kernel/random_engine.hpp:1065 ] Launching uniformPhilox: Blocks: [1] Threads: [256] Shared Memory: 0
error: test failed, to rerun pass `--lib`

Caused by:
  process didn't exit successfully: `/work/gitee/j_arrayfires/arrayfire-rust/target/debug/deps/arrayfire-32e4c111c1706860` (signal: 11, SIGSEGV: invalid memory reference)
eli@sf-5820:/work/gitee/j_arrayfires/arrayfire-rust/tests$ 

@9prady9
Copy link
Member

9prady9 commented Mar 10, 2023

@3togo Nothing has changed in the build code build.rs. Did you check if all necessary inputs for cargo build are available ? Please share reproducible steps

@Gardene-el
Copy link

Here are reproducible steps:

Cr0c0diLe<Lieutenaunt>*rust_lab*> git clone https://github.com/arrayfire/arrayfire-rust.git
Cloning into 'arrayfire-rust'...
remote: Enumerating objects: 51300, done.
remote: Counting objects: 100% (1373/1373), done.
remote: Compressing objects: 100% (226/226), done.
remote: Total 51300 (delta 1098), reused 1339 (delta 1093), pack-reused 49927
Receiving objects: 100% (51300/51300), 18.77 MiB | 7.41 MiB/s, done.
Resolving deltas: 100% (47756/47756), done.
Cr0c0diLe<Lieutenaunt>*rust_lab*> cd arrayfire-rust
Cr0c0diLe<Lieutenaunt>*arrayfire-rust*> git submodule update --init git submodule update --init --recursive
Submodule 'arrayfire' (https://github.com/arrayfire/arrayfire) registered for path 'arrayfire'
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire'...
Submodule path 'arrayfire': checked out '218dd2c99300e77496239ade76e94b0def65d032'
Submodule 'assets' (https://github.com/arrayfire/assets) registered for path 'arrayfire/assets'
Submodule 'extern/cub' (https://github.com/NVlabs/cub.git) registered for path 'arrayfire/extern/cub'
Submodule 'extern/forge' (https://github.com/arrayfire/forge.git) registered for path 'arrayfire/extern/forge'
Submodule 'extern/glad' (https://github.com/arrayfire/glad.git) registered for path 'arrayfire/extern/glad'
Submodule 'extern/spdlog' (https://github.com/gabime/spdlog.git) registered for path 'arrayfire/extern/spdlog'
Submodule 'src/backend/cpu/threads' (https://github.com/alltheflops/threads.git) registered for path 'arrayfire/src/backend/cpu/threads'
Submodule 'test/data' (https://github.com/arrayfire/arrayfire_data) registered for path 'arrayfire/test/data'
Submodule 'test/gtest' (https://github.com/google/googletest.git) registered for path 'arrayfire/test/gtest'
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/assets'...
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/extern/cub'...
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/extern/forge'...
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/extern/glad'...
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/extern/spdlog'...
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/src/backend/cpu/threads'...
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/test/data'...
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/test/gtest'...
Submodule path 'arrayfire/assets': checked out 'c53bfab909adfeed626f91ed419555711e20bca5'
Submodule path 'arrayfire/extern/cub': checked out 'd106ddb991a56c3df1b6d51b2409e36ba8181ce4'
Submodule path 'arrayfire/extern/forge': checked out '1a0f0cb6371a8c8053ab5eb7cbe3039c95132389'
Submodule 'extern/glm' (https://github.com/g-truc/glm.git) registered for path 'arrayfire/extern/forge/extern/glm'
Cloning into '/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/arrayfire/extern/forge/extern/glm'...
Submodule path 'arrayfire/extern/forge/extern/glm': checked out '9749727c2db4742369219e1d452f43e918734b4e'
Submodule path 'arrayfire/extern/glad': checked out '6e58ccdfa8e65e1dc5d04a0b9c752c6508ef80b5'
Submodule path 'arrayfire/extern/spdlog': checked out 'caff7296b162d97e44d6a1cc039adf689cfc02b3'
Submodule path 'arrayfire/src/backend/cpu/threads': checked out 'c483ad32b68c0301d91ff5d2bfc88d02589e9a43'
Submodule path 'arrayfire/test/data': checked out '408f44059015c57a66e13b4c98df86ebcb427950'
Submodule path 'arrayfire/test/gtest': checked out '2fe3bd994b3189899d93f1d5a881e725e046fdc2'
Cr0c0diLe<Lieutenaunt>*arrayfire-rust*> cargo build --all
    Updating crates.io index
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling libm v0.2.8
   Compiling thiserror v1.0.49
   Compiling ucd-trie v0.1.6
   Compiling memchr v2.6.4
   Compiling serde v1.0.188
   Compiling serde_json v1.0.107
   Compiling itoa v1.0.9
   Compiling ryu v1.0.15
   Compiling libc v0.2.149
   Compiling glob v0.3.1
   Compiling cfg-if v1.0.0
   Compiling lazy_static v1.4.0
   Compiling cl-sys v0.4.3
   Compiling cuda-config v0.1.0
   Compiling num-traits v0.2.17
   Compiling num-integer v0.1.45
   Compiling num-bigint v0.4.4
   Compiling num-rational v0.4.1
   Compiling num-iter v0.1.43
   Compiling cuda-runtime-sys v0.3.0-alpha.1
   Compiling quote v1.0.33
   Compiling syn v2.0.38
   Compiling num-complex v0.4.4
   Compiling half v2.3.1
   Compiling thiserror-impl v1.0.49
   Compiling serde_derive v1.0.188
   Compiling num v0.4.1
   Compiling pest v2.7.4
   Compiling semver-parser v0.10.2
   Compiling semver v0.11.0
   Compiling rustc_version v0.3.3
   Compiling arrayfire v3.8.0 (/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust)
   Compiling af-opencl-interop v3.7.1 (/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/opencl-interop)
   Compiling af-cuda-interop v3.7.1 (/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/cuda-interop)
    Finished dev [unoptimized + debuginfo] target(s) in 5.83s
Cr0c0diLe<Lieutenaunt>*arrayfire-rust*> cargo test
   Compiling cc v1.0.83
   Compiling pkg-config v0.3.27
   Compiling vcpkg v0.2.15
   Compiling num-traits v0.2.17
   Compiling crossbeam-utils v0.8.16
   Compiling itoa v1.0.9
   Compiling ryu v1.0.15
   Compiling crc32fast v1.3.2
   Compiling adler v1.0.2
   Compiling curl v0.4.44
   Compiling socket2 v0.4.9
   Compiling openssl-probe v0.1.5
   Compiling byteorder v1.5.0
   Compiling serde v1.0.188
   Compiling serde_json v1.0.107
   Compiling miniz_oxide v0.7.1
   Compiling flate2 v1.0.27
   Compiling crossbeam-channel v0.5.8
   Compiling openssl-sys v0.9.93
   Compiling libz-sys v1.1.12
   Compiling curl-sys v0.4.67+curl-8.3.0
   Compiling pbr v1.1.1
   Compiling num-integer v0.1.45
   Compiling num-complex v0.4.4
   Compiling half v2.3.1
   Compiling num-bigint v0.4.4
   Compiling num-iter v0.1.43
   Compiling num-rational v0.4.1
   Compiling mnist v0.5.0
   Compiling bincode v1.3.3
   Compiling num v0.4.1
   Compiling arrayfire v3.8.0 (/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust)
    Finished test [unoptimized + debuginfo] target(s) in 2.53s
     Running unittests src/lib.rs (target/debug/deps/arrayfire-3c325ae9dd880d63)

running 34 tests
test core::macros::tests::dim4_construction ... ok
test core::macros::tests::seq_construction ... ok
ArrayFire v3.8.3 (CUDA, 64-bit Linux, build default)
Platform: CUDA Runtime 12.0, Driver: 535.113.01
[0] NVIDIA GeForce RTX 4090 Laptop GPU, 16080 MB, CUDA Compute 8.9
test core::macros::tests::constant_macro ... ok
ArrayFire v3.8.3 (CUDA, 64-bit Linux, build default)
Platform: CUDA Runtime 12.0, Driver: 535.113.01
[0] NVIDIA GeForce RTX 4090 Laptop GPU, 16080 MB, CUDA Compute 8.9
ArrayFire v3.8.3 (CUDA, 64-bit Linux, build default)
Platform: CUDA Runtime 12.0, Driver: 535.113.01
[0] NVIDIA GeForce RTX 4090 Laptop GPU, 16080 MB, CUDA Compute 8.9

[3 3 1 1]
   Offset: 0
   Strides: [1 3 9 9]
test core::index::tests::change_rows ... ok
test core::macros::tests::match_eval_macro_with_set_rows ... ok

[3 3 1 1]
   Offset: 0
   Strides: [1 3 9 9]
test core::index::tests::change_row ... ok
test core::macros::tests::match_view_macro_with_get_rows ... ok
         3          3          3 
         3          3          3 
         3          3          3 

test core::array::tests::thread_move_array ... ok
         1          1          1 
         1          1          1 
         1          1          1 

test core::array::tests::thread_borrow_array ... ok
test core::index::tests::non_macro_seq_assign ... ok
test core::array::tests::access_using_rwlock ... ok
test core::array::tests::accum_using_channel ... ok
test core::array::tests::read_from_multiple_threads ... ok
test core::macros::tests::eval_assign_array_to_seqd_array ... ok
test core::macros::tests::eval_assign_seq_indexed_array ... ok
test core::macros::tests::seq_view2 ... ok
test core::macros::tests::rand_macro ... ok
test core::index::tests::setrow ... ok
test core::index::tests::get_rows ... ok
error: test failed, to rerun pass `--lib`

Caused by:
  process didn't exit successfully: `/home/Cr0c0diLe/Documents/rust_lab/arrayfire-rust/target/debug/deps/arrayfire-3c325ae9dd880d63` (signal: 11, SIGSEGV: invalid memory reference)

@9prady9
Copy link
Member

9prady9 commented Oct 10, 2023

@Gardene-el I am not sure if the original description issue and what you are noticing are same, nevertheless I have been facing an issue with the tests recently. I still haven't looked into it yet, will post an update as soon as I find anything useful or a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants