g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly
Sylvain Petreolle
spetreolle@yahoo.fr
Sun Jul 21 14:58:00 GMT 2002
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/
More information about the Cygwin
mailing list