From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#29170: 26.0.90; Emacs freezes when capturing an org-template Date: Thu, 08 Oct 2020 23:43:28 +0200 Message-ID: <87tuv4mm0v.fsf@omecha.info> References: <87fu9rwksm.fsf@omecha.info> <87lfgpxl4m.fsf@gnus.org> <83sgaxf6eb.fsf@gnu.org> <87blhkwvhm.fsf@gnus.org> <83sgawekcj.fsf@gnu.org> <87zh54fr72.fsf@omecha.info> <87wo07tcz2.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5206"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (berkeley-unix) Cc: daimrod@omecha.info, 29170@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 08 23:44:15 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQdhu-0001HP-QZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 23:44:14 +0200 Original-Received: from localhost ([::1]:33886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQdht-00016H-MX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Oct 2020 17:44:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQdhi-000162-UJ for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2020 17:44:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQdhi-0007Tm-Kv for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2020 17:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQdhi-0003Pw-JB for bug-gnu-emacs@gnu.org; Thu, 08 Oct 2020 17:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Oct 2020 21:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29170 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 29170-submit@debbugs.gnu.org id=B29170.160219342013101 (code B ref 29170); Thu, 08 Oct 2020 21:44:02 +0000 Original-Received: (at 29170) by debbugs.gnu.org; 8 Oct 2020 21:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:33342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQdhM-0003PE-5B for submit@debbugs.gnu.org; Thu, 08 Oct 2020 17:43:40 -0400 Original-Received: from a.omecha.info ([89.234.176.136]:38792 helo=omecha.info) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQdhJ-0003Oz-64 for 29170@debbugs.gnu.org; Thu, 08 Oct 2020 17:43:39 -0400 Original-Received: from puffy.omecha.info (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by omecha.info (Postfix) with ESMTPSA id 34106E3; Thu, 8 Oct 2020 23:43:30 +0200 (CEST) In-Reply-To: <87wo07tcz2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Oct 2020 19:51:13 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190120 Archived-At: Lars Ingebrigtsen writes: > daimrod@omecha.info writes: > >>> If this is an OpenBSD-only problem, maybe we should install that >>> change #ifdef'ed by OpenBSD? > > Yes, but as noted by others in the thread, the patch leads to other > issues on OpenBSD, too, so it's not a complete solution. > >> I'll have to test it, but I've been told that the issue doesn't occur >> when the "junk" is disabled in the memory allocator (j =3D 0). >> >> See MALLOC OPTIONS in malloc(3) https://man.openbsd.org/malloc >> >> j =E2=80=9CLess junking=E2=80=9D. Decrease the junk level by one = if it is larger >> than 0. Junking writes some junk bytes into the area allocated. >> Junk is bytes of 0xdb when allocating; freed chunks are filled >> with 0xdf. By default the junk level is 1: after free, small >> chunks are completely junked; for pages the first part is junked. >> After a delay, the filling pattern is validated and the process >> is aborted if the pattern was modified. For junk level 2, >> junking is done on allocation as well and without size >> restrictions. If the junk level is zero, no junking is >> performed. > > Huh. How odd that this would have an affect on this infloop? So, I tested it on emacs-27.1 with junk disabled and it still freezes. $ MALLOC_OPTIONS=3Djj emacs -q (let ((value 'SECONDARY) (x-selection-timeout 2000)) ;;; from org-get-x-clipboard in lisp/org-compat.el (gui-get-selection value 'UTF8_STRING) (gui-get-selection value 'COMPOUND_TEXT) (gui-get-selection value 'STRING) (gui-get-selection value 'TEXT)) --=20 daimrod PGP : AF26 E9C2 A1C8 8D32 A868 4386 1373 5477 2B65 1894