Re: Segfault in the attr stack
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 1, 2016, 22:17 UTC
- Message-ID
- <CAPc5daXuQAeWvJAciRA_Kzyoxa=atEntGzKhqzjiN+ho6TnQyg@mail.gmail.com>
- In-Reply-To
- <CAGZ79kbSKgS42nAShsK3JV78geam3k84=ipWRx7vbRODuHcmcA@mail.gmail.com>
Gaah, of course.
This is coming from the cache preload codepath, where multiple threads try to run ce_path_match(). It used to be OK because pathspec magic never looked at attributes, but now it does, and attribute system is not thread-safe.
On Wed, Jun 1, 2016 at 3:11 PM, Stefan Beller <sbeller@google.com> wrote:
Show 5 quoted lines
> This can be reproduced on sb/pathspec-label in git.git as well. > > The key difference I notice is `git ls-files` works perfectly (e.g. in > the tests) > while `git status` fails.