From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#36507: 27.0.50; Crash on evaluating invalid UTF-8 byte sequence on MacOS Date: Sat, 06 Jul 2019 14:26:27 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="229635"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 36507-done@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 07:27:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hjdEH-000xUr-1N for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 07:27:21 +0200 Original-Received: from localhost ([::1]:57846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjdEG-0000iU-2d for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2019 01:27:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36045) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjdE4-0000hk-Ir for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 01:27:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjdE1-0007IQ-Jk for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 01:27:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hjdDy-0007D8-JD for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 01:27:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hjdDy-0007QD-CO for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2019 01:27:02 -0400 Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jul 2019 05:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 36507 X-GNU-PR-Package: emacs Mail-Followup-To: 36507@debbugs.gnu.org, mituharu@math.s.chiba-u.ac.jp, stefan@marxist.se Original-Received: via spool by 36507-done@debbugs.gnu.org id=D36507.156239079128477 (code D ref 36507); Sat, 06 Jul 2019 05:27:02 +0000 Original-Received: (at 36507-done) by debbugs.gnu.org; 6 Jul 2019 05:26:31 +0000 Original-Received: from localhost ([127.0.0.1]:54126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjdDS-0007PF-Rc for submit@debbugs.gnu.org; Sat, 06 Jul 2019 01:26:31 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:59029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hjdDQ-0007P3-70 for 36507-done@debbugs.gnu.org; Sat, 06 Jul 2019 01:26:29 -0400 Original-Received: from mathent.math.s.chiba-u.ac.jp (mathent [192.168.32.5]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id E0121F08E3; Sat, 6 Jul 2019 14:26:27 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162181 Archived-At: On Fri, 05 Jul 2019 20:36:34 +0900, Stefan Kangas wrote: >=20 > YAMAMOTO Mitsuharu writes: > > > > (decode-coding-string "\xE3\x32\x9A\x36" 'chinese-gb18030) > > > > > > I think the issue as such is beyond me, but I can reproduce this ever= y time. > > > Please let me know if you need help testing or more information. > > > > > > Before crash, I get this output: > > > Thread 1 received signal SIGSEGV, Segmentation fault. > > > 0x00007fff8ddbd326 in CFCharacterSetIsLongCharacterMember () from > > > /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFo= undation > > > > Please try the patch below. >=20 > The patch works; I no longer get the crash. The return value is now: >=20 > "=EF=BB=BF=EF=BB=BF#(" " 0 1 (charset gb18030-4-byte-ext-2))" Thanks. I pushed the patch to master and the emacs-26 branch as 0e15bd11dc0 and f0db687a285, respectively. (I forgot to add the bug ID to commit log for the former.) Closing the bug. > Note that the " " is a visually wide white space character that I > can't copy to other programs for some reason. It is here replaced > with a space. Not sure if this is expected or not. On the Mac port, from which macfont.m originally came, the character is displayed with boxed hexadecimal. So, this would be another issue specific to the NS port. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp