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

Re: [PATCH] Fix random crashes in http_cleanup()

From
Gerrit Pape <pape@smarden.org>
Date
Mar 3, 2008, 10:01 UTC
Message-ID
<20080303100141.15600.qmail@e81d07a86798f7.315fe32.mid.smarden.org>
In-Reply-To
<1204489713-8696-1-git-send-email-mh@glandium.org>
On Sun, Mar 02, 2008 at 09:28:33PM +0100, Mike Hommey wrote:
Show 5 quoted lines
> For some reason, http_cleanup was running all active slots, which could
> lead in situations where a freed slot would be accessed in
> fill_active_slots. OTOH, we are cleaning up, which means the caller
> doesn't care about pending requests. Just forget about them instead
> or running them.

Hi, I can confirm that this fixes the segfault we managed to reproduce, but didn't look deeper into the changes.

There's a warning when compiling http.c, trivial to fix:
      CC http.o
  http.c: In function ‘http_cleanup’:
  http.c:288: warning: unused variable ‘wait_url’
Thanks!, Gerrit.
Previous: Mike HommeyNext: Mike Hommey
Message 7 of 8 in “git-http-fetch segfault, curl 7.18.0”
  1. Gerrit PapeMar 2, 2008
  2. Mike HommeyMar 2, 2008
  3. Mike HommeyMar 2, 2008
  4. Daniel BarkalowMar 2, 2008
  5. Mike HommeyMar 2, 2008
  6. Fix random crashes in http_cleanup()Mike Hommey, Mar 2, 2008
  7. Gerrit PapeMar 3, 2008
  8. Fix random crashes in http_cleanup()Mike Hommey, Mar 3, 2008

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.