libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] CI Pipeline fails (address sanitizer issue)


From: ng0
Subject: Re: [libmicrohttpd] CI Pipeline fails (address sanitizer issue)
Date: Sun, 13 Oct 2019 16:14:17 +0000

Hi,

I can confirm on NetBSD 9.99.15 amd64 with clang from base (7.x),
that the tests I previously reported as broken on NetBSD are now
passing (in plain normal libmicrohttpd git checkout builds).

the test after test_postform11 (test_postloop11?) spends more time
than expected, but the tests advance beyond the point where they
previously failed.

Thanks.

Christian Grothoff transcribed 5.2K bytes:
> Dear Tim,
> 
> Thanks for reporting.
> 
> Unless I'm badly mistaken, e3179550..b24cb240 should fix this (bug in
> the test case, hence no urgency to re-release anything). Please let me
> know if this does _not_ fix the problem.
> 
> Happy hacking!
> 
> Christian
> 
> On 10/13/19 3:10 PM, Tim Rühsen wrote:
> > Is this wanted / expected behavior in 'test_upgrade_large' ? If yes, we
> > can set ASAN_OPTIONS=allocator_may_return_null=1 when running the tests.
> > 
> > #######
> > Warning: Zero size, specified for thread pool size, is ignored. Thread
> > pool is not used.
> > Using debug build of libmicrohttpd.
> > Warning: Zero size, specified for thread pool size, is ignored. Thread
> > pool is not used.
> > Using debug build of libmicrohttpd.
> > ==9087==WARNING: AddressSanitizer failed to allocate 0x617000000200 bytes
> > ==9087==AddressSanitizer's allocator is terminating the process instead
> > of returning 0
> > ==9087==If you don't like this behavior set allocator_may_return_null=1
> > ==9087==AddressSanitizer CHECK failed:
> > /build/llvm-toolchain-3.8-pxYbFx/llvm-toolchain-3.8-3.8.1/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:147
> > "((0)) != (0)" (0x0, 0x0)
> >     #0 0x4c377d in __asan::AsanCheckFailed(char const*, int, char
> > const*, unsigned long long, unsigned long long)
> > (/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade_large+0x4c377d)
> >     #1 0x4ca113 in __sanitizer::CheckFailed(char const*, int, char
> > const*, unsigned long long, unsigned long long)
> > (/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade_large+0x4ca113)
> >     #2 0x4c7f26 in __sanitizer::ReportAllocatorCannotReturnNull()
> > (/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade_large+0x4c7f26)
> >     #3 0x421344 in __asan::asan_malloc(unsigned long,
> > __sanitizer::BufferedStackTrace*)
> > (/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade_large+0x421344)
> >     #4 0x4ba195 in malloc
> > (/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade_large+0x4ba195)
> >     #5 0x7fe70410b163 in MHD_pool_create
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/memorypool.c:183:20
> >     #6 0x7fe704095a07 in internal_add_connection
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:2485:22
> >     #7 0x7fe7040f8012 in MHD_accept_connection
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:3273:10
> >     #8 0x7fe7040a4122 in MHD_epoll
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:4484:39
> >     #9 0x7fe7040b5dcc in MHD_run
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/daemon.c:4635:7
> >     #10 0x4f5c29 in run_mhd_epoll_loop
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/test_upgrade_large.c:1013:7
> >     #11 0x4f0e89 in run_mhd_loop
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/test_upgrade_large.c:1039:5
> >     #12 0x4eda15 in test_upgrade
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/test_upgrade_large.c:1159:7
> >     #13 0x4eb8ed in main
> > /builds/libmicrohttpd/libmicrohttpd/src/microhttpd/test_upgrade_large.c:1249:9
> >     #14 0x7fe702d372e0 in __libc_start_main
> > (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
> >     #15 0x41bbf9 in _start
> > (/builds/libmicrohttpd/libmicrohttpd/src/microhttpd/.libs/test_upgrade_large+0x41bbf9)
> > 
> > FAIL test_upgrade_large (exit status: 1)
> > #######
> > 
> > See
> > https://gitlab.com/libmicrohttpd/libmicrohttpd/-/jobs/319336629/artifacts/file/src/microhttpd/test_upgrade_large.log
> > 
> > Regards, Tim
> > 
> 



Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]