{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/19c117dca3aeb125ff148eb78484b71f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"19c117dca3aeb125ff148eb78484b71f","url":"https://api.github.com/users/nelhage","login":"nelhage","id":16725},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-11T04:51:54Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/libgit2/libgit2/issues/478","body":"`git_repository` and friends is not threadsafe. That's understandable. But the global `git_mwindow` structure used to cache `mmap` regions is shared across all `git_repository` objects, and is not threadsafe at all -- using multiple `git_repository`s heavily from different threads will eventually lead to a crash due to corruption of the `ctl` object. It should either be declared threadsafe or protected with a mutex (at least under THREADSAFE=on).","html_url":"https://github.com/libgit2/libgit2/issues/478","title":"`static git_mwindow_ctl ctl` is not threadsafe","number":478,"id":2206375,"created_at":"2011-11-11T04:51:54Z"},"action":"opened"}