It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
minnsey Atlassian Team May 16, 2017


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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,935 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you