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

perf test with SVM will crash #78

Closed
guoanwu opened this issue Jan 28, 2023 · 1 comment
Closed

perf test with SVM will crash #78

guoanwu opened this issue Jan 28, 2023 · 1 comment

Comments

@guoanwu
Copy link

guoanwu commented Jan 28, 2023

crash happen in the code main.c:1266
if (g_perf_svm ) {
memcpy(src, ((TestArg_T *)arg)->src, src_sz);
}
should change to:
if (g_perf_svm && g_input_file_name) {
memcpy(src, ((TestArg_T *)arg)->src, src_sz);
}

Starting program: /home/dennis/qatzip/test/test -m 4 -l 100000 -t 1 -D comp -M svm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".

Breakpoint 1, main (argc=11, argv=0x7fffffffe1c8) at main.c:3874
3874 {
(gdb) b 1254
Breakpoint 2 at 0x5555554098f4: file main.c, line 1254.
(gdb) c
Continuing.
[New Thread 0x7ffff580c700 (LWP 705037)]

Thread 2 "test" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff580c700 (LWP 705037)]
0x00007ffff700c6d3 in __memmove_avx_unaligned_erms () from /usr/lib64/libc.so.6
(gdb) bt
#0 0x00007ffff700c6d3 in __memmove_avx_unaligned_erms () from /usr/lib64/libc.so.6
#1 0x0000555555409b4a in memcpy (__len=524288, __src=, __dest=0x7ffff000e6c0) at /usr/include/bits/string_fortified.h:34
#2 qzCompressAndDecompress (arg=0x7fffffffab80) at main.c:1266
#3 0x00007ffff727917a in start_thread () from /usr/lib64/libpthread.so.0
#4 0x00007ffff6fa8dc3 in clone () from /usr/lib64/libc.so.6

@cfzhu
Copy link
Contributor

cfzhu commented Mar 24, 2023

updated code 0b10190

@cfzhu cfzhu closed this as completed Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants