Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:... ... Oh. This is a pointless assignment. If you look at any call sites for unlink_base_data() you will find that the struct passed in as "c" here is going out of scope after unlink_base_data() returns. In no such case does the value of c->data get tested once this free is complete. We need the if (c->data) guard because we only want to decrement base_cache_used if the memory is still allocated. It may have been released earlier, in which case base_cache_used has already been decreased and we don't want to double-decrement it. This patch makes the code more obvious, so Ack I guess, but it is not a solution to Pierre's woes. Something else is wrong. Reading above shows we got a "fatal: Out of memory, malloc failed" right before the segfault. What's odd is we segfaulted after we ran out of memory and should have die'd. There's at least two bugs in the above output: a) index-pack ran out of memory on a small pull (95 KiB). b) fetch segfaulted when index-pack failed. And this patch will unfortunately address neither of them. :-| I've had a long past couple of days, and another one tomorrow. I'm not going to be able to debug this myself until perhaps Thursday or Friday. Sorry. If nobody beats me to it, I will put this on the top of the pile and try to fix it once I get back online at my new home. -- Shawn. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | Og dreams of kernels |
| Jens Axboe | [PATCH 31/33] Fusion: sg chaining support |
| Arnd Bergmann | Re: finding your own dead "CONFIG_" variables |
| Mark Brown | [PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset |
| Tony Breeds | [LGUEST] Look in object dir for .config |
git: | |
| Brian Downing | Re: Git in a Nutshell guide |
| John Benes | Re: master has some toys |
| Matthias Lederhofer | [PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree |
| Alexander Sulfrian | [RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set |
| Junio C Hamano | Re: Rss produced by git is not valid xml? |
| Linux Kernel Mailing List | iSeries: fix section mismatch in iseries_veth |
| Linux Kernel Mailing List | ixbge: remove TX lock and redo TX accounting. |
| Linux Kernel Mailing List | ixgbe: fix several counter register errata |
| Linux Kernel Mailing List | b43: fix build with CONFIG_SSB_PCIHOST |
