-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Checking sentence attributes of Tokens of unit test Doc causes a segfault sometimes #5075
Comments
Thanks for the report! I strongly suspect that
|
@adrianeboyd is probably right that When I try to run the original code, I actually get into an infinite loop which is fixed with this edit (which I think should have been there all along?). But after that small fix, and with the changes of PR #5049 merged, I do still run into a segfault :( So we'll have to revise |
An infinite loop was not the intention there, no. I had made some local changes to |
I suspect the problem is with the heads. |
Ah good point! Are you looking into this further or want me to? |
Adjust the heads:
|
I can do it. Maybe it's a chance to figure out some of the old bugs with |
Fixed by PR #5079, which now throws an error pointing to the fact that the heads need to be relative, in this specific case:
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I came across this issue while trying to write a complex spacy Doc based unit test. It seems checking the sent attribute of tokens of the doc created below causes a segfault sometimes. In my legacy spacy==2.0.12 dev env it always causes a segfault in the newer 2.2.3 only sometimes.
How to reproduce the behaviour
Run below script 4-10 times and you should get a segfault:
Your Environment
pip install spacy
The text was updated successfully, but these errors were encountered: