From owner-freebsd-questions@freebsd.org Fri Jun 29 15:57:59 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B79DEFC459 for ; Fri, 29 Jun 2018 15:57:59 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qt0-x242.google.com (mail-qt0-x242.google.com [IPv6:2607:f8b0:400d:c0d::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F17C87040A for ; Fri, 29 Jun 2018 15:57:58 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-qt0-x242.google.com with SMTP id f1-v6so1221022qti.3 for ; Fri, 29 Jun 2018 08:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wCAii19by/nBGhginKa4uFTfOVEAdKYm2MV1ZvIhbO0=; b=lWmV3FPdJHkr5ez7gTxHqQ1/O0msFAlraldpj2Vu3tuiSUo8yv1o8PECG/VdSjQkki b0DXe9KezuAya66z2jGprTEO+Imw0Tgy3ZBXqFO0CN+ybFqp3fNbd/YtfIJaoUErFTIP lyrO07Qj++4VfVilvgp+6lf0dhbhKsK1osZllURnUdXH6wEOJYnSvEWN8/zg4H9hnWap HEXiD/VO4E9SyHSW/jHDxgWTOm8ADJP/QkzEBgb5EMCgjw94E5I525q6fs4JqB7MEKO2 jw3ARHLVFUiv8c3R3EmTajA+yPHxqgDtBdJc6XbILZx0R1VqtjjtGBabPDecFApDTl0o BlRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wCAii19by/nBGhginKa4uFTfOVEAdKYm2MV1ZvIhbO0=; b=thAkQW1kCMYUlXaDJedoS7xdvxjdbb7AcQp6+8f4zNrMYOGY8tnhZZOGggutVXkWwA +NVh/84JufdnZM1xSfqjH6hZ1qDuRtv2K6YXMbrVTyqBcyVjlP8KOQUvS9nhOBeKckov eqwQ9cFPDwFjvYCbo4Gnid5TfiQDrS4DcA/ZElSOeytzUy+Ld4VXeMcvKhY4YfM1WdtA 1DTIGVXGVXShpYmuMXMhkE2gbHXn6r32Fpn5sTDPx0xyS8/o7DZNNLrtkgDQ6+jfFTRe nQOQJA+FUMtp/Aj4dqqtZPoKJso2TRWiiJj24d64LBID98q4mzrE+EuEbzEC0KpEirSy ApRA== X-Gm-Message-State: APt69E1R8hxLKGWHKZu4GxXumA+e8Ra6DxqxFtWT6ivbJDPhjn6HEX5q 3cELpZfQeeyksVg6m7sA68vJDzhT91Hn14kioA+eBw== X-Google-Smtp-Source: AAOMgpeaYz51qGwwjQVsn2jA3cDtOt+gff0Xx5nEPHbJLkc8NecxvxhzBBP0LSK/AmVw1+r4wdAQWZt5L4M0hhjOVRk= X-Received: by 2002:a0c:afb8:: with SMTP id s53-v6mr1162626qvc.164.1530287878365; Fri, 29 Jun 2018 08:57:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:297d:0:0:0:0:0 with HTTP; Fri, 29 Jun 2018 08:57:57 -0700 (PDT) In-Reply-To: References: <0D66C7A3-EBE6-475C-8360-CAFEAEA4D328@mail.sermon-archive.info> From: Michael Sierchio Date: Fri, 29 Jun 2018 08:57:57 -0700 Message-ID: Subject: Re: Signal 6 To: Doug Hardie Cc: freebsd-questions Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 15:57:59 -0000 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 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 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