Hello,
I’m encountering a segmentation fault when loading an application and need some guidance on how to approach debugging this issue. I am building the application from a repo so I expect the error is with my build configuration or tool chain
Problem:
• The application crashes (segfaults) as soon as it’s loaded.
• The repository I’m working with is based on a stable version that many others are successfully running.
System Details:
• OS: Ubuntu 24.04 (fresh install)
• CUDA Version: cuda_12.0.r12.0/compiler.32267302_0
• NVCC Version: Cuda compilation tools, release 12.0, V12.0.140
• Driver Version: NVIDIA GeForce RTX 3090 CUDA Driver Version / Runtime Version 12.7 / 12.6
Build Configuration:
• The project is currently set to build with the flag gencode=arch=compute_37,code=sm_37, but this is not supported in the new version of nvcc.
• I attempted several alternative flags, such as gencode=arch=compute_86,code=sm_86, but the issue persists.
Background:
• I suspect the project is typically built and run on older versions of Linux and CUDA, and I assumed that the newer CUDA version I’m using would be backward-compatible.
• However, it seems that there may be incompatibilities or issues I’m missing.
Questions:
1. Has anyone encountered similar issues with backward compatibility when upgrading to newer CUDA versions (e.g., nvcc v12.x)?
2. Is there a recommended strategy for updating or modifying build flags when migrating a project to a newer CUDA version?
3. Any advice on how to debug or trace the segmentation fault effectively in this context?
Any insights or suggestions would be greatly appreciated!
Justin Madison
Error:
Thread 1 “ggraphitti” received signal SIGSEGV, Segmentation fault.
0x0000555555772936 in __cudaRegisterLinkedBinary (prelinked_fatbinc=0x555555b45ab8 <__fatbinwrap_cc7064e5_28_AllVerticesDeviceFuncs_d_cpp_83fdfb72>, callback_fp=0x7ffff7dad8aa <__nv_cudaEntityRegisterCallback(void**)>) at /usr/lib/nvidia-cuda-toolkit/bin/crt/link.stub:145
145 __cudaPrelinkedFatbins[__i] = (void*)prelinked_fatbinc->data;