-
Notifications
You must be signed in to change notification settings - Fork 789
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
segmentation fault if too many variables and constraints. #820
Comments
cc @ProfFan thanks~ |
Hi @Tahiti410 , by "Master code of gtsam" do you mean |
Sorry, it's |
|
In the meantime, @Tahiti410 could you try the fix mentioned in #809 ? |
Though this can be an issue of the multifrontal solver in the presence of large chains like the one in this reproducer. I am not sure. EDIT: This IS the cause. |
Maybe this: void processNodeRecursively(const boost::shared_ptr<NODE>& node, DATA& myData)
{
for(const boost::shared_ptr<NODE>& child: node->children)
{
DATA childData = visitorPre(child, myData);
processNodeRecursively(child, childData);
}
// Run the post-order visitor
(void) visitorPost(node, myData);
}
}; should be rewritten to not use recursion. |
Ok, by using But still it would be great if we can do this without needing to change ulimit. |
Closing as this is resolved. |
Description
Segmentation fault if too many(about 140k) constraints and states.
I guess it's related to the resources release(recursive) in descrutors.
Steps to reproduce
ulimit -s 8192
Expected behavior
Segmentation fault (core dumped)
Environment
Masterdevelop
branch of gtsamLinux version 5.4.0-52-generic (buildd@xxx-amd64-022) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #57~18.04.1-Ubuntu SMP Thu Oct 15 14:04:49 UTC 2020
ulimit -s
output8192
Additional information
The text was updated successfully, but these errors were encountered: