From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15132 invoked by alias); 21 Jul 2002 18:53:39 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15125 invoked from network); 21 Jul 2002 18:53:38 -0000 Received: from unknown (HELO web10105.mail.yahoo.com) (216.136.130.55) by sources.redhat.com with SMTP; 21 Jul 2002 18:53:38 -0000 Message-ID: <20020721185338.65304.qmail@web10105.mail.yahoo.com> Received: from [212.129.46.102] by web10105.mail.yahoo.com via HTTP; Sun, 21 Jul 2002 20:53:38 CEST Date: Sun, 21 Jul 2002 14:58:00 -0000 From: =?iso-8859-1?q?Sylvain=20Petreolle?= Subject: Re: g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly To: cygwin@cygwin.com In-Reply-To: <20020721170010.GB1183@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-07/txt/msg01631.txt.bz2 This thread is not dead. The result of this shows that Cygwin can at the moment be told to execute code without having a correct executable file (also COFF format). Cygwin should have detected a non-executable file and have refused to launch it. What happens here on NT: if you use incorrect syntax by appending .exe in g++ cmd : $ g++ -mno-cygwin -c cpplus.cpp -o cpplus.exe ; g++ -mno-cygwin -c cpplus.cpp -o cpplus $ ls -l cpplus cpplus.exe -rw-r--r-- 1 Nom 544 1855 Jul 21 20:38 cpplus -rwxr-xr-x 1 Nom 544 1855 Jul 21 20:41 cpplus.exe finally tring to launch it: $ ./cpplus BASH: ./cpplus: Permission denied $ ./cpplus.exe runs and hangs. (note that under Windows ME it doesn't run,saying permission denied though it's detected as executable by ls). two problems: - ls should show non executable file (problem in cygwin filesystem /ls excutable detection routine) - incorrect code can be launched on NT systems. ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/