|
From: Nicholas N. <nj...@ca...> - 2004-09-25 15:45:53
|
On Wed, 22 Sep 2004 dou...@so... wrote: > I think the error message should be changed to give a better idea of what > went wrong and how to fix it. > > In the mean time perhaps an entry on the FAQ would help people: > > """ > When I start valgrind 2.2.0 I get: > valgrind: Couldn't allocate address space for shadow memory > valgrind: Are you using a kernel with a small user address space, > valgrind: or do you have your virtual memory size limited? > What's going on? > > Are you running on Red Hat 8.0? Do you have overcommit on/off [delete as > appropriate] switched on? Valgrind is [insert description of what it's > trying to do] > Try creating 2/4 [delete as appropriate] Gb of swap space. > """ Yes, the error message here is bad. It went into 2.2.0 at the last minute. It is better than the old one, which was just an assertion failure :) We did not even know that a too-small swap space caused it when the message was written, which is why it is not mentioned in the message. I will improve the message and look at improving the memory layout situation further when I get back from holiday, in a couple of weeks. N |