Skip to content

[BUG]: Memory leak in CUB's block_radix_rank test #1897

Closed

Description

@alliepiper

Is this a duplicate?

Type of Bug

Something else

Component

CUB

Describe the bug

https://github.com/NVIDIA/cccl/actions/runs/9606424817/job/26497170531?pr=1879

  	compute-sanitizer --tool memcheck --check-device-heap yes --leak-check full --padding 512 --track-stream-ordered-races all --check-warpgroup-mma yes --require-cuda-init no --check-exit-code yes --error-exitcode 1 --nvtx true /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  ========= COMPUTE-SANITIZER
  Using device 0: Tesla V100-PCIE-32GB (PTX version 700, SM700, 80 SMs, 32086 free / 32494 total MB physmem, 898.048 GB/s @ 877000 kHz mem clock, ECC on)
  ========= Leaked 512 bytes at 0x7f6059e00000
  =========     Saved host backtrace up to driver entry point at allocation time
  =========     Host Frame: [0x28e3ce]
  =========                in /usr/lib/x86_64-linux-gnu/libcuda.so.1
  =========     Host Frame:libcudart_static_5382377d5c772c9d197c0cda9fd9742ee6ad893c [0xb452d]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  =========     Host Frame:libcudart_static_f74e2f2bcf2cf49bd1a61332e1d15bd1e748f9cf [0x7f1b2]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  =========     Host Frame:cudaMalloc [0xc3a84]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  =========     Host Frame:cub::CUB_200500_600_700_800_NS::CachingDeviceAllocator::DeviceAllocate(int, void**, unsigned long, CUstream_st*) [clone .constprop.0] [0x1a9ff]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  =========     Host Frame:void TestDriver<(cub::CUB_200500_600_700_800_NS::RadixRankAlgorithm)0, 16, 1, 1, (cub::CUB_200500_600_700_800_NS::BlockScanAlgorithm)0, 1, unsigned char>(GenMode) [0x2ebed]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  =========     Host Frame:void Test<(cub::CUB_200500_600_700_800_NS::RadixRankAlgorithm)0, 16>() [0x35f9e]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  =========     Host Frame:main [0xf891]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank
  =========     Host Frame: [0x23a8f]
  =========                in /usr/lib/x86_64-linux-gnu/libc.so.6
  =========     Host Frame:__libc_start_main [0x23b48]
  =========                in /usr/lib/x86_64-linux-gnu/libc.so.6
  =========     Host Frame:_start [0xfb74]
  =========                in /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank

How to Reproduce

compute-sanitizer --tool memcheck --check-device-heap yes --leak-check full --padding 512 --track-stream-ordered-races all --check-warpgroup-mma yes --require-cuda-init no --check-exit-code yes --error-exitcode 1 --nvtx true /home/coder/cccl/build/cuda12.4-gcc13/cub-cpp17/bin/cub.cpp17.test.block_radix_rank

Expected behavior

No diagnostics emitted.

Reproduction link

No response

Operating System

No response

nvidia-smi output

No response

NVCC version

No response

Activity

  1. self-assigned this
    on Jun 25, 2024
  2. added 2 commits that reference this issue on Jun 25, 2024
    841b780
    1a089d6
  3. moved this from Todo to Done in CCCLon Jun 25, 2024
  4. added a commit that references this issue on Jun 25, 2024
    82d74af
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions