delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/04/11:15:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_NEUTRAL,TW_CG
X-Spam-Check-By: sourceware.org
Message-ID: <4E8B22F1.8000109@cornell.edu>
Date: Tue, 04 Oct 2011 11:14:57 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: error while running shell in emacs
References: <20110930162705 DOT Horde DOT SEW3ZruWis5OhdG5y5EHB8A AT webmail DOT df DOT eu> <4E8612C8 DOT 2020701 AT cornell DOT edu> <4E88D905 DOT 8010206 AT cornell DOT edu> <4E88DE0C DOT 1030108 AT cornell DOT edu> <4E8A3E33 DOT 8000806 AT cornell DOT edu> <20111004085656 DOT Horde DOT ygwybElCcOxOiq446RkmP4A AT webmail DOT df DOT eu>
In-Reply-To: <20111004085656.Horde.ygwybElCcOxOiq446RkmP4A@webmail.df.eu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/4/2011 2:56 AM, Markus Hoenicka wrote:
>
> Ken Brown <kbrown AT cornell DOT edu> was heard to say:
>
>> On 10/2/2011 5:56 PM, Ken Brown wrote:
>>> On 10/2/2011 5:35 PM, Ken Brown wrote:
>>>> On 9/30/2011 3:04 PM, Ken Brown wrote:
>>>>> On 9/30/2011 10:27 AM, Markus Hoenicka wrote:
>>>>>> Hi,
>>>>>>
>>>>>> after moving to a new position I have set up a fresh Cygwin
>>>>>> installation:
>>>>>>
>>>>>> CYGWIN_NT-5.1 sbhc123 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
>>>>>>
>>>>>> I use some Emacs extensions which execute external programs using
>>>>>> (call-process). This used to work on my previous setup, but it
>>>>>> fails on
>>>>>> my current box. The following command run in Emacs reproduces what
>>>>>> seems
>>>>>> to be the problem:
>>>>>>
>>>>>> (call-process "bash" nil '(t t) nil "-ic" "ls -al")
>>>>>> bash: Kann die Prozessgruppe des Terminals nicht setzen (-1).:
>>>>>> Inappropriate ioctl for device
>>>>>> bash: Keine Job Steuerung in dieser Shell.
>>>>>>
>>>>>> As you can see, my Cygwin also started speaking German, but I didn't
>>>>>> get
>>>>>> round to fix that yet. The messages loosely translate to: "cannot set
>>>>>> terminal process group" and "no job control in this shell".
>>>>>>
>>>>>> Is this an incorrect setup of either Cygwin or Emacs, or is this
>>>>>> indeed
>>>>>> a problem that crept into Cygwin recently?
>>>>>
>>>>> I can reproduce this problem. It reminds me of a problem that I
>>>>> reported in
>>>>>
>>>>> http://cygwin.com/ml/cygwin/2011-06/msg00174.html ,
>>>>>
>>>>> but that started with the 2011-05-05 snapshot and was fixed in the
>>>>> 2011-06-16 snapshot. The problem you're reporting exists in Cygwin
>>>>> 1.7.9
>>>>> and persists in the latest snapshot, but with different symptoms:
>>>>> Instead of printing error messages, emacs hangs and has to be killed.
>>>>>
>>>>> If one of the Cygwin developers wants to look at this, here are the
>>>>> steps to reproduce it:
>>>>>
>>>>> 1. Start emacs.
>>>>> 2. Type <Ctrl-x>b<Enter>
>>>>>
>>>>> [This should put you in the *scratch* buffer.]
>>>>>
>>>>> 3. Type (or copy and paste) the following text into the *scratch*
>>>>> buffer:
>>>>>
>>>>> (call-process "bash" nil '(t t) nil "-ic" "ls -al")
>>>>>
>>>>> 4. With the cursor positioned immediately after the closing
>>>>> parenthesis,
>>>>> type <Ctrl-j>
>>>>
>>>> FWIW, the change in behavior (i.e., emacs hanging instead of giving an
>>>> error message) starts with the 2006-06-13 snapshot. And it may be
>>>
>>> Ignore the statement that it starts with the 2006-06-13 snapshot. I made
>>> a mistake and didn't test enough snapshots. I'll have to continue
>>> bisecting. All I know at the moment is that there's an error message in
>>> the 2011-05-10 snapshot and that the "hang" occurs in the 2011-06-13
>>> snapshot. There are still a lot of snapshots in between that need
>>> testing. Sorry for the noise.
>>
>> I've finished testing snapshots. Up through the 2011-05-20 snapshot, I
>> get the error messages reported by the OP:
>>
>> bash: cannot set terminal process group (-1): Inappropriate ioctl for
>> device
>> bash: no job control in this shell
>>
>> Starting with the 2011-05-28 snapshot, I instead get the message
>> "Aborted". Starting with the 2011-06-01 snapshot, I get the "hanging"
>> behavior that I reported previously (with a stopped bash process).
>>
>> There was a similar pattern in the problem I reported in
>>
>> http://cygwin.com/ml/cygwin/2011-06/msg00174.html
>>
>> Ken
>>
>
> Do you have any idea which Cygwin DLL version introduced the problem? I
> have never used snapshots, but as I can't access my previous box anymore
> I can't really tell which version it ran.

No, 1.7.9 is the earliest version I've tested.  I'm inclined to wait and 
see if cgf or Corinna says it would be useful for us to test earlier 
versions.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019