I started to work on a new project that is based on NVidia Jetson Xavier Agx, I followed the instruction on how to set everything up. In the end, I have a running device with software installed from sdkmanager.
I am able to compile cuda programs and run them. But the problem is with debugging. Provided with cuda-10.2 debugger crashes when stepped over (
(cuda-gdb) next) a cuda function with the message
_dl_catch_exception(). I found a couple of relevant topics, for example this. Though I have the same problem even when debugging locally on the device itself. I tried to follow the instructions, tried to run the debugger with
sudo but the problem stays. The problem is reproducible with cuda samples.
The linked topic is from 2019 and the NVidia employer mentions that this is a known bug with the
gdb-7.12 and that should be fixed in
gdb-8.2. But today is 2021 and the sdkmanager still installs the same broken version.
What is the fix? Should I upgrade the debugger manually? How can I do it?