GNU bug report logs - #29170
Emacs freezes when doing a gui-get-selection on OpenBSD

Previous Next

Package: emacs;

Reported by: daimrod <at> omecha.info (Grégoire Jadi)

Date: Mon, 6 Nov 2017 14:22:02 UTC

Severity: normal

Tags: confirmed

Merged with 45544

Found in versions 26.0.90, 27.1.90

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: <daimrod <at> omecha.info>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 29170 <at> debbugs.gnu.org
Subject: bug#29170: 26.0.90; Emacs freezes when capturing an org-template
Date: Sat, 10 Oct 2020 21:57:31 +0200
<daimrod <at> omecha.info> 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




This bug report was last modified 3 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.