From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 25 15:24:02 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27670106566B for ; Tue, 25 Oct 2011 15:24:02 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id BBE7D8FC14 for ; Tue, 25 Oct 2011 15:24:01 +0000 (UTC) Received: by faar19 with SMTP id r19so904591faa.13 for ; Tue, 25 Oct 2011 08:24:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.91.143 with SMTP id n15mr46536946fam.23.1319556239616; Tue, 25 Oct 2011 08:23:59 -0700 (PDT) Received: by 10.223.96.133 with HTTP; Tue, 25 Oct 2011 08:23:59 -0700 (PDT) X-Originating-IP: [216.223.13.144] In-Reply-To: <20111024212636.GS55289@cicely7.cicely.de> References: <20111024212636.GS55289@cicely7.cicely.de> Date: Tue, 25 Oct 2011 11:23:59 -0400 Message-ID: From: Mark Saad To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Apache Corefile issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 15:24:02 -0000 On Mon, Oct 24, 2011 at 5:26 PM, Bernd Walter wro= te: > On Mon, Oct 24, 2011 at 04:52:15PM -0400, Mark Saad wrote: >> Hackers >> I have a strange apache issue , and I wonder if anyone has seen this bef= ore. >> I am running Apache 1.3.34 on freeBSD 7.3-RELEASE amd64 . At some >> point in the day apache's children segfault and die. No core files are >> generated. =C2=A0I am >> not running mod_php either. > > Apache 1.x isn't really advised since many many years, but I assume you > have very special reasons to stay with it? we are moving away from this to nginx > >> 1. I have setup the following sysctls >> >> =C2=A0#Debug options >> =C2=A0kern.sugid_coredump=3D1 >> =C2=A0kern.corefile=3D"/var/coredumps/%U-%N-%P.core" > > Don't use quotes here. Stupid me , why is this sysctl using no quotes as its convention ? > >> 2. The httpd.conf is set with CoreDumpDirectory /var/coredumps/ >> >> 3. The dir =C2=A0/var/coredumps/ is set 1777 >> >> 4. A ktrace of the parrent apache process shows the core file tries to c= reate >> >> >> =C2=A084954 libhttpd.ep RET =C2=A0 kill 0 >> =C2=A084954 libhttpd.ep CALL =C2=A0sigreturn(0x7ffffffeb030) >> =C2=A084954 libhttpd.ep RET =C2=A0 sigreturn JUSTRETURN >> =C2=A084954 libhttpd.ep PSIG =C2=A0SIGSEGV SIG_DFL >> =C2=A084954 libhttpd.ep NAMI =C2=A0""/var/coredumps/65534-libhttpd.ep-84= 954.core"" > > It's double quoted here - one to frame the filename and one as part of th= e > filename itself. > I guess your / directory don't contain a subdirectory named ". This worked with out the quotes on the sysctl > >> =C2=A034924 libhttpd.ep RET =C2=A0 select 0 >> =C2=A034924 libhttpd.ep CALL =C2=A0gettimeofday(0x7fffffffe890,0) >> =C2=A034924 libhttpd.ep RET =C2=A0 gettimeofday 0 >> =C2=A034924 libhttpd.ep CALL =C2=A0fork >> >> 5. I =C2=A0have proc mounted and I can't =C2=A0gcore -s $PID either >> >> I have no cores and I am stumped . >> >> >> -- >> mark saad | nonesuch@longcount.org >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.or= g" > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > --=20 mark saad | nonesuch@longcount.org