-
Notifications
You must be signed in to change notification settings - Fork 475
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
physics::Base::childrenEnd causes failures with libc++ #965
Comments
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). To clarify, the failures I'm referring to are seg-faults. |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). Here's a backtrace from running
It points to Base.cc:382, which is the line inside the loop that contains
Seeing the failure in this loop made me suspect that |
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
|
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). Note that I missed on in pull request #857, but it will be fixed by pull request #881 |
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
Now that gazebo compiles on OSX 10.9, I've been testing it, and it isn't able to successfully load worlds. It appears to have problems with
Base::childrenEnd
, which seems to be a cached copy ofBase::children.end()
. This is referenced in numerous places in Entity.cc and Base.cc:The problems arise in for loops with
iter != this->childrenEnd
. Switching toiter != this->children.end()
appears to fix it. It seems like a bug to me. If it's an optimization, we should profile it and make sure it's worth the effort.The text was updated successfully, but these errors were encountered: