From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52295: 28.0.90; Killing text results in coding system complaint Date: Sat, 18 Dec 2021 08:48:07 +0200 Message-ID: <83bl1ecst4.fsf@gnu.org> References: <875ys3sgfv.fsf.ref@yahoo.com> <875ys3sgfv.fsf@yahoo.com> <83k0gj4ezx.fsf@gnu.org> <87sfv7qvgs.fsf@yahoo.com> <83ee6r4dq5.fsf@gnu.org> <87ee6rqu6k.fsf@yahoo.com> <83a6hd3oba.fsf@gnu.org> <874k7ljd2o.fsf@yahoo.com> <87ilw1hsij.fsf@yahoo.com> <83bl1szf1o.fsf@gnu.org> <87mtl6xf75.fsf@yahoo.com> <87bl1ehi1q.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11974"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52295@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 18 07:53:08 2021 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 1myTac-0002wo-Vt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 07:53:07 +0100 Original-Received: from localhost ([::1]:53004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myTab-0002om-Kf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 01:53:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myTWh-0001Du-Dv for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 01:49:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myTWg-000414-Mc for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 01:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myTWg-0007gM-Hc for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 01:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Dec 2021 06:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52295 X-GNU-PR-Package: emacs Original-Received: via spool by 52295-submit@debbugs.gnu.org id=B52295.163981010929488 (code B ref 52295); Sat, 18 Dec 2021 06:49:02 +0000 Original-Received: (at 52295) by debbugs.gnu.org; 18 Dec 2021 06:48:29 +0000 Original-Received: from localhost ([127.0.0.1]:41142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myTW8-0007fY-Q9 for submit@debbugs.gnu.org; Sat, 18 Dec 2021 01:48:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myTW6-0007fK-Vo for 52295@debbugs.gnu.org; Sat, 18 Dec 2021 01:48:27 -0500 Original-Received: from [2001:470:142:3::e] (port=38034 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myTW1-0003yb-MM; Sat, 18 Dec 2021 01:48:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6IMRwcasSjxgg82OGKBSAS0fgwsxtvRL4DKE8BXdqyQ=; b=Ew6DP5u5NWLA RonTHDybuwktynuNONb4fY7LRIpVKwdE7u5yjSizqGtfLTaMytk6PV7Am3sL+mF5okm4ovvmpuHXY SvfogOIn6Wc10sNntyfJONSb0EtzvRASGsdU6201qo5YT6xNQGfYmOO6YqLlbHkT7OZ61fOd/A96+ PkLanQgHe9wTsTqnIGyB2Q57tA+L7velxqaKTN6jpkON+L9ZzhgchraBtz8+Ck/Ha1nrbuben/hVa bV1r0p8JlO8yE5hQ32W9EmD27B/DCRDf7oNmsDBG5BZ/K2280ru6hshOHRCEBgsY9AWktn66OqN0J +NR52hhVrcOIA+klQDbCWQ==; Original-Received: from [87.69.77.57] (port=4223 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myTVz-0003cZ-L4; Sat, 18 Dec 2021 01:48:20 -0500 In-Reply-To: <87bl1ehi1q.fsf@yahoo.com> (message from Po Lu on Sat, 18 Dec 2021 08:29:21 +0800) 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:222594 Archived-At: > From: Po Lu > Cc: 52295@debbugs.gnu.org > Date: Sat, 18 Dec 2021 08:29:21 +0800 > > Po Lu writes: > > > I will build a pdumper build with all the usual debug options and see > > what comes up. > > An unoptimized pdumper build with CFLAGS='-O0' > --enable-checking="yes,glyphs" crashes when a dump file is present, so > there is definitely more here than meets the eye, but I have no idea how > to get a working debugger onto that Windows 9x system. > > Is there some way to save a core dump (or backtrace) there for debugging > on a more recent MS-Windows machine? Is this a real crash (segfault), or an abort where we pop up the Emacs Abort dialog? Since you compiled with --enable-checking, I think it's the latter. If it's a real crash, you could use the Windows Event log to find out the address where it crashes, and then use GDB on another system to see where that address is in the sources (but the address printed by Windows needs to be "translated" into addresses that you submit to GDB by adding some constant, AFAIR). The other alternative is to insert many fprintf's to stderr into the sources, and use that to determine where it crashes. If it's an abort, then saying NO to the dialog will produce an emacs_backtrace.txt file with addresses of the backtrace, which you could take to another Windows system and use addr2line (from Binutils) to recover the file names, function names, and line numbers that correspond to the addresses; see the node "Crashing" in the Emacs manual for how to do that.