delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/06/28/16:55:55

X-Recipient: archive-cygwin AT delorie DOT 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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=obqekF6Xg1XXaoMx
2bWO1QJGcKERMr/l3/6s5NiudavjiHCunFQ628/nTG+B4qqPFyba2NQU+xGwm05i
hPMb1oFT48BQCLH7E5rLxK2FYlbmDAv2AKNRgtpAyu7qD7H2Q+TPJqAXUJW4X8D9
LQapWKc6MrjXb8Gi07ilpjxvniM=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=+o1LHy7AsA9NtJ7dmO/rN6
KD9BI=; b=YKjaHgcHxSIFCofAY2dD1q7iBzXCHVLlPYn7nClAtMH7VEQVMq2IwK
J3ROIiV8q6bWM2HXrpQIV6wKQxJmvcwOz2QK+0XW4/X9ug/mI3OXh3H9mdMXn+7H
KSwimxAopNfu6TUiKozPuiHA/6yb18ZBxiA/WZhjqzymFOBOVRte8=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Wouter, doorn, cygwin64, wouter
X-HELO: mail-wr0-f176.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=wGoCPLHlGtVCmsfKeg1Ch56rwB4d+q330avuiQp8eLI=; b=oq++Qp7/GXuvL7aihfueLz7wKUeZl8DECXO66T6cFr0Hdpv7v47fDxBdfMEnXjBzpv 9AgUhNv5idCNBV8vKCl1zeMfSz1kqXMNVKcxzECFPvbSYqhs1+nLQJ+0f4AMebeT8Qtd +smjuiwUv8zfMRUF/jz5L0e+mGbZ2dNARKjkZOZNhZav9qMVUVYPi+vk/+VbHZVzFrPA LyVFAxaQgizTjMhqXlNJN8G7GzbokY6EcWJCnB3TR8hecJ+unea7e8sA/ZSxr3gnYDfK smwlA/7HbR3lU3t67ol9KMz8o/ZXFZUQ31fpO9kw4Z4YmCjOeiku4GQ5F0Deb1RZBuR/ SE/w==
X-Gm-Message-State: AKS2vOyJ7Dg+M8byEXQYlPXivDBp/OAwSEaEjPspTlvAGGj7Em4FqvPq WpvjlAa+3CTWU00P
X-Received: by 10.223.163.197 with SMTP id m5mr20575863wrb.128.1498683331118; Wed, 28 Jun 2017 13:55:31 -0700 (PDT)
Subject: Re: Compile/run problems on cygwin not solved by going to cygwin64
To: cygwin AT cygwin DOT com
References: <CANZ2p_eEUOYm4SWubqOvKewBMQnQcGBdyOVORA2w0c9Y8a6+=A AT mail DOT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <2299ea16-9d23-2bd8-44fb-8b864ac5d6b3@gmail.com>
Date: Wed, 28 Jun 2017 22:55:24 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <CANZ2p_eEUOYm4SWubqOvKewBMQnQcGBdyOVORA2w0c9Y8a6+=A@mail.gmail.com>
X-IsSubscribed: yes

On 28/06/2017 22:00, Wouter van Doorn wrote:
> Hello all,
>

> == The Question ==>
> When I compile a C program, the resulting executable runs fine under
> the Windows command prompt, but does nothing in the Mintty terminal -
> any program I compile will terminate immediately and not do anything
> at all. How do I get this to behave as expected?
> <===============

Hi Wouter,

can you try from mintty

$ gcc -Wall -o ciao hello.c

$ ./ciao.exe
Hello, world!

$ echo $?
0


> I can't give the strace output, as 'strace ./hello.exe' causes an
> immediate segmentation fault. No idea why, but not something I'm going
> to put energy into right now.

Symantec AV ?
I had the same issue and it is gone with cygwin-2.8.1-0.1 (test release)

Regards
Marco

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