Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible crashes on OS X #299

Closed
molpopgen opened this issue Sep 6, 2019 · 0 comments
Closed

Possible crashes on OS X #299

molpopgen opened this issue Sep 6, 2019 · 0 comments

Comments

@molpopgen
Copy link
Owner

Several of the functions of fwdpy11.TreeIterator return numpy arrays whose data are stored in a C++ vector. The method used for this is from this post.

The symptoms are only apparent on OS X and they take the form of semi-random crashes. They do not happen all the time, nor do they happen in the same part of the code.

Changing the implementation to return a copy of the data seems to eliminate the issue altogether, but this is not a desirable solution.

Several things remain unclear:

  1. Is this a symptom of compiling fwdpy11/dev using the Xcode clang, yet the Python used is from conda, which is presumably compiled with clang_osx-64? This would be an ABI issue and not an actual bug.
  2. Or is this a "real" bug. So far, it cannot be reproduced on Ubuntu.

Sadly, ruling out 1 is complicated by it being quite difficult to get clang_osx-64 working properly on my system. Another option is to install Python3 by another means + all dependencies, and see what happens.

cc @apragsdale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant