From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#29170: 26.0.90; Emacs freezes when capturing an org-template Date: Sat, 10 Oct 2020 21:57:31 +0200 Message-ID: <87v9fh3lck.fsf@gnus.org> 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> <87tuv4mm0v.fsf@omecha.info> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2826"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 29170@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 10 21:58:11 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 1kRL0M-0000cn-Ov for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 21:58:10 +0200 Original-Received: from localhost ([::1]:55574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRL0L-0000Y9-Jb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 15:58:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRL0E-0000Wk-Ml for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 15:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRL0E-0002JB-CF for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 15:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRL0E-0007Qe-BJ for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 15:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Oct 2020 19:58: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.160235986728535 (code B ref 29170); Sat, 10 Oct 2020 19:58:02 +0000 Original-Received: (at 29170) by debbugs.gnu.org; 10 Oct 2020 19:57:47 +0000 Original-Received: from localhost ([127.0.0.1]:38598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRKzz-0007QB-3h for submit@debbugs.gnu.org; Sat, 10 Oct 2020 15:57:47 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:52772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRKzx-0007Py-Cn for 29170@debbugs.gnu.org; Sat, 10 Oct 2020 15:57:45 -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=Ip95Y08koaaks7mIKVoI01Mf/FWXPyxiUwwfqailVwQ=; b=rrkqq6WUSQbZ1SKKkcPEOP4IdJ jwuf+1z6KxORMy9m8y2ivtjDAZZXaeppT8WZgtk6GSAV3iA5g2v4HT4dr7TLupUuFcf0peltrORRf YgC7Wgm8h4nnQ9XU9L65aqXeJbIiAMrIDy+jb/hRJq43FLZ5+UomuE8hK99E8hP7W/wQ=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRKzk-00060e-Ji; Sat, 10 Oct 2020 21:57:39 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAHlBMVEV2cHKUjYyEfoCh m5lYUlJBPDwZFhaCe32FgH3///8F2ZJAAAAAAWJLR0QJ8dml7AAAAAd0SU1FB+QKChMuMFeyL1gA AAGqSURBVDjLtdIxr5swEADgqwR4jeOXxxwW1lj07UbPZk4lzPwqYXd1o0j+B/3dPTsJHGnWekDg z3enOwPf+It15Ht4Cbj+PxxXEEbi8/QjfzQNgSHtTT/T+75tmjVV5Tk/+BzRxguBd/+J2OP5JsRI wTF7TcATHAn0k/91uEfQVPzDe98zvt9HAApiQPjCLDECozXEhDDvWLy0AASExH3vAksRFPgpgce9 Z/ieQSXBGu0CcgEWMz7BGQEoCPnxAPgXpgUwXf8ofhjHwtoVPhfQunwJ72dt7DTDvcgKf2bj3eQA Ao0QOEM3eOftM0gcrkbQN1hSCcEHP9sJgdUUug7v21ucOzAW1lTiBvdhkRpY4gGjotDJjpc51R1g AckL7xJYvYngsi7dOFrrjVFrhBBSvhk3am291mpTg5+uZzxWYOeaRnSyfvuCOoLZQic4lHmwg6LQ 4USgwKYj2wK2x8N1TjddKSDFE7Crg1iHaswAlxvgffzeIbShmhWBvHZOsSZWLkMgV7vzmmGE28wK UyGMrIXSafX0MwTvVARtbgAPOPU4XQXFaHIbEP4C9tKtFFmXn98AAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjAtMTAtMTBUMTk6NDY6NDgrMDA6MDD+pT4xAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEw LTEwVDE5OjQ2OjQ4KzAwOjAwj/iGjQAAAABJRU5ErkJggg== X-Now-Playing: David Sylvian's _Sleepwalkers_: "World Citizen (I Won't Be Disappointed)" In-Reply-To: <87tuv4mm0v.fsf@omecha.info> (daimrod@omecha.info's message of "Thu, 08 Oct 2020 23:43:28 +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:190228 Archived-At: writes: > So, I tested it on emacs-27.1 with junk disabled and it still freezes. > > $ MALLOC_OPTIONS=jj 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)) Thanks for checking. So it sounds like we do need something like the proposed patch (with #ifdef OpenBSD) here, but apparently the patch led to other problems. > I've tested your patch on emacs-25-3.1 and it does prevent the infinite > loop. However, if the user sends input to emacs while it is waiting, it > raises the following backtrace : > > Debugger entered--Lisp error: (error "Timed out waiting for reply from > selection owner") > x-get-selection-internal(SECONDARY STRING nil nil) So further work is needed here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no