From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10288 Path: news.gmane.org!not-for-mail From: Jorge Almeida Newsgroups: gmane.linux.lib.musl.general Subject: Re: abort() PID 1 Date: Mon, 4 Jul 2016 02:49:28 -0700 Message-ID: References: <20160704093140.GH19691@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467625792 12231 80.91.229.3 (4 Jul 2016 09:49:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 09:49:52 +0000 (UTC) To: musl@lists.openwall.com, Jorge Almeida Original-X-From: musl-return-10301-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 04 11:49:46 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 1bK0Vd-0007ie-Qh for gllmg-musl@m.gmane.org; Mon, 04 Jul 2016 11:49:46 +0200 Original-Received: (qmail 24287 invoked by uid 550); 4 Jul 2016 09:49:40 -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 24266 invoked from network); 4 Jul 2016 09:49:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vw48HjGXKHMh7BANC+b92d6nk/XKbpVbEi3QjorehYw=; b=FrCI0JsYpaHYY5BzDpCj88191HRnmunljNeQIbTFAgJa95FKF4Nhy8mYcw94JWp79b Q6cqRbVmnRV3/3uM7Kf6ybzKt+D/A5p8txk4PzkrZt7bVMnS4JdYji3JBIrRkVq9NgJH 6Ux4uiXUZVP16OdDhXAxRsWdnX/K2cN+//UvDQqFQa0e9Kb6JCdWuC3+Yc72nV9ZCw2r Avq1MsvWBC22r3muvGY+J0y5hjnPcHCxwAxTLt0bQJY0T8E1931sLBg3flMEJ3cx5CcT GzcFMWW0QEF6Awej/fyPR4k8s2Rma1jenIFpJVa2F8ZtW0xaK3cf+Sc+wMYlDew91w+F TWjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vw48HjGXKHMh7BANC+b92d6nk/XKbpVbEi3QjorehYw=; b=YNT4M9ni3l7NknElgLMMYGXQvRU0nBiJSXtLzXNOFnAkGpBwKoMGnyttvulJFX/q24 s8yhJdphhA1eXeGMImxECbBAht4SwFw5iSVsEbNQm3xU5XyUVlNA1ukORuxDs1N3nJvK gsnW2Ie7L5nybvYud8VJZduf2m76GoheFzjSB9WNWb/7uAQb0K8c2yTaB5y8sTFBiItl aCY9vOCL4WmzDKP4ubmT8uhvKAneC0B7F8eUvk/r+KggIPPRDa9mmegww4bUhvaCYp+U l+URWq9L1TbuUbcFUCz6/XrVB5eiTG/Utkc3reP0XcGjpJROF5TCoGOShfYLWA3XVJjG fgpQ== X-Gm-Message-State: ALyK8tI2kRZznNjZ0J6bCwIoTxehx8mPjFHocQiYtCxzxgWKFLV3CCb9XMNCZmLK9O/ZCpIPPBbRU6YdlIO+MA== X-Received: by 10.25.125.139 with SMTP id y133mr3012808lfc.140.1467625768948; Mon, 04 Jul 2016 02:49:28 -0700 (PDT) In-Reply-To: <20160704093140.GH19691@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:10288 Archived-At: On Mon, Jul 4, 2016 at 2:31 AM, Szabolcs Nagy wrote: > * Jorge Almeida [2016-07-04 01:09:32 -0700]: >> What I thought I understood: >> >> - the kernel will not deliver any signal to process 1, unless a signal >> handler for that particular signal has been installed >> > > not all signals behave that way. Would you elaborate on that? (links?) > > this is raise(SIGABRT), abort is different. Quotes in my first message say it's the same: >> >> (http://pubs.opengroup.org/onlinepubs/9699919799/) >> >> "The SIGABRT signal shall be sent to the calling process as if by >> means of raise() with the argument SIGABRT." >> > > it also says > > "The abort() function shall cause abnormal process termination > to occur, unless the signal SIGABRT is being caught and the > signal handler does not return." > > and > > "The abort() function shall not return." > This is where I see an inconsistency... > > there is no inconsistency. > > abort should raise(SIGABRT) and it should terminate the process. > > (normally there should be an abort syscall provided by the kernel, > but linux does not have it.) > >> So, can one trust the man pages? > > not always, use the standard for standard interfaces. Too bad... Thanks Jorge