Trying to get Varnish to create a core dump

Jennings III, Raymond raymond.jennings at nytimes.com
Tue Jan 20 19:36:52 CET 2015


Yes, I do have that in the init.d script

I am on centos.

Thanks.

Raymond Jennings III
*nytimes.com <http://nytimes.com/>*
*Office: 212.556.7786 <212-556-7786>*

*iPhone: 914.330.5074 <914-330-5074>E-mail: Raymond.Jennings at nytimes.com
<Raymond.Jennings at nytimes.com>FaceTime: Raymond.Jennings at nytimes.com
<Raymond.Jennings at nytimes.com>*

On Tue, Jan 20, 2015 at 12:18 PM, Andrzej Godziuk <info at massivescale.net>
wrote:

> On Tue, 20 Jan 2015 10:57:17 -0500
> "Jennings III, Raymond" <raymond.jennings at nytimes.com> wrote:
>
> > I am using the production rpm of varnish (not building via the varnish
> > source) but my VCL has a lot of inline C and I also load a dynamic
> > loadable library in vcl_init which does has full symbol table, debug
> > on.  I keep getting segmentation faults but cannot get a core file
> > from Varnish to save my life.
> >
> > /var/log/kern clearly shows varnish segfaulting
> >
> > I have tried:
> >
> > ulimit -c unlimited
> > echo 1 > /proc/sys/kernel/core_uses_pid
> > echo 2 > /proc/sys/fs/suid_dumpable
> > mkdir /mnt/cores
> > chmod 777 /mnt/cores
> > echo /mnt/cores/core > /proc/sys/kernel/core_pattern
> >
> > Anything else that I am overlooking?
>
> Did you put "ulimit -c unlimited" in Varnish init script?
>
> Also, if you're on Ubuntu, try the following:
> rcapparmor stop
>
> --
> Andrzej Godziuk
> http://massivescale.net/
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150120/dbf2dfba/attachment.html>


More information about the varnish-misc mailing list