Internal Sanitizer Error: Failed to generate coredump when allocated global memory is in a certain range

goutham24693
Wed, 19 Nov 2025 14:45:49 +0000
Compute Sanitizer

running compute-sanitizer with memcheck tool with command line

$ compute-sanitizer --print-level info --launch-timeout 0 --target-processes=all --generate-coredump --coredump-name /tmp/gpudump.nvcudmp --error-exitcode 1 --tool memcheck ./test
[...]
[16:57:09.942306] coredump: Writing out global memory (59403808 bytes)
[16:57:10.039514] coredump: 5%...
[16:57:10.039527] coredump: 10%...
[16:57:10.039530] coredump: 15%...
[16:57:10.039531] coredump: 20%...
[16:57:10.039533] coredump: 25%...
[16:57:10.040535] coredump: 30%...
[16:57:10.052751] coredump: 35%...
[16:57:10.137441] coredump: 40%...
[16:57:10.137451] coredump: 45%...
[16:57:10.137453] coredump: 50%...
[16:57:10.137455] coredump: 55%...
[16:57:10.137456] coredump: 60%...
[16:57:10.161302] coredump: 65%...
[16:57:10.173038] coredump: 70%...
[16:57:10.196793] coredump: 75%...
[16:57:10.208797] coredump: 80%...
========= Internal Sanitizer Error: Failed to generate coredump
=========

coredump generation fails if the global memory allocated is not in the power of 2.

sample program attached to reproduce this issue. nvidia-smi output attached.

I can reproduce this issue when I set
CUDA_ENABLE_COREDUMP_ON_EXCEPTION=1

CUDA_COREDUMP_SHOW_PROGRESS=1

and then run the executable of sample program outside compute-santizer. Issue in coredumping section.

nvidia-smi.txt (2.0 KB)

reproduce_coredump_failure_cu.txt (3.3 KB)

11 posts - 3 participants