OpenMined / PyDP

The Python Differential Privacy Library. Built on top of: https://github.com/google/differential-privacy
Apache License 2.0
497 stars 136 forks source link

MacOS Python Core Dump when using Syft #393

Open madhavajay opened 2 years ago

madhavajay commented 2 years ago

Description

We are seeing a weird issue where importing pydp is causing a core dump in Python on MacOS. It seems as though this is occurring in multiple versions of PyDP and Python. Also even weirder is that these tests were passing perfectly fine not that long ago so its hard to see exactly what has changed.

Interestingly, it seems as though if pydp is imported first this doesn't happen. Perhaps this is something to do with python threads and asyncio, and possibly a third party library or other system dependency which has changed recently.

How to Reproduce

>>> import syft as sy
>>> import pydp
python(3834,0x1157d2dc0) malloc: *** error for object 0x108930240: pointer being freed was not allocated
python(3834,0x1157d2dc0) malloc: *** set a breakpoint in malloc_error_break to debug
[1]    3834 abort      python

Expected Behavior

Not crashing.

Screenshots

Screen Shot 2021-09-16 at 10 25 46 am

System Information

MacOS in GitHub CI (Catalina most likely) and Python 3.7, 3.8, 3.9. https://github.com/OpenMined/PySyft/runs/3616277301?check_suite_focus=true

chinmayshah99 commented 1 year ago

Is this still happening ?