'git log' failed with code 5

I just upgraded to version 2.0.4 and now when I open the app, I get several errors that read:

'git log' failed with code 5:'dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk

Referenced from: /Applications/SourceTree.app/Contents/Resources/git_local/bin/git
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___strlcpy_chk
Referenced from: /Applications/SourceTree.app/Contents/Resources/git_local/bin/git
Expected in: /usr/lib/libSystem.B.dylib

hat should I do? Hoping reinstalling is not required.

12 answers

I also had this issue after upgrading to 2.0.4.  For now as a work around, I have changed from the embedded git to the version on my system.  You can do this by selecting SourceTree -> Preferences -> Git -> Use System Git

 

Hopefully Atlassian will fix this soon.

Same issue here after upgrade to 2.0.4.   Reverting to system git (1.8.5.2) worked around for me as well.

Should have mentioned this was on OSX 10.8.5

I am also running 10.8.5

Also on 10.8.5... can't work... Can't clone either "dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk..."

Thanks TCS Developer! This error message scared the sh*t out of me, all repo's seemed gone. Switching to system git also did the trick for me (also running OSX 10.8.5) Hope they'll fix it quickly to restore trust in the (development of the) app.

Thanks for the workaround. This solved the issue for me.

Thanks TCS Developer, that did the trick for me.

If switching to system git (I recently installed command line tools for xcode), dosen't solve the problem -- what to do?

Do you use Homebrew http://brew.sh/ ? Right now I'm using SourceTree v1.9.8 with system git 2.2.2 (homebrew), and system hg 3.2.4 (homebrew), all working fine. I guess you can do the same with SourceTree 2.x too, I'll wait to upgrade until the next version.

Hey there,

I'm the developer responsible for this release. 2.0.4 was an urgent maintenance release for CVE-2014-9390, so we shipped it with an existing binary release that addressed the issue. That binary release doesn't support 10.8 and prior, and this is something we're looking to address as we plan on continued support for 10.8.

In the meantime - as suggested in here already - you can use a system Git version from the Xcode Command Line Tools that addresses CVE-2014-9390 which is really easy to do (available through developer.apple.com). You may find there's a system Git already installed that's OK to use.

We'll be embedding a binary Git version which works on all OS X versions in the near future.

Cheers

Holly cows. Same issue here for ALL my repos. sad

bookingpad-web__Git_.png

Reinstalling did not help.

I see this same problem on my machine running OS X 10.8.5. But no problem on my machine running OS X 10.9.5.

Same here, all repos stopped working and showing the errors above - 10.8.5

Also confirmed that delete related plist, .gitconfig files and reinstall did not help.

Gave it one more try. This cause "fatal: Unable to create [my_project_path].git/index.lock': File exists." when tying to pull. Tried to follow Atlassian's help: https://blog.sourcetreeapp.com/2014/12/18/atlassian-update-for-git-and-mercurial-vulnerability/ But nothing worked except reverting to 2.0.3 removing the whole project and re-cloning it. Really bad.

Ouch - wish I'd read this before updating. Pop up errors many. Fortunately reinstalling 2.0.3 over 2.0.4 and everything reappeared again. OS X 10.8.5.

I had the same result. Going back to 2.0.3 fixed the problem. http://downloads.atlassian.com/software/sourcetree/SourceTree_2.0.3.dmg

I just pinpointed the problem. It's the new version of Git (2.2.1) that's causing the issue. Using the old Git (1.8.4.2), I don't get the error anymore. I upgraded to SourceTree 2.0.4 and got the error. Thinking it was because my git was outdated, I updated the System Git to 2.2.1 and pointed SourceTree to the new git (Preferences -> Git). No bueno. I reverted to Sourcetree 2.0.3. It was still pointing to the System Git (2.2.1). Still no bueno. I pointed Sourcetree (Preferences -> Git) to the embedded Git (1.8.4.2) and it worked! No more error. I have a feeling that I was getting an error with the new git because I am on OSX Lion, not Mavericks. If you have SourceTree 2.0.4, try pointing SourceTree to Git 1.8.4.2. If you have SourceTree 2.0.3, make sure to use the embedded git.

As of 2.0.5.8, this issue still exists for OS X 10.8.5.  Reverting back to 2.0.3 allows it to work.  When will this be addressed?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you