[Serusers] Re: [Serhelp] FW: SER crashing because of too many interfaces

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Wed Feb 11 16:31:21 CET 2004

On Feb 11, 2004 at 16:06, Jan Knoppers <knoppers at astent.nl> wrote:
> Hi,
>   A while back I reported a problem with SER given a memory allocation
> failure. At that time we were still using SER 0.8.11. Early this week we
> repeated our test with 0.8.12. Unfortunately the problem is still there.
> Below you will see the error output.
> Although we initially believed SER to crash, this is not the case, so we
> cannot send you a coredump.
> Below you will find the error output. In this example we force SER to
> listen to 2 interfaces by specifying the respective IP addresses in the
> ser.cfg file. As you see we get 2 "memory allocation failure" error
> messages. If we increase the number of interfaces to say 5, we also get
> 5 of these "memory allocation failure" error messages.

> The server has a very large number of ppp interfaces defined (several
> thousands). This is the source that brings the error to the surface. If
> we decrease this number to a much lower figure, say 30, the problem is
> gone. We believe the problem to be in main.c and that malloc is given
> error message.
> Because of this problem, SER fails to function on our server.
> Could you take a look into this matter?

What it probably happens is ser doesn't have enough space to hold the
list of interfaces array, when it tries to enumerate all the interfaces.

Try to increase PKG_MEM_POOL_SIZE in config.h. Its default value is 1MB
 and all ser local (per process, not shared) memory allocations cannot
 exceed it.


More information about the sr-users mailing list