From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#37786: 26.3; Emacs crashes when calling function to decode string Date: Fri, 18 Oct 2019 18:18:34 -0700 Message-ID: <80imol1qj9.fsf@felesatra.moe> References: <80sgnsdn9a.fsf@felesatra.moe> <87zhi0knm5.fsf@gnus.org> <80wod21xu4.fsf@felesatra.moe> Mime-Version: 1.0 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="87860"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 37786@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 19 03:19:14 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 1iLdOi-000Mgu-Vd for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Oct 2019 03:19:13 +0200 Original-Received: from localhost ([::1]:47584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLdOh-0003Wy-5x for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Oct 2019 21:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42502) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLdOZ-0003V6-MO for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 21:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLdOY-00025t-Ih for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 21:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42911) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLdOY-00025m-7X for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 21:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLdOY-0002G2-17 for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2019 21:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2019 01:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37786 X-GNU-PR-Package: emacs Original-Received: via spool by 37786-submit@debbugs.gnu.org id=B37786.15714479258655 (code B ref 37786); Sat, 19 Oct 2019 01:19:01 +0000 Original-Received: (at 37786) by debbugs.gnu.org; 19 Oct 2019 01:18:45 +0000 Original-Received: from localhost ([127.0.0.1]:51732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLdOG-0002FX-Nd for submit@debbugs.gnu.org; Fri, 18 Oct 2019 21:18:45 -0400 Original-Received: from mail-pg1-f174.google.com ([209.85.215.174]:39877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLdOE-0002FG-5y for 37786@debbugs.gnu.org; Fri, 18 Oct 2019 21:18:43 -0400 Original-Received: by mail-pg1-f174.google.com with SMTP id p12so4265603pgn.6 for <37786@debbugs.gnu.org>; Fri, 18 Oct 2019 18:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=xDNjL1tel/WG85L5WjLzROPqJpmZQKHlUKkuQRTv2b4=; b=g2MsHb3UfN30k2wC6pfr15dl5M0Ai7FThr0304RJXhIm8iZfXfQGMQVswgAXXr6MK9 899VmhLJWEXeLmpxThf0DXyh8cQ3Tzc/AyYIm1GUhuPo3X2HkabAs6PyOClV3UMntcrw DQQdClLhZazBYf6P3l9kvHi5EIBezhje5yXDb3VM9wyO3Ror+X7CsX+c8pFDgiS9DKu5 9M68cRI1p05WaEZgIbvPw9n0z6V9mYqt+xlT6RQRNyGCW+Irc3GDxoCgR06O/G4EncFc wcvqzvesYPrhoHPnzp33erM1X9l7lOXTsKLEj1zODn7OICEfqW10kPf/EkHHe4VXCrLt RXaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=xDNjL1tel/WG85L5WjLzROPqJpmZQKHlUKkuQRTv2b4=; b=t61AxJIdK3tauHudYscD3udyq0uRF66FPbyGDv3ubkle6syeNvS5kENw6fTJGuuCcp n2qWvFysVxxK3hZpRUs3ZFf1Heukox4qy/hCLZgZ4ZisZvtLeKpiNUjC3ghJiud9X8T/ wyw0mzN8i5O9ePTjxuMilfQtkQSNS6rin/76Ai9F/qkojf+44oyPK+sbtI12Vzm339Xv YTuQZ6ZIs1wIsPjtPO4/GXHoMx42PU4cFgDMX1qnNENAfjIDOjsArVtx766yeA9TYB6i dWafDXmqx3+aJbzrIrg7avTfKQNH1ROnBafjcVTpdjWN1zMi9jCfAorDXGjXaLAe2rha HzBA== X-Gm-Message-State: APjAAAXW3nf3+iOv8Y94SdWlGFMGmrzlsbL87GsLfgmJVy/25i3Jh2e/ fJ8U5O0U1sHUCSiHyl6/f9dXew== X-Google-Smtp-Source: APXvYqycii9xnGXNE3kXgFdjCbWUKlzCEhSzw0jtKK+l97H/Ll+LA/G0WWvIcNTnxbOBrE8BUvEm6A== X-Received: by 2002:a63:4e09:: with SMTP id c9mr12487643pgb.98.1571447916202; Fri, 18 Oct 2019 18:18:36 -0700 (PDT) Original-Received: from localhost ([2600:1700:7270:7d1f:fa59:71ff:fe00:10cc]) by smtp.gmail.com with ESMTPSA id z18sm7720989pgv.90.2019.10.18.18.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 18:18:35 -0700 (PDT) In-Reply-To: (Robert Pluim's message of "Fri, 18 Oct 2019 11:49:17 +0200") 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:169690 Archived-At: Robert Pluim writes: >>>>>> On Thu, 17 Oct 2019 21:28:35 -0700, Allen Li said: > > Allen> This is the backtrace using the simpler repro from Robert. > > Allen> #0 0x0000000000565ae9 in terminate_due_to_signal (sig=3D6, ba= cktrace_limit=3D40) at emacs.c:363 > Allen> #1 0x000000000058ca83 in emacs_abort () at sysdep.c:2380 > Allen> #2 0x000000000045c17e in redisplay_internal () at xdisp.c:137= 97 > Allen> #3 0x000000000045e0b7 in redisplay_preserve_echo_area (from_w= here=3D13) at xdisp.c:14602 > Allen> #4 0x0000000000667fbe in Fdelete_process (process=3DXIL(0x6aa= 3395)) at process.c:1054 > Allen> #5 0x000000000067716b in kill_buffer_processes (buffer=3DXIL(= 0)) at process.c:7819 > Allen> #6 0x00000000005683d0 in shut_down_emacs (sig=3D0, stuff=3DXI= L(0)) at emacs.c:2096 > Allen> #7 0x000000000052d854 in x_connection_closed (dpy=3D0x2b77f50, > Allen> error_message=3D0x7fffffff6fc0 "X protocol error: BadLength (p= oly > Allen> request too large or internal Xlib length error) on protocol r= equest > Allen> 139", ioerror=3Dfalse) at xterm.c:9799 > > I thought we=CA=BCd fixed these kinds of bugs, but obviously not. Can you > try your test in combination with the following from etc/DEBUG, it > should tell us which font is responsible: > > For X protocol errors related to displaying unusual characters or to > font-related customizations, try invoking Emacs like this: > > XFT_DEBUG=3D16 emacs -xrm "emacs.synchronous: true" > > This should produce information from the libXft library which could > give useful hints regarding font-related problems in that library. That gives me the following output: Loading file /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Regular.o= tf/0 FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-It.otf/0 matc= hes new Loading file /usr/share/fonts/adobe-source-code-pro/SourceCodePro-It.otf/0 FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Light.otf/0 m= atches new Loading file /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Light.otf= /0 FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Bold.otf/0 ma= tches new Loading file /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Bold.otf/0 FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Regular.otf/0= matches existing (2) FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Light.otf/0 m= atches existing (2) FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Bold.otf/0 ma= tches existing (2) FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Regular.otf/0= matches existing (3) FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Light.otf/0 m= atches existing (3) FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Bold.otf/0 ma= tches existing (3) FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Regular.otf/0= matches existing (4) FontFile /usr/share/fonts/adobe-source-code-pro/SourceCodePro-Regular.otf/0= matches existing (4) FontFile /usr/share/fonts/noto/NotoColorEmoji.ttf/0 matches new Loading file /usr/share/fonts/noto/NotoColorEmoji.ttf/0 and then Emacs hangs at this point. > > Regards > > Robert