From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43409: 28.0.50; Segfault on non-UTF-8 path Date: Tue, 15 Sep 2020 02:16:36 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31377"; mail-complaints-to="usenet@ciao.gmane.io" To: 43409@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 15 02:17:11 2020 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 1kHyek-00081j-9b for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 02:17:10 +0200 Original-Received: from localhost ([::1]:40724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHyei-0003XK-SP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 20:17:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHyec-0003Vn-KM for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 20:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHyec-0006Zi-AY for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 20:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHyec-0006Mo-5C for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 20:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Sep 2020 00:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43409 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160012900724448 (code B ref -1); Tue, 15 Sep 2020 00:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Sep 2020 00:16:47 +0000 Original-Received: from localhost ([127.0.0.1]:56679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHyeN-0006MG-3Y for submit@debbugs.gnu.org; Mon, 14 Sep 2020 20:16:47 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHyeK-0006M8-KR for submit@debbugs.gnu.org; Mon, 14 Sep 2020 20:16:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHyeK-0003VV-Cb for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 20:16:44 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:55556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHyeI-0006ZN-KT for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 20:16:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender: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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9qWJTZLlN+MLcI/cJS0lS+xwdaqs1ejPo67Ec4Vm2oc=; b=JuDSYadZ8+Tnx4lk7k2EMHUfM2 8FK8bfpgNqy5QXrVNOesemJxQRhSkdSOL2V8/rHcK0jZz6y5laGkrr3XkRg265ULLzFii7jl8ZIXl cVGGJ2IfkDsxzAiPRrfXHsDEIfViC+6vAHQQRfeXFDBtiq48yf6FTr+XnMkLtuRH0bOk=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHyeD-0000TY-Fr for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 02:16:40 +0200 Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:188095 Archived-At: --=-=-= Content-Type: text/plain On Debian bullseye, with a file looking like this in a dired buffer: --=-=-= Content-Type: image/png Content-Disposition: inline Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAtIAAAAcBAMAAAC+OUV0AAAABGdBTUEAALGPC/xhBQAAACBjSFJN AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUaGhoAAAD///+HzvoA //+p4fWkAAAAAWJLR0QCZgt8ZAAAABBjYU52AAAGQAAABLAAAAAFAAABOkAB+tUAAAKfSURBVGje 7ZmLccMgDIbTESBZwP8GOSbInfefqSAeEhgc8qhTWtSEIgsE+YwxiNPpSyXRi4ZNbA5WnLp4NVo3 KgukG1KjK/rIentWympQF6JVNg6FvF3RDapKio4VhdW45HwNif2adN1Y1V00TqEihoqdTaprfA0T ynt7yhtfiLwYcrWVkyRtf0UAQD1kHpHlRhVV3b3hnAZ0cAUs3VZBOt2RWI8SW1gj+wWA7IEgTU7Z saNhrPjEpldBWhliZ68FK1mukbQzUI0zVSO1Qpq8mHR/9kiPIDiwLdNdkp+RlkzSe5gn6UPk3Jhw J+n3D2rzUOHrXyM9qkzSk/Qk3RLeQGDZK7ZrbToVC+PCmu+JsnLZSp0bXtcsGY40li2efXg9ThOn pVKPmuR2XU6W85uvZLV/l5vNXG72HyfDkdb7pHWntbweLagsOqhJbpdyshzqpFf3scnN54YjjV6W T5OuN8ntoti/65K0p5xIq0FJ32H53OzB3NB0tWkXgnyNtEqk1WdJI4wFCLWw9pAOwaDFx5DKuaVp bZH23ilmpHGXtEYMkmkRf1LKTx8uXS9ryFXftT9NOsTZaEpzCasuV1ObpGk8satua4s08fDw8jDp hnQMBlJcTxRGJKsc5JVehi5XfdceMqZF2LjysLd7VRlb0dUD1iZpFcO4ciaukOZBHJ8DSVrFkRym aJvDQRv8Fmm9vEZap2AxzQ/d1jbp9Cztk0b2gNZJ+3k6vBRHJ50dG6DfWvoUFigU9CukpafamI7D mZNJOieNTtLIe4TfTzq97l4m/eA5YjF9ZHvE8hyxSVqHQ0T5UARPa7lH/PAbkZvvJf2uc8TW7auc IxZLIKEm0mIJl0iXcY9PrPKGEAzW30l6kp6kJ+n/RnpUmaSPkm/4pOEvIPaO4wAAAABJRU5ErkJg gg== --=-=-= Content-Type: text/plain Hitting RET on that kills Emacs. Running under gdb, I get this backtrace: #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at emacs.c:378 #1 0x00005555555984fe in emacs_abort () at sysdep.c:2280 #2 0x0000555555596a9a in multibyte_chars_in_text (ptr=, ptr@entry=0x5555565f0870 "f\363o", nbytes=nbytes@entry=3) at character.c:447 #3 0x00005555555d412b in display_mode_element (it=, depth=, field_width=, precision=, elt=, props=, risky=) at xdisp.c:25644 #4 0x00005555555d54b0 in display_mode_element (it=0x7fffffffb840, depth=2, field_width=-1, precision=-1, elt=, props=XIL(0), risky=) at lisp.h:1423 #5 0x00005555555d63c2 in gui_consider_frame_title (frame=XIL(0x555555f64c45)) at lisp.h:1007 #6 0x00005555555e15d9 in prepare_menu_bars () at xdisp.c:12666 #7 redisplay_internal () at xdisp.c:15514 #8 0x000055555568baeb in read_char (commandflag=1, map=XIL(0x5555563fb2b3), prev_event=XIL(0), used_mouse_menu=0x7fffffffe52b, end_time=0x0) at keyboard.c:2493 #9 0x000055555568e9c4 in read_key_sequence (keybuf=, prompt=XIL(0), dont_downcase_last=, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=) at keyboard.c:9547 #10 0x000055555569034c in command_loop_1 () at lisp.h:1007 #11 0x00005555556fbf17 in internal_condition_case (bfun=bfun@entry=0x555555690170 , handlers=handlers@entry=XIL(0x90), hfun=hfun@entry=0x555555686ad0 ) at eval.c:1356 #12 0x0000555555681504 in command_loop_2 (ignore=ignore@entry=XIL(0)) at lisp.h:1007 #13 0x00005555556fbe71 in internal_catch (tag=tag@entry=XIL(0xd200), func=func@entry=0x5555556814e0 , arg=arg@entry=XIL(0)) at eval.c:1117 #14 0x00005555556814ab in command_loop () at lisp.h:1007 #15 0x00005555556866e6 in recursive_edit_1 () at keyboard.c:714 #16 0x0000555555686a12 in Frecursive_edit () at keyboard.c:786 #17 0x000055555559fb54 in main (argc=2, argv=) at emacs.c:2047 This is with [larsi@stories ~]$ echo $LANG en_US.UTF-8 In GNU Emacs 28.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.16.0) of 2020-09-14 built on stories Repository revision: e408f2fab24ea81f74d9b84dc83ee67d562846dc Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Debian GNU/Linux bullseye/sid -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: https://lars.ingebrigtsen.no --=-=-=--