[Gambas-user] Issue 514 in gambas: Exec crashes Gambas if file is not executable

gambas at ...2524... gambas at ...2524...
Sat Mar 1 16:46:30 CET 2014


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 514 by uAle... at ...626...: Exec crashes Gambas if file is not  
executable
http://code.google.com/p/gambas/issues/detail?id=514

1) Describe the problem.

The Gambas "Exec" can execute external processes, but if the external file  
exist but is NOT executable, it crashes Gambas with the following error:
ERROR: #68: Cannot run child process: cannot run executable: Permission  
denied

The "Try" and "Catch" don't work in this scenario.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: 3.5.2
Revision: N/A
Operating system: Linux
Distribution: Ubuntu
Architecture: x86_64
GUI component: GTK+
Desktop used:  Gnome

3) Provide a little project that reproduces the bug or the crash.

Extremely easy, just do a touch like:
touch /var/tmp/x11.sh

$ ls -l /var/tmp/x11.sh
-rw-rw-r-- 1 gambas gambas 0 mrt  1 16:40 /var/tmp/x11.sh

Execute the following Gambas code:
Try Exec ["/var/tmp/x11.sh"]

4) If your project needs a database, try to provide it, or part of it.

5) Explain clearly how to reproduce the bug or the crash.

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: If you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!

ANOTHER NOTE: Don't create an issue if you have a compilation problem on
the development version. Send a mail to the mailing-list instead, thanks.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list