Skip to content
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

[BUG] Memory sanitizer detects multiple problems when running nvcv_test_types_python #77

Closed
mzient opened this issue May 11, 2023 · 2 comments
Assignees
Labels
bug Something isn't working as expected (software, install, documentation)

Comments

@mzient
Copy link

mzient commented May 11, 2023

Describe the bug
There are two kinds of issues:

  • conditional jump depends on uninitialized memory. MakePacking declares a variable which is only partially filled and then an uninitialized field is accessed.
  • invalid read when constructing an image from a CHW Python buffer (e.g. numpy array) - this stems from invalid plane stride used for channels-first images

Steps/Code to reproduce bug
Run:

CVCUDA_BUILD_DIR= your CV-CUDA build directory \
CVCUDA_SRC_DIR= your CV-CUDA source directory \
NVCV_VERSION=0.3.0-beta \
PYTHONPATH="$PYTHONPATH:$CVCUDA_BUILD_DIR/lib/python" \
PYTHONMALLOC=malloc \
valgrind python -m pytest -o cache_dir=/tmp/junk "$CVCUDA_SRC_DIR/tests/nvcv_types/python/" -k test_wrap_host_buffer_infer_format_geometry --verbose -s

Expected behavior
No errors are reported

Environment overview (please complete the following information)

  • Environment location: bare metal
  • Method of cuDF install: source

Environment details
N/A

Additional context
N/A

@mzient mzient added ? - needs triage bug Something isn't working as expected (software, install, documentation) labels May 11, 2023
@milesp-nvidia milesp-nvidia self-assigned this May 11, 2023
@milesp-nvidia
Copy link
Member

We will publish a patch to this issue very soon.

@bhaefnerNV
Copy link

@mzient this has been addressed in CV-CUDA Release v0.3.1 Beta.

We'll close it for now, feel free to reopen if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected (software, install, documentation)
Projects
None yet
Development

No branches or pull requests

3 participants