From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1554 invoked from network); 25 Mar 2023 20:46:30 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Mar 2023 20:46:30 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1679777190; b=sKgvnWpVaKOCyenbobWoW0VvDnwYUgQEtN5nX80CglwzbTxEmeOr5KpOp0i8yx+WuiCj5QSgHI 8nDiqz5Sx7IkRF8fJp/xyOwEmCBZx5MqOLUGc1ZprihOQFfR8NHXeT8zewtT/CVwdU3F/tsDms YNP9W/D8pcVLuBcILisN/sQqhP7BGOzqtcuh2xalLEd9UWhIA21PhfI51BWYbuxGh8arQ1ERsX zDI4hCiTmmg0ZyN0KI6/RPOkkRMxflmbldEZkrF7egq/ATofJG9Gc5l1mn/gXQxb1kCvVfLeJ5 erppN03Gcz3zI+6y/GsuBL0uvztpitDucdsYAlsqLpIrKg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mellona.thatsmathematics.com) smtp.remote-ip=23.253.160.201; dkim=pass header.d=thatsmathematics.com header.s=condor header.a=rsa-sha256; dmarc=none header.from=thatsmathematics.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1679777190; bh=7UO2ITB+LIReGISwpemmer+1xloWsSwabF38V8eN+oM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: DKIM-Signature:DKIM-Signature; b=OPp/teWIKhBTTc6ha3Dy8me0Hs0AUcRERTg1IxuH9Z3py6r61V7hItqMFNxc+oe91Ay+iwNDrJ 4NI/IHW0Ukedi0kdy1d6nhta5v/1OvBBxMv1oj/PAfXNh69mC6SSpDJ1i3WT5kLO39elcUmn4/ 7TIjjzlYxzsfG48y7lW/HZXGa7vrEvDpSzhx6QpjrY852LOtXATHVP8yxfGYkBV3vsZYT6aFm6 mqwypM+qrJd2AglxV6PJt4E+n7fnRz+/J5kj8HoNewjp4bTEDH2qpcb2b3Ox+LJeM5S6B3YqHS n9JOxahIQDnX/neDs4wxbcTtG9xd17YTo72Z6z5Lxt6r5Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:MIME-Version:Message-ID: Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=PEUA+nAG+b67K6nH/wMfXb9hOWvRds4zCGXUQ031R5Y=; b=PHC5u9JXnikhZ2MyHQfDzCfR93 c0Rj2HdbxV6W80xhZ3RpyKLrFN36hF9mEGHGQ3XmvrVQzZsLgM8pMEo6ZskD8bm3Vaim+7GNfLM1Y X17D1m6P2M71Be7jiO6kNF/TZE+WRDUiInTBlIl37gCy0/mOm2teocQcMxzyiGpLisj3gIntEnbyd bwoQrn57upYDaINYy5jk/5A5poY6zC6BIJITUOBW7Equ+xPyFqFsepEGphmj/WOsGE2lKNttZKNpb pZCjgEi3Kv7x7ePVfUn2OX86v1hsmvwVSmmYGfsn4Fpcght0QDzEHXT02hLfH4HAUMS3CMnuvHquM IrASZtoQ==; Received: by zero.zsh.org with local id 1pgAmT-000PMI-5H; Sat, 25 Mar 2023 20:46:29 +0000 Authentication-Results: zsh.org; iprev=pass (mellona.thatsmathematics.com) smtp.remote-ip=23.253.160.201; dkim=pass header.d=thatsmathematics.com header.s=condor header.a=rsa-sha256; dmarc=none header.from=thatsmathematics.com; arc=none Received: from mellona.thatsmathematics.com ([23.253.160.201]:54050) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pgAgq-000OvG-BU; Sat, 25 Mar 2023 20:40:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=thatsmathematics.com; s=condor; t=1679776838; bh=7UO2ITB+LIReGISwpemmer+1xloWsSwabF38V8eN+oM=; h=Date:From:To:Subject:From; b=rWNVVIjoejkZFQuTybIDd0u3WMqIOUx3o00IpEDcKQ0ywh/kHMBpNUngIn8m4w3wF VstYMkCosZv0o98hS7+vHH/wV083XTugQ7zj3IOn6aMWkd3Dr8khw0ZY15kSLBjAYG JTVmGK//dANasgji2NE52SlGirb+plRVUw4MQ4NOdyGEVJrSHNyHQmqnsZRF9uJl70 XCxDCgIcwrROj4xZXCHpbeaHWiw6KL8TL1Y+vLWavS+B0vZXaaH6yC8szcg9F1J3Pk 4NZvLcIgIF1rBALcTZoHBuuQ4P0sFYuvvm6oOKOR1SrQRv33Kf3Ogl3hw+JboHDr6e aSFzE8jWXYG7w== Received: from moneta.lan (unknown [76.131.96.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mellona.thatsmathematics.com (Postfix) with ESMTPSA id 64AEF1E8A2F for ; Sat, 25 Mar 2023 20:40:38 +0000 (UTC) Date: Sat, 25 Mar 2023 14:40:36 -0600 (MDT) From: Nate Eldredge To: zsh-workers@zsh.org Subject: SIGABRT/SIGIOT confusion under Linux Message-ID: <3ac2df17-56b4-be10-b3ba-f27af8d1c47a@thatsmathematics.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Seq: 51601 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Linux, the obscure SIGIOT signal, which hasn't really been meaningful on any machine since the PDP-11, is an alias for the common SIGABRT (signal 6). The system strsignal() function maps signal 6 to the expected description "Aborted". However, since zsh does its own translation, and since the SIGABRT precedes SIGIOT in Linux's , the latter overwrites the former in zsh's signal string tables. See Src/signames2.awk. This has (at least) two unfortunate results: 1. When a command aborts by calling `abort()`, which raises SIGABRT, zsh emits the message "zsh: IOT instruction (core dumped)" which will surely mystify most users. 2. The `kill` builtin doesn't accept `-ABRT`. If you wanted to send the abort signal to a process, you would have to know to do `kill -IOT pid` instead, or `kill -6 pid` if you have the numbers memorized. Tested with zsh 5.9 as distributed with Ubuntu 22.10 on x86-64, but the latest zsh source in git seems to not have changed. -- Nate Eldredge nate@thatsmathematics.com