* 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
* Re: Memory-exhausted crash when yanking from xclip
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
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2004-10-27 12:25 UTC (permalink / raw)
Cc: bug-gnu-emacs
Felix Wiemann <Felix.Wiemann@gmx.net> writes:
> Note: It only happens when using xclip.
>
> Can anyone reproduce this?
Not without a complete test case. What is xclip and what does it do
exactly?
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Memory-exhausted crash when yanking from xclip
2004-10-27 12:25 ` Andreas Schwab
@ 2004-10-27 15:49 ` Felix Wiemann
0 siblings, 0 replies; 3+ messages in thread
From: Felix Wiemann @ 2004-10-27 15:49 UTC (permalink / raw)
Cc: bug-gnu-emacs
Andreas Schwab wrote:
> Felix Wiemann writes:
>
>> Note: It only happens when using xclip.
>>
>> Can anyone reproduce this?
>
> Not without a complete test case. What is xclip and what does it do
> exactly?
<http://www.google.com/search?q=xclip>
<http://people.debian.org/~kims/xclip/>
I'm using xclip-0.08.
--
Felix Wiemann -- http://www.ososo.de/
^ 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 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.