From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yegor Timoshenko Newsgroups: gmane.emacs.bugs Subject: bug#30045: Emoji causing Emacs (GTK+3 backend) to crash Date: Tue, 9 Jan 2018 17:37:33 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1515519384 3336 195.159.176.226 (9 Jan 2018 17:36:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2018 17:36:24 +0000 (UTC) To: 30045@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 09 18:36:19 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYxoq-0008TZ-BB for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 18:36:12 +0100 Original-Received: from localhost ([::1]:36559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYxqo-0002BD-6b for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jan 2018 12:38:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYxqe-000286-C5 for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 12:38:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYxqc-0001d8-TT for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 12:38:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYxqc-0001cu-P3 for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 12:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eYxqc-0001m4-Gj for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 12:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yegor Timoshenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2018 17:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30045 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15155194706799 (code B ref -1); Tue, 09 Jan 2018 17:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jan 2018 17:37:50 +0000 Original-Received: from localhost ([127.0.0.1]:49834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYxqP-0001lb-I5 for submit@debbugs.gnu.org; Tue, 09 Jan 2018 12:37:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYxqN-0001lN-CW for submit@debbugs.gnu.org; Tue, 09 Jan 2018 12:37:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYxqG-0001MW-CC for submit@debbugs.gnu.org; Tue, 09 Jan 2018 12:37:42 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eYxqG-0001MK-90 for submit@debbugs.gnu.org; Tue, 09 Jan 2018 12:37:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYxqE-0001jW-5G for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 12:37:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYxqC-0001Hy-FW for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 12:37:38 -0500 Original-Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:43413) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYxqC-0001HE-A1 for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2018 12:37:36 -0500 Original-Received: by mail-vk0-x22b.google.com with SMTP id k132so9899440vke.10 for ; Tue, 09 Jan 2018 09:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=+qiWPdTDrHC8p8wMF3cwQXhGL6UJSNVYq89Qj41wt64=; b=KEbTh6wWWUQgD6Fb8fgsjaEB6fw6OcL7BMRzyqEiDlxy7HqA+QuDKFN80oD/wcHvSA oXMssvv2/nx9ntqIc0UhdoUcUcYrvl8Z4gIXC8kVdugSSCXLgH4J6v01lMi87Fnxt+89 HvixOkvqoUGkzmSOW00mT+y+DOkI5xYL4LvxpR5S8jzUnHXqcmARVb9a/CB1Ehf+CCLC eCiadJ470U1+yLxUpznmGA0/3RfJKgGkKGKlhOcEVCe+bWtT6cyLJY9pT/+kl373gCG6 MasMxKwa6IUXIRlYjKAjCoZc5vZ+YyNKRn94Y/uzESEiUvqeZ1F3GfiyB+cpupbHbkyJ dFIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=+qiWPdTDrHC8p8wMF3cwQXhGL6UJSNVYq89Qj41wt64=; b=Pfhass4cMMy0UehfsaGpknF1KZh9B6MAo7OrsNOB5s3f8zjNyAV3eHIVY/Skrs9LT0 b0FAR5G9qrrqAcIym15yUDIueyWhvzPurZzoJaVYrOX5lY2p1GmY3MglbIBhG0xCVHlq r1qoE35dooAaAebtWh4Wxg+j4/QAMuoSjqHhC/7iUcQBLPA5Jbi161ihpx1T/b6LaKUK DW76ZELFxfGDN/ZqVrLgtHuTC+jssfyIqQUoNd6ExVEISgpQnmgKexIuRh73QBJ2eGvk lyRT2Wg83QG1M7ivUjdhVEwFuNWV7a6jEo2+j1ZhSKyN3PqYBPPYt4mB54e2c3XxIViN Ry4w== X-Gm-Message-State: AKGB3mLB0GwBqWfkNfXyH/Rwyf7/7eBo4C6hj5JsG0U6/2+m8YsqCZDj HLxXfdapz6Kt+MiWGcu7+xHhmAaI25XMf2ll+sPPvw== X-Google-Smtp-Source: ACJfBotlmZu88tqnojiLs0fsejDUCcRts6Zh2fcmIO9cCgjcrawQHy/hU+d3SSHsbGFlpmW92WKq22OHW89jo0hQOg4= X-Received: by 10.31.190.131 with SMTP id o125mr13893755vkf.85.1515519454499; Tue, 09 Jan 2018 09:37:34 -0800 (PST) Original-Received: by 10.103.49.18 with HTTP; Tue, 9 Jan 2018 09:37:33 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:141934 Archived-At: Here is the Unicode symbol that causes Emacs to crash: =E2=9C=85 Reproduced on the following Emacs/GTK versions: GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2018-01-05 GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2017-12-20 Error log: X protocol error: BadLength (poly request too large or internal Xlib length error) on protocol request 139 When compiled with GTK, Emacs cannot recover from X disconnects. This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=3D85715 For details, see etc/PROBLEMS. Fatal error 6: Aborted (-emacs-wrapped:24344): GLib-WARNING **: g_main_context_prepare() called recursively from within a source's check() or prepare() member. (-emacs-wrapped:24344): GLib-WARNING **: g_main_context_check() called recursively from within a source's check() or prepare() member. Backtrace: /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x509e5c] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4efa6b] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x509a63] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4c359b] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4c3896] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4c391b] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(_X= Error+0x11d)[0x7effd711a13d] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(+0= x42047)[0x7effd7117047] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(+0= x42105)[0x7effd7117105] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(_X= EventsQueued+0x55)[0x7effd7117a05] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(XF= lush+0x1a)[0x7effd70f953a] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(+0= x61aae)[0x7effd7136aae] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(XD= estroyIC+0x12)[0x7effd7124a62] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4d41ac] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4cbeab] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4cc2fb] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4253a7] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4c360b] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4c3896] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4c391b] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(_X= Error+0x11d)[0x7effd711a13d] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(+0= x42047)[0x7effd7117047] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(+0= x42105)[0x7effd7117105] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(_X= EventsQueued+0x55)[0x7effd7117a05] /nix/store/x4cqrnzcvcc1lqvz41cp0dxqbnvsmhfk-libX11-1.6.5/lib/libX11.so.6(XP= ending+0x57)[0x7effd7109697] /nix/store/v2n1kfxk63p6ypwv3yi9yjp676hcsdyj-gtk+3-3.22.26/lib/libgdk-3.so.0= (+0x683ae)[0x7effd8f7f3ae] /nix/store/ciz98qjymi65iaq535nylgi36mx9m6jl-glib-2.54.2/lib/libglib-2.0.so.= 0(g_main_context_prepare+0x15d)[0x7effd78846fd] /nix/store/ciz98qjymi65iaq535nylgi36mx9m6jl-glib-2.54.2/lib/libglib-2.0.so.= 0(+0x4a15b)[0x7effd788515b] /nix/store/ciz98qjymi65iaq535nylgi36mx9m6jl-glib-2.54.2/lib/libglib-2.0.so.= 0(g_main_context_pending+0x27)[0x7effd7885307] /nix/store/v2n1kfxk63p6ypwv3yi9yjp676hcsdyj-gtk+3-3.22.26/lib/libgtk-3.so.0= (gtk_events_pending+0xd)[0x7effd943336d] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4c374f] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4f8c09] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x4f8ff5] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x5cbb87] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x57cbe4] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x5cdd04] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x5cdfab] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x5ceada] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x441507] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x44c848] /nix/store/4znykvnf1xyflhq9z7albfb910xpl4i4-emacs-25.3/bin/.emacs-wrapped[0= x44f538] ... aborted All software that Emacs 25.3.1 depends on, with versions: glibc-2.26-75 util-linux-2.31 libffi-3.2.1 lz4-131 xz-5.2.3 libgpg-error-1.27 libgcrypt-1.8.1 libcap-2.25-lib systemd-234-lib bash-4.4-p12 libICE-1.0.9 libSM-1.2.2 libXau-1.0.8 libXdmcp-1.1.2 libxcb-1.12 libX11-1.6.5 dbus-1.10.24-lib gcc-6.4.0-lib zlib-1.2.11 pcre-8.41 glib-2.54.2 expat-2.2.5 libdaemon-0.14 avahi-0.7 gmp-6.1.2 ncurses-6.0-20171125 gobject-introspection-1.54.1 libXfixes-5.0.2 libXrender-0.9.10 libXcursor-1.1.15 nettle-3.4 openssl-1.0.2n libevent-2.1.8 unbound-1.6.7-lib libtasn1-4.12 dns-root-data-2017-10-24 libunistring-0.9.8 p11-kit-0.23.7 gnutls-3.6.1 libXpm-3.5.12 gsettings-desktop-schemas-3.24.1 dejavu-fonts-minimal-2.37 bzip2-1.0.6.0.1 libpng-apng-1.6.34 freetype-2.7.1 fontconfig-2.12.1-lib atk-2.26.1 libXft-2.3.2 libXext-1.3.3 libXinerama-1.1.3 libXrandr-1.5.1 libjpeg-turbo-1.5.3 libtiff-4.0.8 libxml2-2.9.7 wayland-1.14.0 graphite2-1.3.6 libpciaccess-0.14 libdrm-2.4.88 libXxf86vm-1.1.4 libXdamage-1.1.4 libxshmfence-1.2 mesa-noglu-17.2.7 pixman-0.34.0 harfbuzz-1.7.1 cairo-1.14.10 pango-1.40.14 dconf-0.26.1-lib libcroco-0.6.12 jasper-2.0.14 gdk-pixbuf-2.36.7 librsvg-2.40.19 libungif-4.1.4 gettext-0.19.8 epoxy-1.3.1 recordproto-1.14.2 libXi-1.7.9 libXtst-1.2.3 at-spi2-core-2.26.2 at-spi2-atk-2.26.1 libXcomposite-0.4.4 xkeyboard-config-2.22 libxkbcommon-0.7.2 cups-2.2.6-lib gtk+3-3.22.26 libselinux-2.4 emacs-25.3 --- I also have Noto Emoji font installed, not sure if that changes the issue. Perhaps this is only ever reproducible when there is some font containing the glyph. I'm not sure if I should file this against GNOME bug tracker, but the fact that there is a symbol that causes Emacs to crash might be used as a denial of service attack in some contexts (e.g. sending someone an email, knowing that recipient uses Gnus), and knowing that seems to be important. Recompiling Emacs without GTK+3 fixes the issue: GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars= ) of 2018-01-09