delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/10/15/11:30:00

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49FFTxbl3879228
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=YgYK8L1a
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11F213858C41
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1729006199;
bh=VQZsEQDyu18Z+mc1Av4tIyF9nm8vtBUpyLcKFr5p64Q=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=YgYK8L1aqzJ2BTg/57BraQcOw9TfwlpTG+FPUe8y2IaT+hlSDVS+Lp81ypn9KRV6Z
0QOzXAzj1QjMjMJg61M9W5io5DDbqfgfHS9BbXcoAMhnUthJXYZW1oCamDvNP/JEiF
JyU9jZ3ZtyvkxgYfhCoZRLsIrA6V4m2GSwBDcruQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EA5D63858C41
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EA5D63858C41
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729006176; cv=none;
b=AbsCCrdxx0jwDZGYwcYm19TsPlYLRZjWeUXrwcBrovrcOsz1aJW+Ho1TktQDmE77A/TqkDhNwWEL0cVea87gSX3CyzT9h4ywh/UtWvDVlmJoBpkJsNR0GL36LuoNQhvOLXkdfl2z7q3Ys+r5JBhLB3uRKVbhkuslSAEk/RUgprg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1729006176; c=relaxed/simple;
bh=4D1Io21LasFuCU1sfrcCyBQRD8eGf3M68mrm6x38Et4=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=PosHsJS0BEm8mcu8tLvH108/JIxN05vQ580HCH1C7MNyugUIZdCTOznjBAKaOofHc+2OO+wXwxy8sNUekoSZt92yu3hPkUqFl7M9z61qRh1ViMvgpxYmVKY2aIm0bGlMki8h6yRmNo2G/bVBT1IlWggstnZr0BVS7+TZP1zL7W8=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Wed, 16 Oct 2024 00:29:30 +0900
To: cygwin AT cygwin DOT com
Subject: Re: fresh install, when I run a c++ program I made from a cygterm
it logs out
Message-Id: <20241016002930.a8c755ce7834f43d56f52272@nifty.ne.jp>
In-Reply-To: <20241016000144.9ccbc09ba4a3d7d5ce8dee31@nifty.ne.jp>
References: <826d4141-c988-4445-b069-17d98deee944 AT jeffunit DOT com>
<20241015042129 DOT bb800cc5f1a7c5d74e78f887 AT nifty DOT ne DOT jp>
<bba13fdb-2c6c-48ff-93e3-335a02efbe54 AT jeffunit DOT com>
<20241015044037 DOT 49cc26f49a4bcc8290b5c2aa AT nifty DOT ne DOT jp>
<3e67dacc-248e-4bcf-a26a-972ae93e2a08 AT jeffunit DOT com>
<844a0865-027c-419c-b22c-c05f9016bdfb AT jeffunit DOT com>
<20241015194842 DOT 907f20d6023f745e8f829499 AT nifty DOT ne DOT jp>
<85266c6e-1a68-4c31-9361-0e2b250691a2 AT jeffunit DOT com>
<20241016000144 DOT 9ccbc09ba4a3d7d5ce8dee31 AT nifty DOT ne DOT jp>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_PASS,
SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 49FFTxbl3879228

On Wed, 16 Oct 2024 00:01:44 +0900
Takashi Yano wrote:
> On Tue, 15 Oct 2024 04:52:12 -0700
> jeff wrote:
> > On 10/15/2024 03:48, Takashi Yano wrote:
> > > On Mon, 14 Oct 2024 14:18:04 -0700
> > > jeff via Cygwin <cygwin AT cygwin DOT com> wrote:
> > >
> > >> I have a test case.
> > >>
> > >> this is test.c:
> > >> #include <stdio.h>
> > >> int    main(int argc, char *argv[])
> > >> {
> > >>       for (int i = 0; i < argc; i++)
> > >>       printf("%s\n", argv[i]);
> > >> }
> > >>
> > >> compiled with gcc test.c -o testx.exe
> > >>
> > >> when run from windows terminal:
> > >> testx one two three
> > >> testx
> > >> one
> > >> two
> > >> three
> > >>
> > >> when run from cygwin bash shell and /cygdrive/k
> > >> jdeifik AT epyc-milan-64 /cygdrive/k
> > >> $ testx one two thee
> > >> testx
> > >> one
> > >> two
> > >> thee
> > >>
> > >> when run from cygwin bash shell and /cygdrive/k/pw-crack
> > >> jdeifik AT epyc-milan-64 /cygdrive/k/pw-crack
> > >> $ testx one two thee
> > >> testx
> > >> one
> > >> two
> > >> thee
> > >>
> > >> when run from cygwin bash shell and /cygdrive/k/pw-crack/fred_john
> > >> jdeifik AT epyc-milan-64 /cygdrive/k/pw-crack/fred_john
> > >> $ !testx
> > >> testx one two thee
> > >> testx
> > >> one
> > >> two
> > >> thee
> > >>
> > >> when run from cygwin bash shell and /cygdrive/k/pw-crack/fred_john/run
> > >> jdeifik AT epyc-milan-64 /cygdrive/k/pw-crack/fred_john/run
> > >> $ testx one two thee
> > >>
> > >> jdeifik AT epyc-milan-64 /cygdrive/k/pw-crack/fred_john/run
> > >> $
> > >> logout
> > > Is drive k: something special, such as network drive?
> > > If so, what kind of network drive is it?
> > No. It is just an internal sata ssd.
> 
> OK. But I cannot reproduce the problem.
> 
> yano AT HP-Z230 /cygdrive/h/pw-crack/fred_john/run
> $ gcc test.c -o testx.exe
> 
> yano AT HP-Z230 /cygdrive/h/pw-crack/fred_john/run
> $ ./testx one two three
> ./testx
> one
> two
> three
> 
> yano AT HP-Z230 /cygdrive/h/pw-crack/fred_john/run
> $
> 
> Could you please check the result of
> find /cygdrive/k -name cygwin1.dll -exec ls -l '{}' \;
> ?

Also please check:
IFS=':'; for a in ${PATH[@]}; do find $a -name cygwin1.dll -exec ls -l '{}' \; ; done

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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

- Raw text -


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