# Common "Abort trap: 6" / "leaked semaphores" error reported in community

**URL:** <https://discourse.getdbt.com/t/common-abort-trap-6-leaked-semaphores-error-reported-in-community/810>\
**Category:** Archive\
**Created:** [January 15, 2020, 11:40pm UTC](https://discourse.getdbt.com/t/common-abort-trap-6-leaked-semaphores-error-reported-in-community/810 "2020-01-15T23:40:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew-stewart](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@andrew-stewart](https://discourse.getdbt.com/u/andrew-stewart)\
**Post date:** [January 15, 2020, 11:40pm UTC](https://discourse.getdbt.com/t/common-abort-trap-6-leaked-semaphores-error-reported-in-community/810/1 "2020-01-15T23:40:26Z")

</div>

There are several instances of the following error being reported around the community (in Slack):

```
Running with dbt=0.15.0
Abort trap: 6
/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 1 leaked semaphores to clean up at shutdown
  len(cache))

```

The following Slack thread has some information and troubleshooting suggestions: [Slack](https://getdbt.slack.com/archives/C2JRRQDTL/p1576181676001100?thread_ts=1576181676.001100)

Proposed solutions:

1. [Python 3 in macOS Catalina: Fixing the abort trap – holgr.com](https://holgr.com/python-3-in-macos-catalina-fixing-the-abort-trap/)

2. Via homebrew

3. a BASH script was mentioned in the above Slack thread

I’ve created this topic in order to document the existence of the error, any solutions that are verified to have worked, and to hopefully help others experiencing it to save some time finding the solutions.

---

<div class="post-metadata">

**Author:** ![tmurphy](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/tmurphy/32/43_2.png) [@tmurphy](https://discourse.getdbt.com/u/tmurphy)\
**Post date:** [January 16, 2020, 3:26pm UTC](https://discourse.getdbt.com/t/common-abort-trap-6-leaked-semaphores-error-reported-in-community/810/2 "2020-01-16T15:26:50Z")

</div>

On a brand new mac install I was able to solve it by following instructions in this thread [https://forums.developer.apple.com/thread/119429](https://forums.developer.apple.com/thread/119429)

This is the output of `history` for my computer:

```auto
  246 brew install openssl
  249 sudo cp libssl.1.0.0.dylib libcrypto.1.0.0.dylib /usr/local/lib/
  250 cd /usr/local/Cellar/
  252 cd openssl@1.1
  254 cd 1.1.1d
  256 cd lib
  258 cp libssl.1.1.dylib libcrypto.dylib /usr/local/lib/
  260 ~
  263 mv libcrypto.dylib libcrypto_bak.dylib
  265 sudo ln -s libssl.1.1.dylib libssl.dylib
  266 cd /usr/local/Cellar/openssl@1.1/1.1.1d/lib
  267 cp libcrypto.1.1.dylib /usr/local/lib/
  268 cd /usr/local/lib
  269 ls
  270 sudo ln -s libcrypto.1.1.dylib libcrypto.dylib

```

---

<div class="post-metadata">

**Author:** ![claire](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/claire/32/522_2.png) [@claire](https://discourse.getdbt.com/u/claire)\
**Post date:** [September 29, 2020, 8:32pm UTC](https://discourse.getdbt.com/t/common-abort-trap-6-leaked-semaphores-error-reported-in-community/810/3 "2020-09-29T20:32:05Z")

</div>



---

<div class="post-metadata">

**Author:** ![claire](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/claire/32/522_2.png) [@claire](https://discourse.getdbt.com/u/claire)\
**Post date:** [October 6, 2020, 5:01pm UTC](https://discourse.getdbt.com/t/common-abort-trap-6-leaked-semaphores-error-reported-in-community/810/4 "2020-10-06T17:01:58Z")

</div>


