From nobody Fri Jul 12 11:12:47 2024 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WL9Tj2kVSz5QGZh for ; Fri, 12 Jul 2024 12:12:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WL9Th6469z3wdl; Fri, 12 Jul 2024 12:12:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 46CCChNt081027; Fri, 12 Jul 2024 15:12:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 46CCChNt081027 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 46CBClQd064036; Fri, 12 Jul 2024 14:12:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 12 Jul 2024 14:12:47 +0300 From: Konstantin Belousov To: Dave Cottlehuber Cc: Zhenlei Huang , FreeBSD Current Subject: Re: exited on signal 11 (no core dump - other error) Message-ID: References: <5bb1505d-65c5-43cb-878c-38ec02271a50@app.fastmail.com> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5bb1505d-65c5-43cb-878c-38ec02271a50@app.fastmail.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on tom.home X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4WL9Th6469z3wdl On Fri, Jul 12, 2024 at 10:45:31AM +0000, Dave Cottlehuber wrote: > On Fri, 12 Jul 2024, at 03:39, Zhenlei Huang wrote: > > Hi > > > > I observed something weird on Release 14.1. > > > > When rebooting my dev machine, I got > > ... > > IIUC all processes will get signal to quit on system reboot. But what does the > > signal 11 mean ? Is it EDEADLK in sys/sys/errno.h ? > > > > If yes, then why they get dead locked ? > > I see the same on 15.0-CURRENT too here. In my case this is just after syslog-ng is stopped. > > <6>[1920] pid 6090 (wezterm-gui), jid 0, uid 1002: exited on signal 11 (no core dump - other error) > <6>[1920] pid 6039 (polkitd), jid 0, uid 565: exited on signal 11 (no core dump - bad address) > <6>[1920] pid 4306 (dbus-daemon), jid 0, uid 556: exited on signal 11 (no core dump - bad address) Most natural cause for SIGSEGV during shutdown is because root is unmounted while the processes are still handling signals (SIGTERM) from init. The text vnodes for the process binary and shared libraries are force-reclaimed, and any page-in request results in the unhandled fault. I regularly see these SIGSEGVs on nfs-booted crash boxes.