rity_nn_test_apu simu firmware segfault
rity_nn_test_apu segfault on exit. This is caused by metal_finish. So far, the issue could only reproduced in qemu.
libapu_test
E libapu(apu.c): Failed to queue a job
I libapu(test.c): test_offline - NULL, passed
I libapu(test.c): test_copy_hostptr_buffer - &test_basic_1_4096, passed
I libapu(test.c): test_copy_shared_buffer - &test_basic_1_256, passed
I libapu(test.c): test_copy_shared_buffer - &test_basic_1_4096, passed
I libapu(test.c): test_copy_shared_buffer - &test_basic_1_65535, passed
I libapu(test.c): test_copy_inline_buffer - &test_basic_1_256, passed
I libapu(test.c): test_copy_inline_to_shared_buffer - NULL, passed
I libapu(test.c): test_copy_shared_to_inline_buffer - NULL, passed
I libapu(test.c): test_fill_buffer - NULL, passed
rity_nn_test_ap[116]: segfault at 2d0 ip 00007f3e4b0f8e2e sp 00007ffd29116f60 error 4 in libc.so.6[7f3e4b09a000+165000] likely on CPU 0 (co)
Code: f8 31 d2 64 48 8b 04 25 10 00 00 00 f0 48 0f b1 54 24 f8 c3 0f 1f 84 00 00 00 00 00 41 57 41 56 41 55 41 54 55 53 48 83 ec 38 <8b> 876
I libapu(test.c): test_timeout - NULL, passed
I libapu(test.c): 10 / 10 passed
I libapu(test.c): passed!
rity_nn_test_ap[127]: segfault at 2d0 ip 00007f50d158fe2e sp 00007ffc7fabce20 error 4 in libc.so.6[7f50d1531000+165000] likely on CPU 0 (co)
Code: f8 31 d2 64 48 8b 04 25 10 00 00 00 f0 48 0f b1 54 24 f8 c3 0f 1f 84 00 00 00 00 00 41 57 41 56 41 55 41 54 55 53 48 83 ec 38 <8b> 876