From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Andr=C3=A9s_?= =?UTF-8?Q?Ram=C3=ADrez?= Newsgroups: gmane.emacs.bugs Subject: bug#56528: 29.0.50; Emacs lucid segfaults when X dies Date: Fri, 15 Jul 2022 16:17:42 +0000 Message-ID: References: <877d4h1vl9.fsf@astatine.mail-host-address-is-not-set> <87ilo1uw9d.fsf@yahoo.com> <87sfn5l1c9.fsf@gmail.com> <87cze9urzv.fsf@yahoo.com> <877d4hi2lx.fsf@gmail.com> <831qupw3us.fsf@gnu.org> <87r12pgn80.fsf@gmail.com> <83zghdunq1.fsf@gnu.org> <87mtddgkp9.fsf@gmail.com> <83v8s1uecy.fsf@gnu.org> <87y1wwsdvy.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25438"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: Eli Zaretskii , Visuwesh , 56528@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 18:38:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCOKb-0006T9-R3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 18:38:22 +0200 Original-Received: from localhost ([::1]:48074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCOKa-0005YE-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 12:38:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCOFS-0003Ff-BI for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 12:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCOFS-0000bd-2b for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCOFR-0006V9-Sj for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 12:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Andr=C3=A9s_?= =?UTF-8?Q?Ram=C3=ADrez?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56528 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56528-submit@debbugs.gnu.org id=B56528.165790277024974 (code B ref 56528); Fri, 15 Jul 2022 16:33:01 +0000 Original-Received: (at 56528) by debbugs.gnu.org; 15 Jul 2022 16:32:50 +0000 Original-Received: from localhost ([127.0.0.1]:42085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCOFG-0006Uk-6b for submit@debbugs.gnu.org; Fri, 15 Jul 2022 12:32:50 -0400 Original-Received: from mail-dm6nam11olkn2078.outbound.protection.outlook.com ([40.92.19.78]:50144 helo=NAM11-DM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCO0v-00064h-4O for 56528@debbugs.gnu.org; Fri, 15 Jul 2022 12:18:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k5DBQ4tqkyFmomSUWBZ85Bxjn5Hq1hoYue1L3ntJBaZZ4J1NK5sZFu6GZZeM7vcm1s+DAyB7eEdWzhQj/mOqHHLgdb9vJz83OAbd1fqs+/dyVa9FbT7U7nguhcCjfOUrnpXL/zo0psOmBG69W4gcs+UHvcnWUqoiV3pr3DJyNfUGFKdrB/Bdt79rVKyWfRfNBoTdgoWJ8kLvqMwxM+hyG/ZhfFshb0lTKkJNMHzvrorChQZvsZy12buz7niDGZPNLem5Fqd88hOLV0isFIlctTbO4rANaki3lOblSMb5XsE1vJn+zlEarQx6iBpPbIP6ikD5ZXT2v3Bf/Pxa2Oeclg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Jex7HBohM5kYdOJWl7ba4MvZndjfrEIUFmcZYdkJYmY=; b=Y7q0bKYjEYFWc5+IQ+CB1bCRD0gNtWjQw0N+LQCQaqi+JJr90NzNP6wOzY8BPiPqxy/1VDpuyAYU1G9qoVSyVV+I/44aUWZPQprh6F7IUl3N7QrBtHai+Qjwmr+feq2I5G0z3PqDYLHhuzIi8VXDtFdwpEe46oNWg/LBiuXx13lMy9+s9YQqtY3oa5AOuHDl+Mh1BJzOotC4AmMqcqMtD42isrwApWit3lA0DvlRgLTLqbANCT5uyfMfmy8lLbFU5OaWcBTmrJBKGO1eDOPdqGBydumEl5WD1b9CpS++aY/OqkIWkixLZNVuhk7YdvE/U+NFLLI4sWXU7vp5IXZMBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jex7HBohM5kYdOJWl7ba4MvZndjfrEIUFmcZYdkJYmY=; b=ZfMMYf6qyKUEA5psvv2NF9N70fTeRUiVoNixYxTDDA2rtdonJp/ouS0mVfTz+/ERs36M/pXVH61EAqT7waFqAUxtoPp3M9/JTQ1Gw2UWPrd4QzhSs2yGbvfdTZeV1X31Uw2bS93AFriybhJOO05L8an7YA1QdjS4tfGhtl0QS3dCSW8+lxDHBTW/0UNqvE9DdxjievWHfkTm/jloH3fK3WAnwOGXxbgxBDkm18XvEo8OBluEo/j+PzNatG4jVPEt90PAnvsUTw1LWN/wn6VmI/fCPcE5W4HCpYQfm2glbWN6o9YOzoEH/R3eJQeuTEUX08+tu+igbvxuAtxe5iVcXg== Original-Received: from DM6PR03MB3803.namprd03.prod.outlook.com (2603:10b6:5:42::23) by CH2PR03MB5272.namprd03.prod.outlook.com (2603:10b6:610:a0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.14; Fri, 15 Jul 2022 16:17:50 +0000 Original-Received: from DM6PR03MB3803.namprd03.prod.outlook.com ([fe80::b124:b679:c1e6:39c4]) by DM6PR03MB3803.namprd03.prod.outlook.com ([fe80::b124:b679:c1e6:39c4%6]) with mapi id 15.20.5417.026; Fri, 15 Jul 2022 16:17:50 +0000 In-Reply-To: <87y1wwsdvy.fsf@yahoo.com> (Po Lu's message of "Thu, 14 Jul 2022 09:04:49 +0800") X-TMN: [X25ZF4PGTgTxVk1Lj1RpWoHD1wOx4dmy] X-ClientProxiedBy: SC1P152CA0149.LAMP152.PROD.OUTLOOK.COM (2603:10d6:1:15::28) To DM6PR03MB3803.namprd03.prod.outlook.com (2603:10b6:5:42::23) X-Microsoft-Original-Message-ID: <86tu7igxjt.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 554f6d12-b730-4e22-9dd8-08da667d8ff2 X-MS-TrafficTypeDiagnostic: CH2PR03MB5272:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Zk8t0/3G5XwXG14owOihIjURoHLvnolAQmRju/N374vkpz8ugNzrwWC/izP5oBkzRLe7l5Ep5cMOwDfjiGLR2ZIGvMZB7u9Col9IhTZcokL4cbdfa6QMamvmWCtM1toQHFny0c85OneK6kwNzs6ebvWU1JU3GHxLqCVqCFzOWOqu1FNg+cKqIdDTIqdQtqcxaQENcmPIO/HdMbC4elRuKhVkeqaEGJ65ahwXgjBAf6eBFgG2RjYb0vWq1rxZ9y+Ky68nvVXc4uwIf7R4mNR+ammae7jRMW11d71Z1aBMd7rqC+goCZQdueKrs9lDGP0bAm1vupg0OSaItMnZ/K5LIVx2rzut/sO1/mE9b8mEi9sDxCqU8nbqTBG/H51HBnwECJfCrqaCE7UEMl1O80tVTjCD8uQumBXA64HegncSBBCky8Ns4A/1QeKRFZYFPtY76vpNWDP3h92Z8No6OiDFx9opaok8OAQQQIw4PtARrzCVNbDAn54eudyhOZC1t1BBuzWzvxQJGPF9faRCEwPKlFjOEl+DzlprhndbFmsWkv3/kB+tZHe6bUcsjcVwrk0QVFk5tslcPumn+UlQHx7Yzt9xXW7m72Ajg3quVNBFKTjIk/9NOLlRQhapgY9wTQN581eM83sUlO4knv+7E0CuG1y/7OM9gM7LdeE8yPtloymk2+yfxjVjfaytocxQI0xV15YDEfuw/7MP3UtaL0nOU9n5A3yI9aby0yVqcwu6rWg= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UTl9CDbnfyjWUDb3R1bKQQHRI3y+SIK4YEdmQK8KyqH9aUGze/WRSSlY658IzqKZn0UCZ5l9xREw5UgwkE9cU3i0dkV+6dP/ZoWDkoKQZFMy89SSAXDY92poxDDQXk8TZnBwnHvBpxH/a1C8LkbtdwVw7ouQ08fdfb6T4aBa7gIQ9kWq0ooTFJCPpz0MBPa+gYlintd088PKpeN7AuBLbo0rFY6RKu8Pr7H8x41nkArWi4O6txKrkFcL5/ytyWkG87BNvU39heFYRZ8P9oKLbuIyC9UQWf4rKoPBzGBslTz/LRm0Vk/sXPgd3zlfwniphNVwDLRoeQo8jEPi61l+DfJAnlqn0CrngkIP212w4zxAfRANjrgqBAOw/Gs/CL3ERwBBUoUJS/FVTluAxZJbKT0Qy3WOT3ro15deKYr+7xaFZigRYZJC5WO9Bs5g3o8vWwcFH8dbbifjNpOltA+eXbYzgFcrQMKqv01H53XNoYaJETF89+1qVBpgT6rQj6h5Thcwn6MQM/rYtmbmmLV0Lm3hZEeMbwxd9FM3txftyCIilsok3hRpG0qTcyI4ZvHMzYmcQzlIb4axu6WczbFRn2p2vqZw2GsA8nTR3rIYIItFUpYnDUY6LnNECZut8FnvrLsbsLmjh7691zYzKv/gez6e7c8eFWZP+A2/GbKABeZw3zooXbhO690ICw3aiXWca6oOcgC0OTw2WuElPqeZit6IA0wAbzipJpZUIE1dvG0ioZNVoJNkqq6jRI fCcWGursl0/RSguNQbjZ8paxNNGzaumMae7huXkr/EL2Ypb+krmT/cGm0MwHvwPtPzCQYsopqBX4MvoKN9q605+KbXMQXIZBJR X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-685f7.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 554f6d12-b730-4e22-9dd8-08da667d8ff2 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB3803.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2022 16:17:50.2395 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR03MB5272 X-Mailman-Approved-At: Fri, 15 Jul 2022 12:32:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237122 Archived-At: >>>>> "Po" == Po Lu writes: Hi. Po Lu. My comments below. [...] Po> We install an error handler that performs the following: Po> - Bind `inhibit-redisplay' to t. - Delete each frame on the Po> display that went down. - Free the display data and delete the Po> terminal. - Kill Emacs if no terminals are left. - Throw an Po> error to get Emacs out of the error handler. Are You describing the function debug?. If that is the case. I think that function could give some kind of notification to the user. How a newbie emacs user could identify if emacs has segfaulted or if emacs has been killed gracefully by this function?. --8<---------------cut here---------------start------------->8--- (find-function 'debug) --8<---------------cut here---------------end--------------->8--- If there is a way for knowing that. Please let me know. I always run with 'emacs --daemon'. Po> Unfortunately, that doesn't always work reliably, such as here. Po> And we're trying to find out why. That brought to my mind this thread. --8<---------------cut here---------------start------------->8--- https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00943.html --8<---------------cut here---------------end--------------->8--- According to my testing at that time. The debug funct Just executes when 'debug-on-error' is not nil. Best Regards