The local installer for CUDA 10.1 (also older versions) from here:
https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_418.39_linux.run
Crashes on Fedora 29 and on CentOS 7 systems, if the locale (environment variable LANG) is not the default.
$ echo $LANG
de_DE.utf8
$ sudo sh cuda_10.1.105_418.39_linux.run
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 9) > this->size() (which is 8)
The workaround is to set the LANG environment variable to the value C, then the installation succeeds.
export LANG=C