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 6 Sep 2020, at 20:10, Martin Husemann <> wrote:
> 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.

Yes, you are right.

Raising the stack limit using `ulimit -s 16484’ did the trick (4096 seems too low).

My fault, this is the one last thing that I looked on right after I sent the e-mail.

Sorry for the confusion.

Home | Main Index | Thread Index | Old Index