From: Chong Yidong <cyd@stupidchicken.com>
To: emacs-devel@gnu.org
Cc: 3521@emacsbugs.donarmstrong.com
Subject: bug#3521: Progress on bug#3521? mode-line updates break process-send-region
Date: Sun, 28 Jun 2009 12:07:48 -0400 [thread overview]
Message-ID: <87d48ofijv.fsf__30109.9457349212$1246205866$gmane$org@stupidchicken.com> (raw)
In-Reply-To: <873a9kic7r.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Sun, 28 Jun 2009 17:56:24 +0200")
Tassilo Horn <tassilo@member.fsf.org> writes:
>> Please do a search of prior revisions and find the change where this
>> problem first arose. Thanks.
>
> I'll see what I can do. I've tried with emacs 22.3, and there I cannot
> reproduce it. So it seems to be introduced some times back in the 23
> branch.
Note, by the way, that your test case does something that you maybe did
not intend:
> (progn
> (setq proctest
> (start-process "cat" (get-buffer-create "cat") "/bin/cat"))
> (with-temp-buffer
> (dotimes (dummy 999999)
> (insert
> (concat (number-to-string (random))
> (number-to-string (random))
> (number-to-string (random))
> (number-to-string (random))
> "\n")))
> (process-send-region proctest (point-min) (point-max)))
> (delete-process proctest))
It keeps growing the temporary buffer, and eventually you're sending
extremely large strings to the inferior process.
> Debugger entered--Lisp error: (file-error "writing to process" "bad address" #<process cat<2>>)
> process-send-region(#<process cat<2>> 1 75145548)
On my 32-bit machine, the error occurs earlier. But If I insert an
`erase-buffer' call into your loop, so that the size of the temporary
buffer is bounded, Emacs completes the 999999-iteration loop without any
error.
If there's any connection with mode-line updates, I have not been able
to reproduce it.
prev parent reply other threads:[~2009-06-28 16:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-28 9:46 Progress on bug#3521? mode-line updates break process-send-region Tassilo Horn
2009-06-28 14:53 ` Chong Yidong
2009-06-28 15:56 ` Tassilo Horn
2009-06-28 16:07 ` Chong Yidong
2009-06-28 20:15 ` bug#3521: " Andreas Schwab
2009-06-28 20:15 ` Andreas Schwab
2009-06-28 20:39 ` Tassilo Horn
2009-06-28 20:39 ` bug#3521: " Tassilo Horn
2009-06-28 20:58 ` David Engster
2009-06-29 6:56 ` Tassilo Horn
2009-06-29 6:56 ` bug#3521: " Tassilo Horn
2009-06-28 16:07 ` Chong Yidong [this message]
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='87d48ofijv.fsf__30109.9457349212$1246205866$gmane$org@stupidchicken.com' \
--to=cyd@stupidchicken.com \
--cc=3521@emacsbugs.donarmstrong.com \
--cc=emacs-devel@gnu.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.