This may be the result of a call to mmap() involving shared memory (MAP_SHARED). This call could come either directly or indirectly from your application. By default ReplayEngine forces these calls to fail with errno set to ENOMEM; please see the FAQ on this for more information. You may be able to determine if this is the cause of the failure or misbehavior by changing the TotalView state variable TV::replay_map_shared to 1 so that it stops your program if and when it tries to use mmap MAP_SHARED memory. This should allow you to investigate further if the forced mmap failure is the cause of the problem. To set the state variable you can edit/create a $HOME/.tvdrc file and add the following line:

dset TV::replay_map_shared 1

Josh Carlson