all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <daimrod@omecha.info>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: daimrod@omecha.info, 29170@debbugs.gnu.org
Subject: bug#29170: 26.0.90; Emacs freezes when capturing an org-template
Date: Thu, 08 Oct 2020 23:43:28 +0200	[thread overview]
Message-ID: <87tuv4mm0v.fsf@omecha.info> (raw)
In-Reply-To: <87wo07tcz2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 03 Oct 2020 19:51:13 +0200")

Lars Ingebrigtsen <larsi@gnus.org> 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 = 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.
>
> 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=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))

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





  reply	other threads:[~2020-10-08 21:43 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
2020-10-03 17:51             ` Lars Ingebrigtsen
2020-10-08 21:43               ` daimrod [this message]
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

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

  git send-email \
    --in-reply-to=87tuv4mm0v.fsf@omecha.info \
    --to=daimrod@omecha.info \
    --cc=29170@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.