Segfaults happen, you run valgrind/asan/tsan etc.
As long as the codebase is not horrendous its easy to fix.
Third party packages complicate things, have to choose/use wisely/appropriately
C++ has been around for... what?.. 40 odd years? And any non-trivial project still links with C libraries.
I don't see this problem somehow going away in Rust w/o some revolutionary changes in operating systems, which is the major supplier of decrepit but unavoidable libraries you have to link with in order to get anything done.