From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56528: 29.0.50; Emacs lucid segfaults when X dies Date: Wed, 13 Jul 2022 18:45:02 +0800 Message-ID: <87ilo1uw9d.fsf@yahoo.com> References: <877d4h1vl9.fsf@astatine.mail-host-address-is-not-set> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4167"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 56528@debbugs.gnu.org To: visuweshm@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 13 12:46:38 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 1oBZt7-0000wi-Pe for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 12:46:37 +0200 Original-Received: from localhost ([::1]:51214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBZt6-0002VN-Dz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jul 2022 06:46:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBZsY-0002Ub-9n for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 06:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBZsX-0001bO-W7 for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 06:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBZsX-0002Jv-Rg for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2022 06:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2022 10:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56528 X-GNU-PR-Package: emacs Original-Received: via spool by 56528-submit@debbugs.gnu.org id=B56528.16577091208807 (code B ref 56528); Wed, 13 Jul 2022 10:46:01 +0000 Original-Received: (at 56528) by debbugs.gnu.org; 13 Jul 2022 10:45:20 +0000 Original-Received: from localhost ([127.0.0.1]:44535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBZrs-0002Hz-EP for submit@debbugs.gnu.org; Wed, 13 Jul 2022 06:45:20 -0400 Original-Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]:38575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBZrp-0002Gj-MF for 56528@debbugs.gnu.org; Wed, 13 Jul 2022 06:45:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657709110; bh=mV2jFSbCU4H2J+8FuGRAwNWy5J0pj/kt2n952NMqdQg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=hgnGxulg1SDQOHz+NYrwIljSROxlS/gr7YR60rIb/Jllq3Ji3WaxPUv77YmCv7P8DBoy3pTjJeqiTAIWF/F3A9MvyLzNZTLye/pzmNLAhoOSsr3X8W9F/8rK04dwouJrcZR8FRoCAJXdW33d2uaSrllwRUT+8OAHNSobHLepUTNVKgm4A4EoUkgLUfdiW1k5R+l898awKxZdZJCreZ/FfiM9RMi6/FIEA0DPl/3y3XmzFIvQ5Ae3Tl0JDL8Mumh/OvVptYzJQHc5MtpklGDfp84wt3THWBr9X78TmuOWwxEgRHkm0+Z+YI6atHgqhO3L7IYvqSKoVoSVXlTTFLpqsQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657709110; bh=td4KomIR4/sv80r/kvo8uowzCOOOn04q6Ndq1hXjy0+=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=kV7HKPFUTIOJuFRsRixtW9OM+f7/SOr3pMiNOjlna5iK37a+uI+50yaHySM/xAj6ZHMgiLBplBOtbANZAa8LvOdR23CcKbd/K0erK9tETPWgKpt1nu4oDPgZyYYfbbVESlVXL75WHduLAxrEOod7JZmMN1GFQwq2ZerinHJkrP8P6S71BHMLrk9nLOA6XBCuFBtf+Be8vTKowBOFXEtrD+WuAadTGFDjjm2YJraUXtOve4pPbQ1iuYr7Rg9OOrY4gf1JnBZ6T8TynSRjKNDhFAM5GF03X1UfBfxLuubcReQ+5v+UveGnVb7HBwMfv1+KNHLJLL6szYnImOEYvmlypQ== X-YMail-OSG: q20f93IVM1lciBfWfRFeBIpoe_qPyPShlTPYRp1EUMCnpWmOhSyt5NnD8F2_EPs x4zE1aFReWVTh.vQb1Z5Ov0Jxvan9A7pbpDhYsgjAlAzIceldm5F7Cq2E7AsZkyFJyfbHc1gI6K_ AspJ2JPeuDDVag7bKRczP8mW.WfK0qZLveezI04A6Jwpye6mF1IO9xFm3e5FuAdGJdPIgDHTHJxA nzm5ioq.bDV2f.X5gSSptsYP9T120GADxUavrOFCcQ496Nh_e5EhFx24DfEuVScPSSLYcsJwBWWn Nz4dqcMAW7uzoKOoMarEktFP31rCK46MEEi0TLjoKk_5vswypRscbeiO1Xde92oe52L3tNH7S38s .L_PPybfb9IlmzI9mT8Gs7c1urTPJ797QPXX9tsNwx3JO3pv26WeCJSJ6HUCA8f4IlJZxywLoTLL gjRM2JrnlJbv4bdvmQkDg8NqQ7W3DhBoZxYphxZc80PVtAq6TBDI9ekKmqTjNILg2Vzg5FED6g_k Av9ZMMOqp.MaTSb2c6oAawtSBGzAV_SpxU3jLTI9zrlPLyvgVidMxUQFqD1baJwMm3kcX8OHojPw F6zHhROtOexa.EPZ1oQ7SnOVD_Lex9nrU_LaYQh1uxTIhIfzo8ZKHoGql0b8yHdT7BKtCiQBeXBb vnhF94O1Bh1Pby7HjbagR8b827Enu7NW59gnIrWaE3Jpfic7w9MDNZkdN5nVsUvLtJtCyYRR0a1R xGGIkgVNgF.P7oefK7jvA3rK.Tn7LfD8a4vyz0KWLlhjFpp8Iyb6zm5mnp62Ligsur8ruVoKtOI1 A5eKpGbmWDF35hWp6Q752U7CBhoWCPH6.CzLoKA7mT X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Wed, 13 Jul 2022 10:45:10 +0000 Original-Received: by hermes--canary-production-sg3-67975bbd4b-hh5lh (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9d08b49fb7bb36cf6e9005ea94cee48d; Wed, 13 Jul 2022 10:45:07 +0000 (UTC) In-Reply-To: <877d4h1vl9.fsf@astatine.mail-host-address-is-not-set> (visuweshm@gmail.com's message of "Wed, 13 Jul 2022 10:02:18 +0530") X-Mailer: WebService/1.1.20407 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:236850 Archived-At: visuweshm@gmail.com writes: > When X dies, Emacs lucid segfaults (backtrace attached as > emacs.backtrace). I confirmed that xrdb read 'emacs.synchronous: true' > by running xrdb -q. > > After starting Emacs in the gdb session, I switched over to the right X > display and ran, > > 1. M-x server-start RET > 2. Said emacsclient -c in a terminal > 3. In the spawned emacsclient, I ran proced to find out the pid for > the Xorg server and killed it by saying M-! kill RET > 4. Switched over to the gdb session, and produced the backtrace. > > [ It doesn't seem to always segfault tho, but the Emacs process certainly > always dies when X goes down. I also produced the backtrace for > not-segfault case and I'm attaching it as emacs.backtrace.nosegfault. ] Can you type the following commands at the gdb prompt after the crash happens, and show me the output? (gdb) up (gdb) p *terminal (gdb) p *terminal->display_info.x