|
From: Eyal L. <ey...@ey...> - 2004-01-15 08:49:45
|
Robert Walsh wrote: > > On Wed, 2004-01-14 at 00:23, Eyal Lebedinsky wrote: > > Testing a busy server, with many threads, I ended up with > > this a long report (attached) that starts with: > > > > valgrind: vg_malloc2.c:1008 (vgPlain_arena_malloc): Assertion `new_sb != > > ((void *)0)' failed. > > > > It seem to only happen when I use UDB database. > > > > This off current cvs. > > Is it possible you're running out of memory or address space? Remember, > Valgrind takes up wads more memory than running the problem without > Valgrind... OK, I had a close look and I do not think a memory shortage is involved. At the point of failure a malloc(exactly 64MB) was done. It never returned. However, the same sort of malloc() followed by a free() was done a number of times earlier. If vg holds on to freed memory then there may be a problem. The machine is 1GB memory and 2GB swap and abour 450MB of swap was used at the time of failure. I am running with: --tool=memcheck --leak-check=yes --show-reachable=no --num-callers=32 --error-limit=no --run-libc-freeres=no --quiet --trace-children=no -- Eyal Lebedinsky (ey...@ey...) <http://samba.org/eyal/> |