Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Conversation

@leezu
Copy link
Contributor

@leezu leezu commented Nov 11, 2020

For small h (eg. -2.22524022E-7), h += 6 will yield a h == 6. But
c_HlsSectorData[6] is invalid memory leading to segmentation fault. We need to
decrement to 0.

Can be reproduced (prior to this commit via):

MXNET_TEST_SEED=1492532915 python3.8 -m pytest tests/python/unittest/test_numpy_contrib_gluon_data_vision.py::TestImage::test_bbox_augmenters

Fixes #18986

For small h (eg. -2.22524022E-7), h += 6 will yield a h == 6. But
c_HlsSectorData[6] is invalid memory leading to segmentation fault. We need to
decrement to 0.

Can be reproduced (prior to this commit via):

  MXNET_TEST_SEED=1492532915 python3.8 -m pytest tests/python/unittest/test_numpy_contrib_gluon_data_vision.py::TestImage::test_bbox_augmenters
@leezu leezu requested a review from yajiedesign November 11, 2020 02:47
@mxnet-bot
Copy link

Hey @leezu , Thanks for submitting the PR
All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands:

  • To trigger all jobs: @mxnet-bot run ci [all]
  • To trigger specific jobs: @mxnet-bot run ci [job1, job2]

CI supported jobs: [clang, windows-cpu, windows-gpu, website, centos-gpu, miscellaneous, unix-gpu, centos-cpu, unix-cpu, sanity, edge]


Note:
Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin.
All CI tests must pass before the PR can be merged.

@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-awaiting-review PR is waiting for code review and removed pr-awaiting-testing PR is reviewed and waiting CI build and test labels Nov 11, 2020
Copy link
Member

@zhreshold zhreshold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for catching and patching!

@leezu leezu merged commit b3a6317 into apache:master Nov 11, 2020
@leezu leezu deleted the fixHLS2RGBConvert branch November 11, 2020 22:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

pr-awaiting-review PR is waiting for code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_bbox_augmenters randomly crashes

4 participants