From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Eli Zaretskii <eliz@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: "resource temporarily unavailable" errors on windows 7
Date: Wed, 14 Mar 2012 19:47:00 +0200
Message-ID: <83ehsvvzvv.fsf@gnu.org>
References: <CAH-ciFoNr0U7FfJ488MCLSS+zCc6WFF1YrZsQaXXfbL0V8docw@mail.gmail.com>
	<83aa3lybos.fsf@gnu.org>
	<CAH-ciFpTUaMyqZgy-OBrM0S=DKq=KVRsg8Y74DYuEgvOyDk-=Q@mail.gmail.com>
	<CAH-ciFryjk30BsozbaNx8n19aa5LaJFG_=EU1x+osoX3v=Kmsg@mail.gmail.com>
	<83vcm9w3th.fsf@gnu.org>
	<CAH-ciFq+srBc2=g3kmy9gfJGPcBfS=VajPnjcMB4pn1G-cwqNg@mail.gmail.com>
	<83obs0wb0p.fsf@gnu.org>
	<CAH-ciFpFFt4FQXOGD8hLkKC6ws80dKz6NE8Pn6+VWkyjCZBS2g@mail.gmail.com>
Reply-To: Eli Zaretskii <eliz@gnu.org>
NNTP-Posting-Host: plane.gmane.org
X-Trace: dough.gmane.org 1331747311 13248 80.91.229.3 (14 Mar 2012 17:48:31 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Wed, 14 Mar 2012 17:48:31 +0000 (UTC)
Cc: emacs-devel@gnu.org
To: Alex Harsanyi <alexharsanyi@gmail.com>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 14 18:48:30 2012
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1S7sJF-0007gQ-MW
	for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 18:48:25 +0100
Original-Received: from localhost ([::1]:35797 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1S7sJF-0001T7-5H
	for ged-emacs-devel@m.gmane.org; Wed, 14 Mar 2012 13:48:25 -0400
Original-Received: from eggs.gnu.org ([208.118.235.92]:41930)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eliz@gnu.org>) id 1S7sIr-00015m-0Z
	for emacs-devel@gnu.org; Wed, 14 Mar 2012 13:48:23 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eliz@gnu.org>) id 1S7sIk-0001DL-Bu
	for emacs-devel@gnu.org; Wed, 14 Mar 2012 13:48:00 -0400
Original-Received: from mtaout21.012.net.il ([80.179.55.169]:51996)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@gnu.org>)
	id 1S7sIk-0001D1-3A
	for emacs-devel@gnu.org; Wed, 14 Mar 2012 13:47:54 -0400
Original-Received: from conversion-daemon.a-mtaout21.012.net.il by
	a-mtaout21.012.net.il (HyperSendmail v2007.08) id
	<0M0V00H00YK77W00@a-mtaout21.012.net.il> for
	emacs-devel@gnu.org; Wed, 14 Mar 2012 19:47:00 +0200 (IST)
Original-Received: from HOME-C4E4A596F7 ([77.124.179.236]) by a-mtaout21.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0M0V00GN3YQBCQP0@a-mtaout21.012.net.il>;
	Wed, 14 Mar 2012 19:47:00 +0200 (IST)
In-reply-to: <CAH-ciFpFFt4FQXOGD8hLkKC6ws80dKz6NE8Pn6+VWkyjCZBS2g@mail.gmail.com>
X-012-Sender: halo1@inter.net.il
X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta)
X-Received-From: 80.179.55.169
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.devel:149056
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/149056>

> Date: Wed, 14 Mar 2012 12:27:31 +0800
> From: Alex Harsanyi <alexharsanyi@gmail.com>
> Cc: emacs-devel@gnu.org
> 
> > Question: does the problem happen right when you invoke the first
> > subprocess, or only after several subprocesses are already running,
> > and you try to invoke another one?
> 
> It does not happen all the time, I'd say about 1 out of 4 tries for a
> `M-x diff-backup RET' call.  In terms of running processes,
> (process-list) returns:
> 
>     (#<process ielm> #<process cleartool> #<process edit-server>
> #<process server>)
> 
> BTW, it also happens when I run "emacs -Q", but less often, although
> when I tested the CreateThread failure, I run emacs -Q under gdb and
> it failed on the third try.

"On the third try" meaning that you have 2 other subprocesses running,
or did you invoke a process, then terminated it, then invoked another,
etc. 3 times?

> I also noticed that spontaneously, the Stack reserved size grows by
> about 10-12Mb (Free section decreases accordingly), than the memory is
> released a few seconds later.

Is that for the Emacs process?  If so, I would suspect that GC kicked
in.  You can see if that's so by setting garbage-collection-messages
non-nil.

Did you try increasing the size of the original request in
allocate_heap, and if you did, what was the maximum value that still
gives you a good Emacs session?

Thanks for working on this.