test-regex fails on MSVC

2022-09-05 Thread Bruno Haible
On 64-bit MSVC, test-regex fails reproducibly: $ ./test-regex.exe test-regex: .*|\([KIO]\)\([^|]*\).*|?\1: regexec 3 failed Segmentation fault I'm not in a position to debug this. But maybe someone can try this test on a glibc system, with valgrind or with clang and ubsan / asan? Bruno

Re: --with-tests and address sanitizer

2022-09-05 Thread Bruno Haible
> Regarding memory leaks in particular, we had a discussion a while ago: > https://lists.gnu.org/archive/html/bug-gnulib/2020-05/threads.html I mean the thread starting at https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00155.html

Re: --with-tests and address sanitizer

2022-09-05 Thread Bruno Haible
Hi Vivien, > Are my memory leaks a known problem? Is there a way to fix them? It is known that the address sanitizer reports important problems (e.g. accessing invalid memory) and unimportant problems (e.g. memory leaks) together. It is your duty, as a user, to let it report only the important pr

pthread-h: Fix compilation error on mingw with --enable-threads=windows

2022-09-05 Thread Bruno Haible
Compiling a gnulib testdir on mingw, with --enable-threads=windows, I get a compilation error (attached). This patch fixes it. 2022-09-05 Bruno Haible pthread-h: Fix compilation error on mingw with --enable-threads=windows. * lib/pthread.in.h: In C++ mode, if mingw's has not

--with-tests and address sanitizer

2022-09-05 Thread Vivien Kraus
Dear gnulib developers, If I try to include the gnulib tests with my project, and build with address sanitizer, then almost all tests fail, many of which because of 64 bytes allocated in argz_add_sep, a few others are because the amount of bytes required for an allocation is too large, and asan de