* Memory-exhausted crash when yanking from xclip
@ 2004-10-27 12:19 Felix Wiemann
2004-10-27 12:25 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Felix Wiemann @ 2004-10-27 12:19 UTC (permalink / 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-27 15:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 12:19 Memory-exhausted crash when yanking from xclip Felix Wiemann
2004-10-27 12:25 ` Andreas Schwab
2004-10-27 15:49 ` Felix Wiemann
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).