From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#36312: 27.0.50; (message) in display spec condition causes emacs_abort() Date: Thu, 20 Jun 2019 16:06:25 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="180695"; mail-complaints-to="usenet@blaine.gmane.org" To: 36312@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 20 18:26:28 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 1hdztM-000kue-KJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Jun 2019 18:26:28 +0200 Original-Received: from localhost ([::1]:50210 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdztL-00015D-C5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Jun 2019 12:26:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37295) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdzmH-0003Ox-Gx for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2019 12:19:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdzmF-0007RW-Gy for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2019 12:19:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35637) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdzmA-0007Mu-QQ for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2019 12:19:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hdzmA-0003xY-Kz for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2019 12:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jun 2019 16:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36312 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.156104749615147 (code B ref -1); Thu, 20 Jun 2019 16:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jun 2019 16:18:16 +0000 Original-Received: from localhost ([127.0.0.1]:49181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdzlQ-0003wF-9p for submit@debbugs.gnu.org; Thu, 20 Jun 2019 12:18:16 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hdzlP-0003w8-8S for submit@debbugs.gnu.org; Thu, 20 Jun 2019 12:18:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36754) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdzlL-0002bx-RO for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2019 12:18:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdzaZ-0002Aj-HK for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2019 12:07:04 -0400 Original-Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:38837) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdzaZ-00028B-C6 for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2019 12:07:03 -0400 Original-Received: by mail-ot1-x344.google.com with SMTP id d17so3262272oth.5 for ; Thu, 20 Jun 2019 09:07:03 -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=RKB6iwsNQTaiwoLQcxEqr5QgA5TBoEmGsxQ2r6xOSjA=; b=OfFVDzB9kJj2BBOyUBNHxfCbX25QleSh2/cl+MUX0GdGCNbrZT2hERU53o54DgKKSe RSTwFLTmi0kXYsGpaYQmXRf4alXhRYBqEsa7KSP/DttogKNkrpzXj3QEpysApR60SC54 bXWEIx+kwd37fXi3jGC/T9DgfOOeNqy7VpN9d3/NO/eEqiMqiJ/RrCkCkt/4NK+Yo3Yv 9wI1rBankOtoB0NIqjgo0EEHPyLkRO6O+BYleC4pCOXwavnXjfppjAS3Wvpf0+DhEAF+ xTSwJz3aC7iuqdp+DWxQjwnSJo1oLDe5xLi4w5+9INQvDuTE/ySQJg7qLkvEm40W/c/g BvrA== 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=RKB6iwsNQTaiwoLQcxEqr5QgA5TBoEmGsxQ2r6xOSjA=; b=iGBRnMEv6WJQfakvliXRcsLhCK1XSUeHWDDoW2rAzCJyMn7jqTrgdfel5RNR9nCNC7 QNVmsApRnyRNP0gx5K9WOESG7rUAijaDAvAyK/+ag86v0o94EK3D/i95Jb1PL2zsp+Pj TakJRebn60Md8szgIQocD7jXDGSX6O+A0pxmvn38bSaTwPe/TsLM/s3X+Km6D8v9agxi u7DPu3Y2hEOjxxXvp0ondlZzJgd2iKxjlfAHCnkvJOChoqrDd7VUxcq80OKuUDJCYVVG k/2WcZm3rLKp+0GPo1oz+siJuAdh/EZ7z95EkDM3lsFYznc2M7TbSFgQa+Zoyb6Mt1x+ ptZw== X-Gm-Message-State: APjAAAXPWtixlQej+wmom8U35OOqtgBvvVbVSo37m87RcDdUi1UKv8m8 rWTHNBVRPR/uUam9eaBINgHLlJLOtGXnbBqMFD9urrKUziw= X-Google-Smtp-Source: APXvYqyqVcp1W7a0GejOVYac0i3RWupaqgg6XEkz7oKS8GSn/3wsuOFc+vMubSvSGhiOwO5U0y+WUr6sct15gojOaio= X-Received: by 2002:a9d:3c5:: with SMTP id f63mr27340223otf.210.1561046822147; Thu, 20 Jun 2019 09:07:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:160906 Archived-At: In emacs -Q, evaluate (let ((o (make-overlay (point) (point)))) (overlay-put o 'after-string (propertize " " 'display '(when (message "a") . "b")))) This causes a SIGABRT in the bidi stack code. Backtrace: #0 0x00007ffff4b4d5cb in raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 0x000055555559573b in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at emacs.c:406 #2 0x0000555555595b37 in emacs_abort () at sysdep.c:2453 #3 0x00005555555942e3 in bidi_pop_it (bidi_it=bidi_it@entry=0x7fffffff99b0) at bidi.c:947 #4 0x00005555555b2174 in pop_it (it=0x7fffffff8fc0) at xdisp.c:6356 #5 0x00005555555c3594 in next_overlay_string (it=it@entry=0x7fffffff8fc0) at xdisp.c:5754 #6 0x00005555555c8edc in set_iterator_to_next (it=0x7fffffff8fc0, reseat_p=) at xdisp.c:7871 #7 0x00005555555cf9ba in display_line (it=0x7fffffff8fc0, cursor_vpos=) at xdisp.c:22296 #8 0x00005555555d491b in try_window (window=window@entry=0x555555f99fa5, pos=..., flags=flags@entry=1) at xdisp.c:17863 #9 0x00005555555e80df in redisplay_window (window=0x555555f99fa5, just_this_one_p=) at xdisp.c:17311 #10 0x00005555555eae1e in redisplay_window_1 (window=window@entry=0x555555f99fa5) at xdisp.c:15044 #11 0x00005555556eb3ca in internal_condition_case_1 (bfun=bfun@entry=0x5555555eadf0 , arg=0x555555f99fa5, handlers=, hfun=hfun@entry=0x5555555afd00 ) at eval.c:1376 #12 0x00005555555d834f in redisplay_internal () at xdisp.c:14614 #13 0x000055555567b5d7 in read_char (commandflag=1, map=0x555556856f83, prev_event=0x0, used_mouse_menu=0x7fffffffe4db, end_time=0x0) at keyboard.c:2474 #14 0x000055555567df1e in read_key_sequence (keybuf=0x7fffffffe5e0, prompt=0x0, dont_downcase_last=, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=) at keyboard.c:9111 #15 0x000055555567f6fc in command_loop_1 () at lisp.h:1045 #16 0x00005555556eb332 in internal_condition_case (bfun=bfun@entry=0x55555567f520 , handlers=handlers@entry=0x55b0, hfun=hfun@entry=0x555555676d20 ) at eval.c:1352 #17 0x0000555555671d14 in command_loop_2 (ignore=ignore@entry=0x0) at lisp.h:1045 #18 0x00005555556eb2b1 in internal_catch (tag=tag@entry=0xcc30, func=func@entry=0x555555671cf0 , arg=arg@entry=0x0) at eval.c:1113 #19 0x0000555555671cbb in command_loop () at lisp.h:1045 #20 0x0000555555676926 in recursive_edit_1 () at keyboard.c:714 #21 0x0000555555676c45 in Frecursive_edit () at keyboard.c:786 #22 0x000055555559b227 in main (argc=2, argv=0x7fffffffe978) at emacs.c:1962 It's reproducible here, so I can provide more debugging information if required. I'm aware that doing complicated stuff in a display spec condition is a bad idea, but I think debug messages are such an important special case that we ought, at least, not to abort completely for those. Setting redisplay--bidi-inhibit to t works around the problem.