callgraph profiler makes certain programs crash with segfault

This was observed when running the VIIA's userApp when compiled with callgraph profiling.