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

Re: [PATCH v3] transport-helper: fix TSAN race in transfer_debug()

From
Jeff King <peff@peff.net>
Date
Jun 11, 2026, 08:33 UTC
Message-ID
<20260611083320.GI2191159@coredump.intra.peff.net>
In-Reply-To
<20260609134741.4727-2-pushkarkumarsingh1970@gmail.com>
On Tue, Jun 09, 2026 at 01:47:42PM +0000, Pushkar Singh wrote:
Show 5 quoted lines
> Changes since v2:
> - Treat an uninitialized transfer_debug_enabled as a BUG()
>   instead of silently treating it as disabled.
> - Follow Jeff King's suggestion to distinguish an
>   uninitialized state from a disabled state.
Thanks, this looks OK to me.
> +	if (transfer_debug_enabled < 0)
> +		BUG("somebody forgot to check GIT_TRANSLOOP_DEBUG!");

That is a somewhat silly message, but the point is that nobody is supposed to see it ever. And it does lead them to roughly the right spot, so I think it's sufficient. (Yes, I know it came from my earlier response).

-Peff
Previous: Pushkar Singh
Message 7 of 7 in “transport-helper: fix TSAN race in transfer_debug()”
  1. transport-helper: fix TSAN race in transfer_debug()Pushkar Singh, Jun 2, 2026
  2. Junio C HamanoJun 4, 2026
  3. Pushkar SinghJun 4, 2026
  4. transport-helper: fix TSAN race in transfer_debug()Pushkar Singh, Jun 4, 2026
  5. Jeff KingJun 9, 2026
  6. transport-helper: fix TSAN race in transfer_debug()Pushkar Singh, Jun 9, 2026
  7. Jeff KingJun 11, 2026

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.