From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10277 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.linux.lib.musl.general Subject: Re: abort() fails to terminate PID 1 process Date: Sun, 3 Jul 2016 21:58:45 +0200 Message-ID: <82c4150b-3433-4e3f-2304-9aceef82a54b@skarnet.org> References: <20160620100443.GV22574@port70.net> <20160620194110.GM10893@brightrain.aerifal.cx> <20160703135846.GF15995@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1467575935 16744 80.91.229.3 (3 Jul 2016 19:58:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2016 19:58:55 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10290-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jul 03 21:58:55 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bJnXa-0000fs-I2 for gllmg-musl@m.gmane.org; Sun, 03 Jul 2016 21:58:54 +0200 Original-Received: (qmail 7685 invoked by uid 550); 3 Jul 2016 19:58:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 7664 invoked from network); 3 Jul 2016 19:58:51 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 In-Reply-To: <20160703135846.GF15995@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:10277 Archived-At: On 03/07/2016 15:58, Rich Felker wrote: > Whether you realize it or not, what you're saying is equivalent to > saying that it's UB for a process that runs as pid 1 to call abort(). > There is no basis for such a claim. There's no basis in the specification, but in practice, on Linux at least, a process that runs as pid 1 outside of a container and that exits - whether normally or via abort() or anything else - will cause a kernel panic. So treating that case as UB is defensible, at least until musl is ported to an OS where pid 1 death is less dramatic. -- Laurent