|
From: Nicholas N. <nj...@ca...> - 2004-10-08 14:03:19
|
CVS commit by nethercote:
Improve error message.
MERGED FROM HEAD
M +11 -3 vg_main.c 1.198.2.2
--- valgrind/coregrind/vg_main.c #1.198.2.1:1.198.2.2
@@ -490,7 +490,15 @@ static void layout_remaining_space(Addr
if ((void*)-1 == vres) {
fprintf(stderr,
- "valgrind: Couldn't allocate address space for shadow memory\n"
- "valgrind: Are you using a kernel with a small user address space,\n"
- "valgrind: or do you have your virtual memory size limited?\n");
+ "valgrind: Could not allocate address space (%p bytes)\n"
+ "valgrind: for shadow memory\n"
+ "valgrind: Possible causes:\n"
+ "valgrind: - For some systems (especially under RedHat 8), Valgrind\n"
+ "valgrind: needs at least 1.5GB swap space.\n"
+ "valgrind: - Or, your virtual memory size may be limited (check\n"
+ "valgrind: with 'ulimit -v').\n"
+ "valgrind: - Or, your system may use a kernel that provides only a\n"
+ "valgrind: too-small (eg. 2GB) user address space.\n"
+ , (void*)shadow_size
+ );
exit(1);
}
|