delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/02/23:26:22

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=e+
/tshLwW5wX+0rgqrRs2abI+4M+9O1jkq76wKi2c8W65sHGxbvs/UV1kIjp6jAfmA
+YfkL2FVPKPwLw2LvX160W1H7mQNJax1xta9vbh1Tst29pBmMWk9MfY4mkhrCL57
lI3uv0bDDSrZyek15pm0bO8r66Bf0JA7z70058cKU=
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:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=EbNYDEUu
qp2S6kiMk0+6MlRqRD8=; b=tiKbXXVcrM/zxxbyAKZRssUbK9eT+aQAvPcJbUGy
djF6HPYY6B7QhihAvK+iYyXFGEmMQNDsy+oZFMVTz/XScD5wdtKxf1B4icdIxUsE
94rL8P5dZh3f3Nriws7dFxLroTBAVUwM/E/h5jwARRpYXkkKflgl7VONwLjdb0Y7
enk=
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
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_YG autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.14.182.5 with SMTP id n5mr21216355eem.151.1370229959440; Sun, 02 Jun 2013 20:25:59 -0700 (PDT)
In-Reply-To: <51A97B9B.9090800@gmail.com>
References: <CALgEz7pxV+kNd=OV03uVWoETPjTjn73=GkxHRjKn62E_-qXnqA AT mail DOT gmail DOT com> <51A97B9B DOT 9090800 AT gmail DOT com>
Date: Sun, 2 Jun 2013 20:25:59 -0700
Message-ID: <CALgEz7ovJVxB-uMjowr6JLmtWXd6_==94herdJ8q1QebRuhvJA@mail.gmail.com>
Subject: Re: no stdout/stderr from cygwin compiled exe
From: Balaji Venkataraman <balaji DOT s DOT venkataraman AT gmail DOT com>
To: cygwin AT cygwin DOT com

On Fri, May 31, 2013 at 9:42 PM, marco atzeri <marco DOT atzeri AT gmail DOT com> wrote:

> Are you running the program inside mintty or what ?

That was genius IMO. I am using Console2 (have been using it for a
long time now) to run Cygwin since I usually have multiple tabs open
(cygwin, cygwin64, mingw, msvc etc.). But I never thought that could
be the problem. I tried running it in mintty and the program works
perfectly! Problem solved - thanks! Should perhaps file a bug on
Console2.

> Could you at least provide the output of
> cygcheck <your progam>

Not sure this is required any more.

>> $ cygcheck -s -r -v > cygcheck.txt
>>        0 [main] cygrunsrv 11432 open_stackdumpfile: Dumping stack trace
>> to cygrunsrv.exe.stackdump
>
> This error should not happen, so something is interfering with cygwin

This one's been around for a long time on my machine. Something I gave
up trying to figure out. And yes, I do get this error even when using
mintty. Oddly enough, I use cygrunsrv to start/stop some daemons
regularly - it works fine. The only thing that fails (every time) is
"cygrunsrv -L". It segfaults as shown below:

$ cygrunsrv -L
cygserver
CYGWIN mysql
httpd2
Segmentation fault

It is never able to list sshd (which is also running and without any
obvious problems). If you have another neat idea on why this might be
happening, nothing like that!

>> add_executable (${PROJECT_NAME} WIN32 ${SOURCES})
>
> for cygwin program WIN32 is not defined, are you building
> a NOT cygwin program ?

I agree - don't think that flag has any relevance to Cygwin. I had to
add it only to make the msvc build work.

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