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

Re: What's cooking in git.git (Dec 2025, #03)

From
Patrick Steinhardt <ps@pks.im>
Date
Dec 18, 2025, 06:22 UTC
Message-ID
<aUOdtDrmtGtQg596@pks.im>
In-Reply-To
<xmqqtsxoxzs5.fsf@gitster.g>
On Thu, Dec 18, 2025 at 11:57:30AM +0900, Junio C Hamano wrote:
Show 21 quoted lines
> Aaron Plattner <aplattner@nvidia.com> writes:
> 
> > I'm pretty sure the problem is when do_oid_object_info_extended() 
> > substitutes the blank oi here:
> >
> > 	if (!oi)
> > 		oi = &blank_oi;
> >
> > and then packfile_store_read_object_info() compares it to its own local 
> > blank oi:
> >
> > 	static struct object_info blank_oi = OBJECT_INFO_INIT;
> 
> Ahh, that's an unusual mistake.
> 
> The following was done on top of 'seen', but would it help?  We
> shouldn't have to use the stand-in "blank" thing to begin with.
> 
> Besides, explicitly handling the NULL case would reduce the
> potential chance of errors that somebody accidentally writes into
> blank_oi, making its contents dirty.

Yeah, indeed I've already found that regression myself and got it cooking in a local patch series. I was holding off from sending that series because there was a minor conflict with an in-flight one. But I'll take this opportunity and send it out now.

Thanks for the report and your initial triaging, Junio!
Patrick
Previous: Junio C Hamano
Message 16 of 16 in “What's cooking in git.git (Dec 2025, #03)”
  1. Junio C HamanoDec 12, 2025
  2. Adrian RatiuDec 13, 2025
  3. Junio C HamanoDec 16, 2025
  4. Patrick SteinhardtDec 16, 2025
  5. Adrian RatiuDec 16, 2025
  6. Emily ShafferDec 16, 2025
  7. Junio C HamanoDec 17, 2025
  8. René ScharfeDec 13, 2025
  9. Aaron PlattnerDec 17, 2025
  10. Junio C HamanoDec 17, 2025
  11. Aaron PlattnerDec 17, 2025
  12. Jeff KingDec 17, 2025
  13. Junio C HamanoDec 17, 2025
  14. Aaron PlattnerDec 17, 2025
  15. Junio C HamanoDec 18, 2025
  16. Patrick SteinhardtDec 18, 2025

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.