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

fb-re2 compiles and installs on macos but using gives segmentation fault #19

Open
ssbarnea opened this issue May 1, 2020 · 2 comments

Comments

@ssbarnea
Copy link

ssbarnea commented May 1, 2020

While I suspect there is some specific local environment issue that produces this awful result, I think that we need to prevent it from building/installing a broken package.

pip install fb-re2
python -c "import re2; re2.compile('foo')"
[1]    99748 segmentation fault  python -c "import re2; re2.compile('foo')"

I was able to reproduce the error with both python3.6 and pyton3.7 installed using pyenv.

@SeekPoint
Copy link

I am ok on Mac 10.15

~/ub16_prj % python -m pip install fb-re2
Collecting fb-re2
Downloading fb-re2-1.0.7.tar.gz (9.4 kB)
Building wheels for collected packages: fb-re2
Building wheel for fb-re2 (setup.py) ... done
Created wheel for fb-re2: filename=fb_re2-1.0.7-cp38-cp38-macosx_10_15_x86_64.whl size=11013 sha256=ca8795ce3f839fbc12a542381fa2f0bc58c1837ff78f3305518f46e3c42d75f5
Stored in directory: /Users/yuanke/Library/Caches/pip/wheels/be/90/07/89f22d55ba4fdb4edd098668479c144735f98cd5a98d35d316
Successfully built fb-re2
Installing collected packages: fb-re2
Successfully installed fb-re2-1.0.7
~/ub16_prj % python -c "import re2; re2.compile('foo')"
~/ub16_prj %

@ssbarnea
Copy link
Author

Note: I closed this not because the bug is not valid, but because I stopped using fb-re2. It still happens with 1.0.7 and with py36-py38 for sure. The error is bit different:

$ python3.6 -c "import re2; re2.compile('foo')"                                                                                                   [7:51:11]
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/ssbarnea/.pyenv/versions/3.6.10/lib/python3.6/site-packages/re2.py", line 27, in <module>
import _re2
ImportError: dlopen(/Users/ssbarnea/.pyenv/versions/3.6.10/lib/python3.6/site-packages/_re2.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/opt/re2/lib/libre2.0.dylib
Referenced from: /Users/ssbarnea/.pyenv/versions/3.6.10/lib/python3.6/site-packages/_re2.cpython-36m-darwin.so
Reason: image not found

@ssbarnea ssbarnea reopened this Aug 29, 2020
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

2 participants