[nycbug-talk] Strange Apache Coredump behavior

Mark Saad mark.saad at ymail.com
Fri Dec 30 16:46:39 EST 2011


On Fri, Dec 30, 2011 at 3:43 PM, Jesse Callaway <bonsaime at gmail.com> wrote:
> s/https/ with a d
>
> On Dec 30, 2011 3:43 PM, "Jesse Callaway" <bonsaime at gmail.com> wrote:
>>
>> Apache https has its own corefile options. Since it starts as root it may
>> override or ignore your system settings. I don't know the syntax offhand,
>> and but the docs at apache.org should give some love.
>>
About that, the CoreDumpDirectory option did not seem to make any
difference. I ended up removing it since it did not do anything for
us.

 From what I could tell it only helps when you want to override the
kern.corefile sysctl . In my case I had defined it as
kern.corefile=/var/coredumps/%U-%N-%P.core . The biggest pit fall with
that sysctl was that I originally quoted the value which did not work
ie kern.corefile="/var/coredumps/%U-%N-%P.core" This instructed the
kernel to try and make cores named "/var/coredumps/... and it would
fail since there was not directory named "



>> On Dec 30, 2011 3:17 PM, "Mark Saad" <mark.saad at ymail.com> wrote:
>>>
>>> On Thu, Dec 29, 2011 at 10:14 AM, Brian Seklecki (Mobile)
>>> <root at probikesllc.com> wrote:
>>> >>
>>> >>
>>> >> I have no cores and I am stumped.
>>> >>
>>> >
>>> > Check the apache RC script; it may be setting ulimit(1) on coredump.
>>> >
>>> > Also try to run a "Hello World" segfault tester as the www/httpd user
>>> > and
>>> > see if you get your dump.
>>> >
>>> >  int main(void)
>>> >  {
>>> >     char *s = "hello world";
>>> >     *s = 'H';
>>> >  }
>>>
>>> The end result of that issue was I forgot to set kern.sugid_coredump=1
>>> in sysctl.conf .
>>>
>>>  Also in FreeBSD 7.3 gcore would not produce any usable coredumps from
>>> apache. I could not figure that out.
>>>
>>>
>>> --
>>>
>>> Mark Saad | mark.saad at ymail.com
>>> _______________________________________________
>>> talk mailing list
>>> talk at lists.nycbug.org
>>> http://lists.nycbug.org/mailman/listinfo/talk



-- 

Mark Saad | mark.saad at ymail.com



More information about the talk mailing list