GNU bug report logs -
#29170
Emacs freezes when doing a gui-get-selection on OpenBSD
Previous Next
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
Message #81 received at 29170 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Grégoire Jadi <gjadi <at> omecha.info> writes:
>
>> So we think it is safe to backport this change upstream.
>
> [...]
>
>> dnl SIGIO exists, but the feature doesn't work in the way Emacs needs.
>> - hpux* | nacl | openbsd | solaris | unixware )
>> + hpux* | nacl | solaris | unixware )
>
> Thanks; I've now applied this to Emacs 28.
Thanks !
>
>> Please note that the real issue is not fixed. The issue is in the
>> broken SIGIO code itself. I was able to reproduce the bug by enabling
>> emacs_broken_SIGIO on Ubuntu LTS 20.04. I didn't take the time to find
>> a fix though.
>
> The remaining operating systems that uses the broken_SIGIO code paths
> are pretty obscure -- I guess Solaris is still used to some degree.
>
> Hm, let's see... I guess the code paths that are exercised are the ones
> where USABLE_SIGIO is undefined? Do you have a simple test case for
> this (on Ubuntu, for instance)? I think it might make sense to open a
> new bug report for this.
Yes, the same snippet used to trigger the bug on OpenBSD can be used:
> (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))
Best regards,
--
gjadi
PGP : AF26 E9C2 A1C8 8D32 A868 4386 1373 5477 2B65 1894
This bug report was last modified 3 years and 340 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.