mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-18 04:15:32 +00:00
f43df8a863
Add builds with ASAN and UBSAN for both gcc. Clang + asan fails at some tests due to wrong asan runtime, clang + ubsan fails at libbtrfsutil/btrfsutil_internal.h:71:20: memcpy(&tmp, &sh->type, sizeof(__u32)); which seems to be too strict. [TEST/cli] 008-subvolume-get-set-default subvolume get-default: default id is not 256, but libbtrfsutil/btrfsutil_internal.h:71:20: runtime error: member access within misaligned address 0x7ffcc8017f67 for type 'const struct btrfs_ioctl_search_header', which requires 8 byte alignment 0x7ffcc8017f67: note: pointer points here 00 00 00 00 07 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 05 00 00 00 00 00 00 00 90 00 00 00 ^ libbtrfsutil/btrfsutil_internal.h:64:20: runtime error: member access within misaligned address 0x7ffcc8017f67 for type 'const struct btrfs_ioctl_search_header', which requires 8 byte alignment 0x7ffcc8017f67: note: pointer points here 00 00 00 00 07 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 05 00 00 00 00 00 00 00 90 00 00 00 ^ libbtrfsutil/btrfsutil_internal.h:78:20: runtime error: member access within misaligned address 0x7ffcc8017f67 for type 'const struct btrfs_ioctl_search_header', which requires 8 byte alignment 0x7ffcc8017f67: note: pointer points here 00 00 00 00 07 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 05 00 00 00 00 00 00 00 90 00 00 00 Signed-off-by: David Sterba <dsterba@suse.com>
15 lines
241 B
Bash
Executable File
15 lines
241 B
Bash
Executable File
#!/bin/sh
|
|
# usage: $0 [optional arguments to configure]
|
|
|
|
if ! [ -f "./autogen.sh" ]; then
|
|
echo "ERROR: cannot find autogen.sh, run from the top level directory"
|
|
exit 1
|
|
fi
|
|
|
|
set -e
|
|
|
|
./autogen.sh
|
|
./configure "$@"
|
|
echo "D=$D"
|
|
make
|