From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 05:49:57 2020 Received: (at submit) by debbugs.gnu.org; 26 Apr 2020 09:49:57 +0000 Received: from localhost ([127.0.0.1]:60873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSdvB-0005dr-3k for submit@debbugs.gnu.org; Sun, 26 Apr 2020 05:49:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:50378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSdor-0003PQ-VV for submit@debbugs.gnu.org; Sun, 26 Apr 2020 05:43:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42062) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSdor-0003yn-7w for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 05:43:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSdoq-0007jr-Gw for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 05:43:25 -0400 Received: from mail-ua1-x930.google.com ([2607:f8b0:4864:20::930]:34562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSdoq-0007jW-1V for bug-gnu-emacs@gnu.org; Sun, 26 Apr 2020 05:43:24 -0400 Received: by mail-ua1-x930.google.com with SMTP id i5so14213024uaq.1 for ; Sun, 26 Apr 2020 02:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=AvC+XxIsa21qxf/2Wth8cr/knBt26bc+deRZcGyGKpA=; b=Ed7pChDsN30Yq9eTJAksmwKds+fYiikwsZsiOD59cAIn9XsWLjZmpbG21BnGCBrsdB FkHt6x1mhPAaq0PFr5QsEUq7r/z64j/POD/F+Kct7FoPcOklT+uBhKOAgDwfHRXaXj1U PgngG1z6iVp3Y9JNBCn2yoEDWBMDLWZrvQSA0Jyj2njTg+jCOYG8pYw16sC6JKDFKFFi gZmpS4zlC5U8/CHp3fckxbCZcjdWvRnKSLFpLlF2QEllF1RjEPnWBxFFz8TQVSVklo7b pIlg26Y0RMbc3PrXSagXZILDbnTmd+1cadNt7zk2ztKrzdCxdRiGH+rTdIrNdh3xnYT6 dxZA== 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; bh=AvC+XxIsa21qxf/2Wth8cr/knBt26bc+deRZcGyGKpA=; b=Nu5cdcWtyw2xA4FjPqRBBwpvrpEm2LocuqDiS/Y5qAGkTYSWezQet2QmXaShFWb9AI cyAv2Pgg+IVYkqKa0KZ5Ev5honets77O+7UUfFI3JJAWz8CeTuZFZplPGdkzzHd5XM6q Su9EHz1gLuOAXlHIhqcYK4KMT7xb62mhyNEDZFItwHgrBDQlPpvVZ+RbDhWj5a0wBuQK ljWSQ5zZZ5WHKwgbhB/oYxEe7WsoVcdq+TrD4jkXn3KCyhfALEDh8vL9VYam0bapgW/1 mAtkWFOVs7hUnbs3r7HNIK91zh+mACGTc4zrrHDV9M8xuei5w0a5z4yhJ/ctxiJ7Sd0f 9IZA== X-Gm-Message-State: AGi0PuZWZlFRwlQ3C+GxaVg8YY/fKNZBsHBMwPk92HwSTmM1Yotwb1x5 6DfKn1BU1SH/oIe5Q+EkAQcslRrsY9XV+WWj/ncf5mV0DaM= X-Google-Smtp-Source: APiQypIdx5V4kRqpxBCyvoyI2kZeUa7jvMts/eUxMn+0P33h5OCu8K1s+UTHRXQ5kg2fIRHMMWkdI4Vft0v9+yXj5YU= X-Received: by 2002:a67:6e06:: with SMTP id j6mr13113346vsc.142.1587894202434; Sun, 26 Apr 2020 02:43:22 -0700 (PDT) MIME-Version: 1.0 From: Gerry Agbobada Date: Sun, 26 Apr 2020 11:43:11 +0200 Message-ID: Subject: 27.0.91; Infinite loop in composing ligatures in overlays To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::930; envelope-from=gagbobada@gmail.com; helo=mail-ua1-x930.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::930 X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 26 Apr 2020 05:49:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) First : an investigation around this bug has been led in emacs-devel, and it turns out commit fe903c5ab7354 on master branch fixes it. I am reporting the bug for other emacs 27 users who might find this while looking for a solution. It is currently impossible to have an overlay with ligatures when trying to have proper ligatures in `composition-function-table' : ;;; ligature-bug-light.el --- Reproduce an autocomposition bug -*- lexical-binding: t; -*- ;;; Commentary: ;; ;; Reproducer for the composition table bug ;; ;;;; Method ;; ;; Evaluate the file line by line ;; Expected : "=> testing overlays" is displayed at some point and disappear ;; Actual : evaluting the 'after-string overlay-put triggers infinite ;; looping, trying to "shape unibyte text", ;; which happens to be an empty string (from my earlier debugging) ;; ;;; Code: (defvar ligature-font-with-big-arrow "Fira Code 11" "A valid font name for `set-frame-font'. A font with a => ligature is necessary to trigger the bug.") (defvar bugged-overlay nil "Bugged overlay trying to compose an empty string.") ;;;; Setup ;; Requiring composite (require 'composite) ;; Shaping => into a ligature (set-char-table-range composition-function-table ?= '(["=>" 0 font-shape-gstring])) ;; Setting the font ;; => ;; At this line (set-frame-font ligature-font-with-big-arrow nil t) ;; Now you should see ligatures for => ;; => ;;;; Enabling the bug (setq bugged-overlay (make-overlay (point-at-bol 4) (point-at-eol 4) (current-buffer))) (overlay-put bugged-overlay 'category 'test-overlays) ;; C-x C-e at the end of this sexp will trigger infinite composition (overlay-put bugged-overlay 'after-string "=> testing overlays") (delete-overlay bugged-overlay) ;; cleanup in case you have a working version (provide 'ligature-bug-light) ;;; ligature-bug-light.el ends here In GNU Emacs 27.0.91 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2020-04-26 built on LPPS0066 Repository revision: 68f4a740a13ee6a1d98079ef655dd42924d24d41 Repository branch: emacs-27 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.4 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. ligature-bug-light.el has auto save data; consider M-x recover-this-file Configured using: 'configure --with-libzstd-from-internet --with-libb2-from-internet' Configured features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 44895 10652) (symbols 48 6006 1) (strings 32 15487 1594) (string-bytes 1 507021) (vectors 16 10026) (vector-slots 8 130535 10300) (floats 8 23 69) (intervals 56 294 0) (buffers 1000 13)) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 22 10:29:49 2020 Received: (at 40864) by debbugs.gnu.org; 22 Oct 2020 14:29:49 +0000 Received: from localhost ([127.0.0.1]:53330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVbbB-0003TL-B4 for submit@debbugs.gnu.org; Thu, 22 Oct 2020 10:29:49 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVbau-0003Sc-Uq for 40864@debbugs.gnu.org; Thu, 22 Oct 2020 10:29:48 -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:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=A0PyEr0tz++To4jf0SwbwVOUf6R0FjAe3Om6U8yD6RM=; b=eDxKRKjL1szWILycy9al2iyuKy 22byP6YQ8ECp7rD90J0EGRBceB6lAcZlvLJSToP7J4q+dWIBZwg4tRndz+q4K96KGAdIBBhJb8HWU Q7kP1Sxts+JXBCOUEwRL1Cza+WZah/ljd/uw9S1nnhgQAubJAURFLJBx9JRXSmIReArQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVbag-0004gH-Tp; Thu, 22 Oct 2020 16:29:27 +0200 From: Lars Ingebrigtsen To: Gerry Agbobada Subject: Re: bug#40864: 27.0.91; Infinite loop in composing ligatures in overlays References: X-Now-Playing: Cosey Fanni Tutti's _Tutti_: "Drone" Date: Thu, 22 Oct 2020 16:29:17 +0200 In-Reply-To: (Gerry Agbobada's message of "Sun, 26 Apr 2020 11:43:11 +0200") Message-ID: <87v9f2jpvm.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gerry Agbobada writes: > First : an investigation around this bug has been led in emacs-devel, > and it turns out commit fe903c5ab7354 on master branch fixes it. I am > reporting the bug for other emacs 27 users who might f [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40864 Cc: 40864@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerry Agbobada writes: > First : an investigation around this bug has been led in emacs-devel, > and it turns out commit fe903c5ab7354 on master branch fixes it. I am > reporting the bug for other emacs 27 users who might find this while > looking for a solution. OK; closing the bug report, then. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 22 10:29:41 2020 Received: (at control) by debbugs.gnu.org; 22 Oct 2020 14:29:41 +0000 Received: from localhost ([127.0.0.1]:53328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVbb3-0003Sz-5a for submit@debbugs.gnu.org; Thu, 22 Oct 2020 10:29:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVbb1-0003Sl-NY for control@debbugs.gnu.org; Thu, 22 Oct 2020 10:29:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type: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=aL2/He+GJTYS763EIN9kDsmXGddUnEib6Nyw/GC7noU=; b=qSYxSPvpWJ5Cg1L4RwxjSQbl0T hOet2FFX6OHlBgd8Dpxn0aUhwNhZUuxg+CAWU6lb5TaNCiRuX+o2gC7ISwpTzCof9dWMw81eUJDn2 mkmKqAqRhgF0VbqUOR5yU5mP9/pZyIncktJ8jY1u9mVnzLS/L3iwxVL6vyclwzBfpgkw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kVbau-0004gQ-14 for control@debbugs.gnu.org; Thu, 22 Oct 2020 16:29:34 +0200 Date: Thu, 22 Oct 2020 16:29:30 +0200 Message-Id: <87tuumjpv9.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #40864 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 40864 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 40864 28.1 quit From unknown Tue Aug 19 23:15:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Nov 2020 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator