-
Notifications
You must be signed in to change notification settings - Fork 234
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
Multiple PresentLink in a DefinedPredicate causes segfault #852
Comments
looking |
Patterns with multiple components may fail to ground one of the parts; this is normal and is handled up-stream.
Fix multi-component pattern crash (bug #852)
pull req #853 fixes this. Its not the multiple PresentLinks, its the EqualLink that cause the issue -- the pattern got split into multiple components. (although that too is a bug .. it should really be a single-component pattern. I'm looking into that now. |
Ah! BTW, your example above has a bug in it -- the third variable should be There is some code that actually checks for this syntax error, and would catch it and report it -- but it got disabled, because PLN intentionally constructs such invalid graphs, and still expects them to work right :-( Also BTW, you can get a minor performance boost by using IdenticalLink instead of EqualLink. See http://wiki.opencog.org/wikihome/index.php/EqualLink |
No, the third variable is What is an invalid graph? Do you mean a graph which doesn't make semantic sense? Thanks on the fix and hint :-) |
well, the graph has two disconnected parts. You're right, its not the EqualLink, I thought that was the reason it had two disconnected parts until I saw the mis-matched names. The bug triggered because it has two independent parts, one not linked to the other. Changedin the variable names links them back into one. Anyway, it should all work now. |
closing I believe this is fixed |
1. Steps to reproduce the error
2 Expected result
The text was updated successfully, but these errors were encountered: