Hi Kees,
The problem was indeed the option --enable-debug.
I recompiled keepalived without it and it's working.
Is this a bug? Shouldn't this change in lib/memory.c permanent in the
sources?
Thanks a lot for your help.
Sam
On Wed, 2004-12-08 at 05:52, Kees Bos wrote:
> Samuel Tran <mailto:stran@xxxxxxxx> wrote:
> <CUT>
> >
> > When I try to run keepalived with the -n option:
> >
> > idun:~# /usr/local/sbin/keepalived -D
> > -f/etc/keepalived/keepalived.conf -n
> > keepalived: memory.c:141: keepalived_malloc: Assertion
> > `number_alloc_list > 1024' failed.
> > Aborted
> >
> > It looks like it is a memory allocation problem?
> >
> Yep. The assertion is in lib/memory.c and indicates that the
> number of allocated blocks in function keepalived_malloc hits
> the 1024. Well, that's the idea.
> lib/memory.c:141
> assert(number_alloc_list > MAX_ALLOC_LIST);
>
> However, assert aborts if assert expression result is false.
> So, this assertion should have been:
> assert(number_alloc_list < MAX_ALLOC_LIST);
>
> You can change this line in lib/memory.c or reconfigure without
> the '--enable-debug' flag.
>
> ./configure <whatever but not --enable-debug>
> (Should show 'Use Debug flags: No')
> Than a 'make clean' and a 'make'
>
|