From owner-svn-src-all@FreeBSD.ORG Mon Feb 9 23:23:00 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29B6CB5C; Mon, 9 Feb 2015 23:23:00 +0000 (UTC) Received: from st11p02mm-asmtp001.mac.com (st11p02mm-asmtpout001.mac.com [17.172.220.236]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E9F9812; Mon, 9 Feb 2015 23:22:59 +0000 (UTC) Received: from st11p02mm-spool002.mac.com ([17.172.220.247]) by st11p02mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTP id <0NJJ00K4829MQ500@st11p02mm-asmtp001.mac.com>; Mon, 09 Feb 2015 23:22:35 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-02-09_04:2015-02-09,2015-02-09,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1502090230 MIME-version: 1.0 Received: from localhost ([17.172.220.163]) by st11p02mm-spool002.mac.com (Oracle Communications Messaging Server 7.0.5.33.0 64bit (built Aug 27 2014)) with ESMTP id <0NJJ00IAJ29MQG20@st11p02mm-spool002.mac.com>; Mon, 09 Feb 2015 23:22:34 +0000 (GMT) To: Benjamin Kaduk From: Rui Paulo Subject: Re: svn commit: r278479 - in head: etc sys/kern Date: Mon, 09 Feb 2015 23:22:34 +0000 (GMT) X-Mailer: iCloud MailClient15A99 MailServer14H18.17359 X-Originating-IP: [12.218.212.178] Message-id: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , Rui Paulo X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2015 23:23:00 -0000 On Feb 09, 2015, at 03:16 PM, Benjamin Kaduk wrote:=0A= =0AOn Mon, Feb 9, 2015 at 6:13 PM, Rui Paulo wrote:=0A= Author: rpaulo=0ADate: Mon Feb=C2=A0 9 23:13:50 2015=0ANew Revision: 27847= 9=0AURL: https://svnweb.freebsd.org/changeset/base/278479=0A=0ALog:=0A=C2=A0= Notify devd(8) when a process crashed.=0A=0A=C2=A0 This change implements= a notification (via devctl) to userland when=0A=C2=A0 the kernel produces= coredumps after a process has crashed.=0A=C2=A0 devd can then run a speci= fic command to produce a human readable crash=0A=C2=A0 report.=C2=A0 The c= ommand is most usually a helper that runs gdb/lldb=0A=C2=A0 commands on th= e file/coredump pair.=C2=A0 It's possible to use this=0A=C2=A0 functionali= ty for implementing automatic generation of crash reports.=0A=0A=C2=A0 dev= d(8) will be notified of the full path of the binary that crashed and=0A=C2= =A0 the full path of the coredump file.=0A=0AWhat advantage does putting t= his in devd have over a standalone daemon for crash reporting?=C2=A0 Is it= just the ease of implementation to leverage the existing infrastructure?=0A= =C2=A0=0AWell, I want to automatically inspect all the programs that crash= ed in a given system. =C2=A0I don't see how you can do that with a standal= one daemon. =C2=A0Or maybe I didn't understand what you meant.=