-
Notifications
You must be signed in to change notification settings - Fork 5.9k
rgbd: fix segmentation fault on Arm 32bit platform #2858
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
rgbd: fix segmentation fault on Arm 32bit platform #2858
Conversation
I think I need a help for build failure on armv7
The message seems to be irrelevant from my fix
/build/precommit-contrib_armv7/opencv/modules/core/include/opencv2/core/cuda.hpp:456:15: error: function 'cv::cuda::GpuMatND& cv::cuda::GpuMatND::operator=(cv::cuda::GpuMatND&&)' defaulted on its first declaration with an exception-specification that differs from the implicit declaration 'cv::cuda::GpuMatND& cv::cuda::GpuMatND::operator=(cv::cuda::GpuMatND&&)'
GpuMatND& operator=(GpuMatND&&) noexcept = default;
Yet, other machines are building fine, when just armv7 is failing.
I've gone wrong in my recent PRs, claiming "It's not my fault" when it was.
Can anyone advice me if it's my failure or is this known issue ?
Right, you can ignore that.
Relates: opencv/opencv#19259
I will prepare a hotfix tomorrow. Done: opencv/opencv#19466
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The true mistake here is that a result of register comparison is float register, while it expected (by the author) to be integer register. So the result could be simply reinterpreted as (u)int32.
But this code is also correct, so 👍
Uh oh!
There was an error while loading. Please reload this page.
resolves #2857
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.