Date: Fri, 29 Jun 2018 08:57:57 -0700 From: Michael Sierchio <kudzu@tenebras.com> To: Doug Hardie <bc979@lafn.org> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: Signal 6 Message-ID: <CAHu1Y70YSOmzvbVDQPH-5MpzW5CEBg0QaRiCyvs6%2BdDAwDhmAw@mail.gmail.com> In-Reply-To: <CAHu1Y71%2Bk4aOgeMh-muxfM7qb2vCNjGsgYYyVstB=TrDto92zg@mail.gmail.com> References: <0D66C7A3-EBE6-475C-8360-CAFEAEA4D328@mail.sermon-archive.info> <CAHu1Y71%2Bk4aOgeMh-muxfM7qb2vCNjGsgYYyVstB=TrDto92zg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
One way to find out is to register a handler for SIGABRT and print and flush the context. On Fri, Jun 29, 2018 at 8:56 AM, Michael Sierchio <kudzu@tenebras.com> wrote: > Are there process limits? > > malloc() will call abort() if internal structures are munged (e.g., by > heap overflow). > > calling free() on a corrupted pointer does that reliably > > is the root partition big enough for the dump? > > =3D M > > On Fri, Jun 29, 2018 at 8:40 AM, Doug Hardie <bc979@lafn.org> wrote: > >> I have a daemon process that runs forever (almost). Something is killin= g >> it with a signal 6, but no core dump is done. If I manually kill it wit= h >> kill -6, then the log message shows core dumped and a core file is >> created. The process has no reference to SIG_ABRT, so I suspect the ker= nel >> is doing the kill and is overriding the core dump. I have previously >> encountered a similar issue where swap space was running out and the ker= nel >> killed this process without a core dump. In that case there were quite = a >> few messages logged about swap space issues before the process was kille= d. >> There are no swap messages logged this time. >> >> /etc/sysctl.conf contains: >> kern.sugid_coredump=3D1 >> kern.corefile=3D/crash/%N.core >> >> /crash is a directory in the root file system. >> >> Other than swap issues, when would the kernel kill a process without a >> core dump? >> >> -- Doug >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe >> @freebsd.org" >> > > > > -- > "Well," Brahma said, "even after ten thousand explanations, a fool is no > wiser, but an intelligent person requires only two thousand five hundred.= " > > - The Mah=C4=81bh=C4=81rata > --=20 "Well," Brahma said, "even after ten thousand explanations, a fool is no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y70YSOmzvbVDQPH-5MpzW5CEBg0QaRiCyvs6%2BdDAwDhmAw>