Internal Sanitizer Error: The Sanitizer failed to handle a hardware exception

I got the following error from compute-sanitizer. Is it a bug from my code or an internal error from sanitizer:

========= Internal Sanitizer Error: The Sanitizer failed to handle a hardware exception.

========= Program hit cudaErrorIllegalAddress (error 700) due to “an illegal memory access was encountered” on CUDA API call to cudaStreamSynchronize_ptsz.
========= Saved host backtrace up to driver entry point at error

That looks like a bug on our end: your program seems to contain an illegal memory access, but we should display more information than this. Can you please try to use the latest compute-sanitizer version from the 12.8 toolkit? If that does not work, can you share a minimal reproducer so the team can investigate? Thanks!

@aladram Is there still a way to upgrade compute-sanitizer alone or do I have to upgrade the whole CUDA toolkit for the upgrade? There used to be a way to download and install compute-sanitizer alone, but now seems that compute-sanitizer is bundled to a specific CUDA toolkit.

You can just use Sanitizer from the latest toolkit on your existing binaries (and ideally update your NVIDIA driver), it should work just fine!