I had a similar issue instrumenting for VTune. I think for VTune the full instrumentation was attempting to instrument some kernel or C Runtime functions it shouldn't have been. For VTune, and I don't know if this is possible on CodeAnalyst, the solution was to do custom instrumentation and deselect all functions beginning with an _underscore.
Jason