unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: daimrod@omecha.info
To: Eli Zaretskii <eliz@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 29170@debbugs.gnu.org
Subject: bug#29170: 26.0.90; Emacs freezes when capturing an org-template
Date: Fri, 02 Oct 2020 19:55:29 +0200	[thread overview]
Message-ID: <87zh54fr72.fsf@omecha.info> (raw)
In-Reply-To: <83sgawekcj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Oct 2020 18:08:44 +0300")

[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Lars Ingebrigtsen <larsi@gnus.org>
>> Cc: daimrod@omecha.info,  29170@debbugs.gnu.org
>> Date: Fri, 02 Oct 2020 16:30:45 +0200
>> 
>> On OpenBSD, most of the time, the function
>> "xselect.c/x_get_foreign_selection" won't get a SelectNotify with
>> (SECONDARY, TEXT) as arguments (that I did not understand and it might
>> never happen on other oses).
>> 
>> But then, while waiting at most 'x-selection-timeout' into
>> "process.c/wait_reading_process_output" the 'now' variable won't have a
>> chance of being invalidated or updated and that is what cause the
>> infinite loop.
>> 
>> Someone more knowledgeable of "process.c/wait_reading_process_output"
>> might have a better solution to this problem.
>
> If this is an OpenBSD-only problem, maybe we should install that
> change #ifdef'ed by OpenBSD?

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 = 0).

See MALLOC OPTIONS in malloc(3) https://man.openbsd.org/malloc

j       “Less junking”.  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.

-- 
gjadi
PGP : AF26 E9C2 A1C8 8D32 A868  4386 1373 5477 2B65 1894

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2020-10-02 17:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877dtojnf0.fsf@elite.giraud>
2017-11-06 14:20 ` bug#29170: 26.0.90; Emacs freezes when capturing an org-template Grégoire Jadi
2017-11-08 18:00   ` bug#29170: Infinite loop noticed on Emacs in OpenBSD Piotr Isajew
2017-11-09 15:06   ` Manuel Giraud
2017-11-17 14:36     ` Grégoire Jadi
2017-11-22 14:44       ` Manuel Giraud
2017-11-22 14:50         ` Grégoire Jadi
2017-11-22 15:00           ` Manuel Giraud
2020-08-24 11:43   ` Stefan Kangas
2020-08-24 11:45   ` Stefan Kangas
2020-10-02  5:16   ` bug#29170: 26.0.90; Emacs freezes when capturing an org-template Lars Ingebrigtsen
2020-10-02  7:12     ` Eli Zaretskii
2020-10-02 14:30       ` Lars Ingebrigtsen
2020-10-02 15:08         ` Eli Zaretskii
2020-10-02 17:55           ` daimrod [this message]
2020-10-03 17:51             ` Lars Ingebrigtsen
2020-10-08 21:43               ` daimrod
2020-10-10 19:57                 ` Lars Ingebrigtsen
2021-08-08 14:33                   ` Grégoire Jadi
2021-08-08 14:49                     ` Eli Zaretskii
2021-08-08 14:53                       ` Grégoire Jadi
2021-08-09 12:31                     ` Lars Ingebrigtsen
2021-08-13  7:36                       ` Grégoire Jadi
2021-08-13 11:50                         ` Lars Ingebrigtsen
2021-08-13 11:52                           ` Lars Ingebrigtsen
2021-05-25 10:55   ` bug#29170: bug29170 graeme vetterlein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zh54fr72.fsf@omecha.info \
    --to=daimrod@omecha.info \
    --cc=29170@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).