all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: process_send_string blocks?
Date: Sat, 06 Sep 2014 08:11:13 -0500	[thread overview]
Message-ID: <85ppf8evwu.fsf@stephe-leake.org> (raw)
In-Reply-To: <83r3zpcctv.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Sep 2014 12:34:04 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stephen Leake <stephen_leake@stephe-leake.org>
>> 
>> It appears that process-send-string is blocked on a full IO send queue,
>> while the background process is also blocked on a full IO send queue.
>
> Please tell the details of how did you determine this.

mostly a guess, combined with "there's nothting else wrong".

>> On reading process.c, I believe this should not happen, if the OS supports
>> EWOULDBLOCK. 
>> 
>> Is that true, even when there is only one call to process-send-string that
>> sends the entire buffer?
>
> Not sure what are you asking here, since you say you've read the code
> and saw the handling of EWOULDBLOCK.

Because it is often easy to misunderstand code that I am reading for the
first time. For example, I completely missed the threading stuff you
talk about below.

>> I'm running on Windows 7, using the Windows binary
>> emacs-23.4-bin-i386.zip from the FSF FTP site.
>> 
>> Is EWOULDBLOCK supported on this system?
>
> Not on writes to pipes, AFAIK.

Ah, then that's the problem. Hmm, except below you seem to be saying
maybe it's not?

>> I'll try compiling Emacs from source so I can run the debugger; I've
>> never tried that on Windows before.
>
> Please do that with the latest pretest, as 24.3 is by now ancient
> history.

Ok.

> <snip code description>

thanks for the code info; that will help when I get the debugger
running.

> The first thing I'd do is attach GDB to the hung Emacs and see where
> each one of these 2 threads is parked.  (Note that there are more
> threads in a running Emacs than just these 2.)

I'll give that a try.

> Finally, it is better to continue all this on the bug tracker, perhaps
> as part of bug #18396, or a new bug report, if you don't want to mix
> up these 2.

It's not clear whether this is the same bug; I'll file a new one. I have
a reliable reproducer, which I can easily simplify.

-- 
-- Stephe



  reply	other threads:[~2014-09-06 13:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06  8:09 process_send_string blocks? Stephen Leake
2014-09-06  8:28 ` Jorgen Schaefer
2014-09-06  9:34 ` Eli Zaretskii
2014-09-06 13:11   ` Stephen Leake [this message]
2014-09-06 13:28     ` Eli Zaretskii
2014-09-07  8:21       ` Stephen Leake
2014-09-07 15:44         ` Eli Zaretskii
2014-09-07 20:32           ` Stephen Leake

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=85ppf8evwu.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --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.