Mailing List Archive

Memory leak in varnishncsa ?
root at lb:/tmp# varnishncsa > v.log
Assert error in trimline(), varnishncsa.c line 160:
Condition(p != NULL) not true.
errno = 12 (Cannot allocate memory)
Aborted


It just keeps growing until it's out of memory.
Memory leak in varnishncsa ? [ In reply to ]
Fredrik Neij <fredrik.neij at teneco.se> writes:
> root at lb:/tmp# varnishncsa > v.log
> Assert error in trimline(), varnishncsa.c line 160:
> Condition(p != NULL) not true.
> errno = 12 (Cannot allocate memory)
> Aborted
>
> It just keeps growing until it's out of memory.

I've looked long and hard at the code, and while I did identify some
memory leaks, they were all in code paths related to the -b option,
which you don't seem to use.

Could you either run varnishncsa under valgrind and send me the results,
or send me the log file so I can try to track down the leak?

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no