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

Re: One failed self test on Fedora 29

From
Jeff King <peff@peff.net>
Date
Mar 11, 2019, 03:29 UTC
Message-ID
<20190311032923.GA7087@sigill.intra.peff.net>
In-Reply-To
<CAH8yC8mg3vjPoof5SDemQ_YiL+7e1ak535U2nFnPbaWJ8xSWOA@mail.gmail.com>
On Sat, Mar 09, 2019 at 07:34:15AM -0500, Jeffrey Walton wrote:
Show 6 quoted lines
> > It would probably help to know what commit you're building.
> > The verbose test output would also be useful, e.g.:
> 
> I built with CFLAGS += -fsanitize=undefined. It looks like the
> misaligned accesses generate UBsan findings, which is causing
> t0021-conversion to fail.

You probably should use SANITIZE=undefined instead. The Makefile has some smarts to tweak build parameters based on your sanitize flag (e.g., defining NO_UNALIGNED_LOADS).

That said, I do not think sha1dc works with UBsan at this point at all. I usually do error-checking builds with:

  make SANITIZE=address,undefined BLK_SHA1=Yes

What puzzles me is not that t0021 failed, but that everything else _didn't_. Almost every script fails for me when Git is built with UBSan and sha1dc.

It would be nice to make sha1dc respect NO_UNALIGNED_LOADS. But barring that, we should probably default to BLK_SHA1 when we see SANITIZE=undefined.

-Peff
Previous: Jeff King
Message 25 of 25 in “One failed self test on Fedora 29”
  1. Jeffrey WaltonMar 8, 2019
  2. Todd ZullingerMar 8, 2019
  3. Jeffrey WaltonMar 9, 2019
  4. Jeffrey WaltonMar 9, 2019
  5. Junio C HamanoMar 11, 2019
  6. Jeffrey WaltonMar 11, 2019
  7. disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29Jeff King, Mar 11, 2019
  8. Jeffrey WaltonMar 11, 2019
  9. Jeff KingMar 11, 2019
  10. Duy NguyenMar 11, 2019
  11. Thomas BraunMar 11, 2019
  12. Jeff KingMar 11, 2019
  13. Junio C HamanoMar 12, 2019
  14. Jeff KingMar 12, 2019
  15. Thomas BraunMar 13, 2019
  16. Jeff KingMar 13, 2019
  17. Ævar Arnfjörð BjarmasonMar 13, 2019
  18. Ævar Arnfjörð BjarmasonMar 12, 2019
  19. Jeff KingMar 12, 2019
  20. Ævar Arnfjörð BjarmasonMar 12, 2019
  21. Jeff KingMar 12, 2019
  22. Makefile: fix unaligned loads in sha1dc with UBSanJeff King, Mar 12, 2019
  23. Ævar Arnfjörð BjarmasonMar 12, 2019
  24. Jeff KingMar 12, 2019
  25. Jeff KingMar 11, 2019

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.