pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Question about failed to start Zabbix server 5.0 (pkgsrc-wip)

On Sun, Sep 06, 2020 at 08:04:05PM +0200, Juraj Lutter wrote:
> It required systematic inspection of source code and rewriting the most critical
> parts to not allocate the structures from the stack statically.

You are using confusing terms here. In C you can alloc dynamically
(from the heap, using malloc()) use automatic stack variables, or
static storage (which is not on the stack).

> After rewriting some functions to zbx_malloc() instead of static allocation,
> it started to work like a charm.

This sounds like you did hit a stack size limit, maybe it is easier to
provide more stack space instead?

Unless you mean something totally different, of course.

Can you please clarify?


Home | Main Index | Thread Index | Old Index