Hi
I found an crash error.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
hdf5 version 1.13.0 ,git branch development
Verification steps:
1.Get the source code of hdf5
2.Compile the hdf5
$ cd hdf5
$ mkdir build && cd build
$ cmake ../ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="-fsanitize=address" -DCMAKE_CXX_FLAGS="-fsanitize=address"
$ make -j 32
3.run h5dump
$ cd bin
$ mkdir crashtest_dir
$ ./h5dump -r -d crashtest_dir/data poc
poc.zip
asan info
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1402526==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f3496d05e10 bp 0x7ffe9926ee80 sp 0x7ffe9926e638 T0)
==1402526==The signal is caused by a READ memory access.
==1402526==Hint: address points to the zero page.
#0 0x7f3496d05e10 /build/glibc-eX1tMB/glibc-2.31/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:365
#1 0x494287 in __asan_memcpy (/home/hh/Downloads/hdf5/build/bin/h5dump+0x494287)
#2 0x9af4c2 in H5MM_memcpy /home/hh/Downloads/hdf5/src/H5MM.c:617:11
#3 0x11d4fb5 in H5F__accum_read /home/hh/Downloads/hdf5/src/H5Faccum.c:192:17
#4 0xb7b938 in H5PB_read /home/hh/Downloads/hdf5/src/H5PB.c:720:13
#5 0x7a0d87 in H5F_block_read /home/hh/Downloads/hdf5/src/H5Fio.c:147:9
#6 0x61b385 in H5C__load_entry /home/hh/Downloads/hdf5/src/H5C.c:7193:21
#7 0x61b385 in H5C_protect /home/hh/Downloads/hdf5/src/H5C.c:2363:30
#8 0x5a8057 in H5AC_protect /home/hh/Downloads/hdf5/src/H5AC.c:1425:26
#9 0x5cf7f3 in H5B2__hdr_protect /home/hh/Downloads/hdf5/src/H5B2hdr.c:528:38
#10 0x5b5692 in H5B2_open /home/hh/Downloads/hdf5/src/H5B2.c:211:24
#11 0x894bbd in H5G__obj_get_linfo /home/hh/Downloads/hdf5/src/H5Gobj.c:317:41
#12 0x8707ef in H5G_visit /home/hh/Downloads/hdf5/src/H5Gint.c:1275:25
#13 0x103fa3f in H5VL__native_link_specific /home/hh/Downloads/hdf5/src/H5VLnative_link.c:362:38
#14 0xfe90e3 in H5VL__link_specific /home/hh/Downloads/hdf5/src/H5VLcallback.c:5140:22
#15 0xfe90e3 in H5VL_link_specific /home/hh/Downloads/hdf5/src/H5VLcallback.c:5176:22
#16 0x976df8 in H5Lvisit_by_name2 /home/hh/Downloads/hdf5/src/H5L.c:2024:22
#17 0x558472 in traverse /home/hh/Downloads/hdf5/tools/lib/h5trav.c:288:17
#18 0x55c606 in h5trav_visit /home/hh/Downloads/hdf5/tools/lib/h5trav.c:1057:9
#19 0x553c25 in init_objs /home/hh/Downloads/hdf5/tools/lib/h5tools_utils.c:793:22
#20 0x4c460c in table_list_add /home/hh/Downloads/hdf5/tools/src/h5dump/h5dump.c:476:9
#21 0x4c75c2 in main /home/hh/Downloads/hdf5/tools/src/h5dump/h5dump.c:1549:13
#22 0x7f3496c6e0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#23 0x41c60d in _start (/home/hh/Downloads/hdf5/build/bin/h5dump+0x41c60d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /build/glibc-eX1tMB/glibc-2.31/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:365
==1402526==ABORTING
Fedora 33
Segmentation fault (core dumped)
Thanks
Hi
I found an crash error.
System info:
Ubuntu 20.04 : clang 10.0.0 , gcc 9.3.0
hdf5 version 1.13.0 ,git branch development
Verification steps:
1.Get the source code of hdf5
2.Compile the hdf5
3.run h5dump
$ cd bin $ mkdir crashtest_dir $ ./h5dump -r -d crashtest_dir/data pocpoc.zip
asan info
AddressSanitizer:DEADLYSIGNAL ================================================================= ==1402526==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f3496d05e10 bp 0x7ffe9926ee80 sp 0x7ffe9926e638 T0) ==1402526==The signal is caused by a READ memory access. ==1402526==Hint: address points to the zero page. #0 0x7f3496d05e10 /build/glibc-eX1tMB/glibc-2.31/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:365 #1 0x494287 in __asan_memcpy (/home/hh/Downloads/hdf5/build/bin/h5dump+0x494287) #2 0x9af4c2 in H5MM_memcpy /home/hh/Downloads/hdf5/src/H5MM.c:617:11 #3 0x11d4fb5 in H5F__accum_read /home/hh/Downloads/hdf5/src/H5Faccum.c:192:17 #4 0xb7b938 in H5PB_read /home/hh/Downloads/hdf5/src/H5PB.c:720:13 #5 0x7a0d87 in H5F_block_read /home/hh/Downloads/hdf5/src/H5Fio.c:147:9 #6 0x61b385 in H5C__load_entry /home/hh/Downloads/hdf5/src/H5C.c:7193:21 #7 0x61b385 in H5C_protect /home/hh/Downloads/hdf5/src/H5C.c:2363:30 #8 0x5a8057 in H5AC_protect /home/hh/Downloads/hdf5/src/H5AC.c:1425:26 #9 0x5cf7f3 in H5B2__hdr_protect /home/hh/Downloads/hdf5/src/H5B2hdr.c:528:38 #10 0x5b5692 in H5B2_open /home/hh/Downloads/hdf5/src/H5B2.c:211:24 #11 0x894bbd in H5G__obj_get_linfo /home/hh/Downloads/hdf5/src/H5Gobj.c:317:41 #12 0x8707ef in H5G_visit /home/hh/Downloads/hdf5/src/H5Gint.c:1275:25 #13 0x103fa3f in H5VL__native_link_specific /home/hh/Downloads/hdf5/src/H5VLnative_link.c:362:38 #14 0xfe90e3 in H5VL__link_specific /home/hh/Downloads/hdf5/src/H5VLcallback.c:5140:22 #15 0xfe90e3 in H5VL_link_specific /home/hh/Downloads/hdf5/src/H5VLcallback.c:5176:22 #16 0x976df8 in H5Lvisit_by_name2 /home/hh/Downloads/hdf5/src/H5L.c:2024:22 #17 0x558472 in traverse /home/hh/Downloads/hdf5/tools/lib/h5trav.c:288:17 #18 0x55c606 in h5trav_visit /home/hh/Downloads/hdf5/tools/lib/h5trav.c:1057:9 #19 0x553c25 in init_objs /home/hh/Downloads/hdf5/tools/lib/h5tools_utils.c:793:22 #20 0x4c460c in table_list_add /home/hh/Downloads/hdf5/tools/src/h5dump/h5dump.c:476:9 #21 0x4c75c2 in main /home/hh/Downloads/hdf5/tools/src/h5dump/h5dump.c:1549:13 #22 0x7f3496c6e0b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16 #23 0x41c60d in _start (/home/hh/Downloads/hdf5/build/bin/h5dump+0x41c60d) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /build/glibc-eX1tMB/glibc-2.31/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:365 ==1402526==ABORTINGFedora 33
Thanks