The latest version (0.1.1) fails some tests with segfaults on various architectures (e.g. ARM, i386, little-endian MIPS, etc.):
make -j1 check VERBOSE=1
make[1]: Entering directory '/«PKGBUILDDIR»'
Making check in src
make[2]: Entering directory '/«PKGBUILDDIR»/src'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/«PKGBUILDDIR»/src'
Making check in test
make[2]: Entering directory '/«PKGBUILDDIR»/test'
make check_ahtable check_hattrie bench_sorted_iter
make[3]: Entering directory '/«PKGBUILDDIR»/test'
gcc -DPACKAGE_NAME=\"hat-trie\" -DPACKAGE_TARNAME=\"hat-trie\" -DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"hat-trie\ 0.1.1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hat-trie\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -c -o check_ahtable-check_ahtable.o `test -f 'check_ahtable.c' || echo './'`check_ahtable.c
[...]
gcc -DPACKAGE_NAME=\"hat-trie\" -DPACKAGE_TARNAME=\"hat-trie\" -DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"hat-trie\ 0.1.1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hat-trie\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -c -o check_ahtable-str_map.o `test -f 'str_map.c' || echo './'`str_map.c
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -Wl,-z,relro -Wl,-z,now -o check_ahtable check_ahtable-check_ahtable.o check_ahtable-str_map.o ../src/libhat-trie.la
libtool: link: gcc -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/check_ahtable check_ahtable-check_ahtable.o check_ahtable-str_map.o ../src/.libs/libhat-trie.so
gcc -DPACKAGE_NAME=\"hat-trie\" -DPACKAGE_TARNAME=\"hat-trie\" -DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"hat-trie\ 0.1.1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hat-trie\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -c -o check_hattrie-check_hattrie.o `test -f 'check_hattrie.c' || echo './'`check_hattrie.c
[...]
gcc -DPACKAGE_NAME=\"hat-trie\" -DPACKAGE_TARNAME=\"hat-trie\" -DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"hat-trie\ 0.1.1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hat-trie\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -c -o check_hattrie-str_map.o `test -f 'str_map.c' || echo './'`str_map.c
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -Wl,-z,relro -Wl,-z,now -o check_hattrie check_hattrie-check_hattrie.o check_hattrie-str_map.o ../src/libhat-trie.la
libtool: link: gcc -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/check_hattrie check_hattrie-check_hattrie.o check_hattrie-str_map.o ../src/.libs/libhat-trie.so
gcc -DPACKAGE_NAME=\"hat-trie\" -DPACKAGE_TARNAME=\"hat-trie\" -DPACKAGE_VERSION=\"0.1.1\" -DPACKAGE_STRING=\"hat-trie\ 0.1.1\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hat-trie\" -DVERSION=\"0.1.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -I../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -c -o bench_sorted_iter-bench_sorted_iter.o `test -f 'bench_sorted_iter.c' || echo './'`bench_sorted_iter.c
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -Wl,-z,relro -Wl,-z,now -o bench_sorted_iter bench_sorted_iter-bench_sorted_iter.o ../src/libhat-trie.la
libtool: link: gcc -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu99 -Wall -Wextra -pedantic -g -O0 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/bench_sorted_iter bench_sorted_iter-bench_sorted_iter.o ../src/.libs/libhat-trie.so
make[3]: Leaving directory '/«PKGBUILDDIR»/test'
make check-TESTS
make[3]: Entering directory '/«PKGBUILDDIR»/test'
make[4]: Entering directory '/«PKGBUILDDIR»/test'
../test-driver: line 107: 26542 Segmentation fault "$@" > $log_file 2>&1
FAIL: check_ahtable
PASS: check_hattrie
=========================================
hat-trie 0.1.1: test/test-suite.log
=========================================
# TOTAL: 2
# PASS: 1
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: check_ahtable
===================
generating 100000 keys ... done.
inserting 200000 keys ...
sizeof: 24244359
done.
iterating through 200000 keys ...
done.
generating 100000 keys ... done.
inserting 200000 keys ...
sizeof: 24240563
done.
iterating in order through 200000 keys ...
done.
generating 100000 keys ... done.
inserting 200000 keys ...
sizeof: 24287070
done.
saving ahtable ...
loading ahtable ...
comparing ahtable ...
FAIL check_ahtable (exit status: 139)
============================================================================
Testsuite summary for hat-trie 0.1.1
============================================================================
# TOTAL: 2
# PASS: 1
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to [email protected]
============================================================================