Problem starting terminal in SourceTree

I recently upgraded SourceTree from 1.9 to and now when I click on the 'Terminal' button to start a bash shell I get:

The procedure entry point __locale_ctype_ptr could not be located in the dynamic link library msys-2.0.dll

I get this regardless if I use the system or embedded Git (which are both 2.11).

2 answers

0 votes


It is very likely this is due to a different version of msys-2.0.dll being found on your PATH before the one shipped with git 2.11.

This gives the function mismatch. It is worth searching for other instances of msys-2.0.dll on your maching to determine where it is and what may have installed it.

Only found two instances - looks like the system and embedded Git:


C:\>dir /s msys-2.0.dll
Volume in drive C has no label.
Volume Serial Number is 7E9A-70C3

Directory of C:\Program Files\Git\usr\bin

04/02/2017 01:43 PM 3,301,247 msys-2.0.dll
1 File(s) 3,301,247 bytes

Directory of C:\Users\jonathan.champlin\AppData\Local\Atlassian\SourceTree\git_local\usr\bin

03/31/2016 12:36 PM 3,595,888 msys-2.0.dll
1 File(s) 3,595,888 bytes

Total Files Listed:
2 File(s) 6,897,135 bytes
0 Dir(s) 42,754,981,888 bytes free

0 votes

I solved this problem by updating GIT installation on my computer.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

261 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot