Re: [PATCH] tests: make SANITIZE=address imply TEST_NO_MALLOC_CHECK
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 11, 2022, 19:11 UTC
- Message-ID
- <xmqqtuazh1uw.fsf@gitster.g>
- In-Reply-To
- <pull.1210.git.1649507317350.gitgitgadget@gmail.com>
"Phillip Wood via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 6 quoted lines
> From: Phillip Wood <phillip.wood@dunelm.org.uk> > > As the address sanitizer checks for a superset of the issues detected > by setting MALLOC_CHECK_ (which tries to detect things like double > frees and off-by-one errors) there is no need to set the latter when > compiling with -fsanitize=address.
Very good idea.
> I'm submitting this now as it fixes a regression introduced in the > current cycle. Having said that there is an easy workaround (once one > has discovered GIT_TEST_NO_MALLOC_CHECK) so I'd be happy to wait until > the start of the next cycle given I've just missed -rc1.
Yeah, if this patch were broken, we'd be in worse place than we currently are, so I'd rather not fast-track it. I will queue it in 'seen' and possibly merge to 'next' as it is a good idea to avoid using both at the same time, though.
Thanks.