This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly
- From: Sylvain Petreolle <spetreolle at yahoo dot fr>
- To: cygwin at cygwin dot com
- Date: Sun, 21 Jul 2002 20:53:38 +0200 (CEST)
- Subject: Re: g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly
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/