Skip to content

Instantly share code, notes, and snippets.

@goraj
Created December 3, 2018 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goraj/ed099c80cd8233e9e8463b37384b2470 to your computer and use it in GitHub Desktop.
Save goraj/ed099c80cd8233e9e8463b37384b2470 to your computer and use it in GitHub Desktop.
reproduce.py
'''
>>> dask.__version__
'1.0.0'
>>> umap.__version__
'0.3.7'
'''
from dask.distributed import Client
def do_run(arg1, arg2):
# this import triggers the segfault
import umap
return 42
if __name__ == '__main__':
client = Client(processes=True,
ip='127.0.0.1',
#n_workers=1,
memory_limit='40GB')
config_path = ''
name = ''
lo_classes = [None, None, None]
n_trial = 3
pool = []
# crashes
for trial in range(n_trial):
for lo_class in lo_classes:
# the following line triggers a segfault in libffi.so
#pool.append(client.submit(do_run, trial, lo_class))
# this line alone works fine
pool.append(client.submit(do_run, 1, lo_class))
# following line crashes
#pool.append(client.submit(do_run, trial, 1))
result = client.gather(pool)
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment