From: Felix Wiemann <Felix.Wiemann@gmx.net>
Subject: Memory-exhausted crash when yanking from xclip
Date: Wed, 27 Oct 2004 14:19:07 +0200 [thread overview]
Message-ID: <87is8wicas.fsf@news2.ososo.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
$ xclip memory-exhausted.txt # attached
$ emacs
Now press C-y to yank the text.
Emacs hangs. Press C-g and Emacs complains about exhausted memory (and
that the user should type `M-x save-some-buffers'). Do a few keystrokes and
Emacs starts continuously beeping. Only SIGKILL helps.
[-- Attachment #2: memory-exhausted.txt --]
[-- Type: application/octet-stream, Size: 4792 bytes --]
diff -rux CVS original-transition-docutils/docs/ref/doctree.txt docutils/docs/ref/doctree.txt
--- original-transition-docutils/docs/ref/doctree.txt 2004-10-27 12:13:45.000000000 +0200
+++ docutils/docs/ref/doctree.txt 2004-10-24 15:02:23.000000000 +0200
@@ -4035,8 +4035,8 @@
fiction, as a gap spanning one or more lines, with or without a type
ornament such as a row of asterisks. Transitions separate other body
elements, dividing a section into untitled divisions. A transition
-may not begin or end a section or document, nor may two transitions be
-immediately adjacent.
+may not begin or end a document, it may not begin a section, nor may
+two transitions be immediately adjacent.
See `Doctree Representation of Transitions`__ in `A Record of
reStructuredText Syntax Alternatives`__.
diff -rux CVS original-transition-docutils/docs/ref/docutils.dtd docutils/docs/ref/docutils.dtd
--- original-transition-docutils/docs/ref/docutils.dtd 2004-10-27 12:13:56.000000000 +0200
+++ docutils/docs/ref/docutils.dtd 2004-10-27 12:04:05.000000000 +0200
@@ -141,10 +141,11 @@
================================================================== -->
<!ENTITY % structure.model
- " ( ( (%body.elements; | topic | sidebar)+,
- (transition, (%body.elements; | topic | sidebar)+ )*,
- (((%section.elements;), transition?)*, (%section.elements))? )
- | (((%section.elements;), transition?)*, (%section.elements)) ">
+ " ( ( (%body.elements; | topic | sidebar)+,
+ (transition, (%body.elements; | topic | sidebar)+ )*,
+ ( (%section.elements;), (transition?, (%section.elements;) )* ) )
+ | ( (%section.elements;), (transition?, (%section.elements;) )* )
+) ">
<!ENTITY % text.model
" (#PCDATA | %inline.elements;)* ">
diff -rux CVS original-transition-docutils/docs/ref/transforms.txt docutils/docs/ref/transforms.txt
--- original-transition-docutils/docs/ref/transforms.txt 2004-10-27 12:13:56.000000000 +0200
+++ docutils/docs/ref/transforms.txt 2004-10-27 13:30:00.000000000 +0200
@@ -56,8 +56,6 @@
references.InternalTargets standalone (r), pep (r) 660
-misc.Transition rst (p/p) 680
-
parts.SectNum "sectnum" (d/p) 710
parts.Contents "contents" (d/p), 720
@@ -67,6 +65,8 @@
components.Filter "meta" (d/p) 780
+misc.Transition rst (p/p) 810
+
universal.Decorations Transformer 820
universal.FinalChecks Transformer 840
diff -rux CVS original-transition-docutils/docutils/nodes.py docutils/docutils/nodes.py
--- original-transition-docutils/docutils/nodes.py 2004-10-27 12:16:36.000000000 +0200
+++ docutils/docutils/nodes.py 2004-10-27 13:34:14.000000000 +0200
@@ -1184,13 +1184,6 @@
**self.attributes)
-class pending_transition(pending):
-
- def __init__(self, *args, **kwargs):
- from docutils.transforms.misc import Transition
- pending.__init__(self, Transition, *args, **kwargs)
-
-
class raw(Special, Inline, PreBibliographic, FixedTextElement):
"""
diff -rux CVS original-transition-docutils/docutils/parsers/rst/states.py docutils/docutils/parsers/rst/states.py
--- original-transition-docutils/docutils/parsers/rst/states.py 2004-10-27 12:13:56.000000000 +0200
+++ docutils/docutils/parsers/rst/states.py 2004-10-27 13:46:25.000000000 +0200
@@ -116,6 +116,7 @@
from docutils.nodes import whitespace_normalize_name
from docutils.parsers.rst import directives, languages, tableparser, roles
from docutils.parsers.rst.languages import en as _fallback_language_module
+import docutils.transforms.body
class MarkupError(DataError): pass
@@ -2738,7 +2739,8 @@
self.state_correction(context)
if self.eofcheck: # ignore EOFError with sections
lineno = self.state_machine.abs_line_number() - 1
- transition = nodes.pending_transition(rawsource=context[0])
+ transition = nodes.pending(docutils.transforms.body.Transition,
+ rawsource=context[0])
transition.line = lineno
self.document.note_pending(transition)
self.parent += transition
@@ -2751,7 +2753,8 @@
marker = context[0].strip()
if len(marker) < 4:
self.state_correction(context)
- transition = nodes.pending_transition(rawsource=marker)
+ transition = nodes.pending(docutils.transforms.body.Transition,
+ rawsource=marker)
transition.line = lineno
self.document.note_pending(transition)
self.parent += transition
[-- Attachment #3: Type: text/plain, Size: 192 bytes --]
Note: It only happens when using xclip.
Can anyone reproduce this?
--
When replying to my email address, please ensure
that the mail header contains 'Felix Wiemann'.
http://www.ososo.de/
[-- Attachment #4: Type: text/plain, Size: 149 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
next reply other threads:[~2004-10-27 12:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 12:19 Felix Wiemann [this message]
2004-10-27 12:25 ` Memory-exhausted crash when yanking from xclip Andreas Schwab
2004-10-27 15:49 ` Felix Wiemann
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=87is8wicas.fsf@news2.ososo.de \
--to=felix.wiemann@gmx.net \
/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.