git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] test-lib: set UBSAN_OPTIONS to match ASan

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 21, 2023, 21:18 UTC
Message-ID
<xmqqwmwj443q.fsf@gitster.g>
In-Reply-To
<20230921041825.GA2814583@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> So that's garbage memory which would _usually_ cause us to segfault, but
> UBSan catches it and complains first about the alignment. That makes
> sense, but the weird thing is that UBSan then exits instead of aborting,
> so our test_might_fail call considers that an acceptable outcome and the
> test "passes".

t4058 unexpectedly succeeding vaguely rings a bell to me, too, but it has been sporadic. The changes are obviously the right thing to do.

Thanks, queued.
Previous: Jeff King
Message 2 of 2 in “test-lib: set UBSAN_OPTIONS to match ASan”
  1. test-lib: set UBSAN_OPTIONS to match ASanJeff King, Sep 21, 2023
  2. Junio C HamanoSep 21, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.