PDA

View Full Version : Why does my application misbehave or fail when run with ReplayEngine?



rwcom
08-15-2011, 03:07 PM
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 (http://forum.totalviewtech.com/gforum.cgi?post=484) 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