제출 #525252: pytorch pytorch (in torch.cuda.memory.caching_allocator_delete) torch 2.6.0 invalid memory access정보

제목pytorch pytorch (in torch.cuda.memory.caching_allocator_delete) torch 2.6.0 invalid memory access
설명When attempting to manually delete a tensor's memory using `torch.cuda.memory.caching_allocator_delete` after allocating memory on the GPU with `torch.empty`, I encounter an `Aborted` error. To reproduce: ``` import torch from torch.cuda.memory import caching_allocator_delete torch.cuda.empty_cache() dev_props = torch.cuda.get_device_properties(0) total_memory = dev_props.total_memory allocation = int(total_memory * 0.5) tmp_tensor = torch.empty(allocation, dtype=torch.int8, device='cuda') mem_ptr = tmp_tensor.data_ptr() caching_allocator_delete(mem_ptr) ```
원천⚠️ https://github.com/pytorch/pytorch/issues/149821
사용자
 Default436352 (UID 81891)
제출2025. 03. 23. AM 02:26 (2 연령 ago)
모더레이션2025. 04. 02. PM 10:47 (11 days later)
상태수락
VulDB 항목303041 [PyTorch 2.6.0 CUDACachingAllocator.cpp torch.cuda.memory.caching_allocator_delete 메모리 손상]
포인트들20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!