X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:content-transfer-encoding
	:content-type:reply-to:subject:references:to:from:message-id
	:date:in-reply-to; q=dns; s=default; b=w2OWLLu33Scyl/7U/V8KPdy1O
	Ivz6ZY6sjPB5gBJMm/PxLD3D/EqzN1YxuG+9tPemh7l4WsRuAyknPeiDqfpWYMp8
	jtHrMJDUD3/P2EYHAF5pKRrwHZNAEcYs/mTkQtxhUWpO26J5t7UVJ9vpq2ie+g6n
	uT1F2X+b9uZwzNbhP4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:content-transfer-encoding
	:content-type:reply-to:subject:references:to:from:message-id
	:date:in-reply-to; s=default; bh=eQM++bg5EjXbxT8DV0xNHGyP6LA=; b=
	kLTZm4qYJUYuACJLZEKAyy/bOB9bb5TVO0xEFKn0zt35zBhuBJ3krYFT6wlEGUyE
	UjR+MSealcLdBj5V/lr2XWsHv34LpGGJW2WLmbkve/RBv2D4nOfNUEWIBz2C0spg
	pZ2Jst/xnAXWWolXD4ZyPeNOLofSCld7hsA3u+ctN+Q=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*Ad:U*reply-to-list-only-lh, Larry, Young, Warren
X-HELO: vms173023pub.verizon.net
MIME-version: 1.0
Content-transfer-encoding: 8BIT
Content-type: text/plain; charset=utf-8; format=flowed
X-CMAE-Score: 0
X-CMAE-Analysis: v=2.1 cv=EdU1O6SC c=1 sm=1 tr=0	a=Z9UJdt/jcW91Hd6r4aN9qw==:117 a=w_pzkKWiAAAA:8 a=oR5dmqMzAAAA:8	a=IkcTkHD0fZMA:10 a=7aQ_Q-yQQ-AA:10 a=pGLkceISAAAA:8	a=bsYlAduF_IHhSdZHGTQA:9 a=QEXdDO2ut3YA:10 a=9c8rtzwoRDUA:10	a=V13YsTwMRVgA:10
Reply-to: cygwin@cygwin.com
Subject: Re: Running native exe from Cygwin in random instances reports incorrect error code 127
References: <CAGW0ud2ELnAAkx57A3LutxiAoBtv1Mm7ssfaut__JDJu5GUSkg@mail.gmail.com> <C12B9B32-5A3A-4F9B-A8FD-BC8F3EE91F0F@etr-usa.com>
To: cygwin@cygwin.com
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Message-id: <569DA37A.6090509@cygwin.com>
Date: Mon, 18 Jan 2016 21:46:18 -0500
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
In-reply-to: <C12B9B32-5A3A-4F9B-A8FD-BC8F3EE91F0F@etr-usa.com>

On 01/18/2016 02:50 PM, Warren Young wrote:
> On Jan 18, 2016, at 8:27 AM, David Sicilia <dpsicilia@gmail.com> wrote:
>>
>>    3) The native windows program successfully completes and exits with
>> code 0 internally
>>    4) But -- the error code returned to the bash script is 127 --
>> despite no indication of an error anywhere
>
> We’ll want a simple test case showing the problem.  I can’t replicate it here.

<snip>

> If this pair of programs *fails* on your system, then you’ve probably got a BLODA problem:
>
>      https://cygwin.com/faq/faq.html#faq.using.bloda

The somewhat coincidental recent thread below makes me bet on BLODA,
particularly if it's only happening sometimes.  I could see BLODA
blocking access to a needed DLL in some cases just at the wrong time,
resulting in a code 127.

<https://cygwin.com/ml/cygwin/2016-01/msg00197.html>


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

