public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Side-by-side configuration is incorrect reported as permission denied
@ 2012-08-11  0:45 Andrew DeFaria
  2012-08-11 10:35 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 45+ messages in thread
From: Andrew DeFaria @ 2012-08-11  0:45 UTC (permalink / raw)
  To: cygwin

I use Cygwin a lot. And I kick off Windows processes a lot. Recently 
I've been having a problem with my system but from Cygwin all I see is 
"permission denied":

    Ltsdo-adefaria:cd /cygdrive/c/Program\ Files/IBM/RationalSDLC/Clearquest
    Ltsdo-adefaria:ls -l clearquest.exe
    -rwxr-xr-x+ 1 Administrators clearusers 245760 Jun  2  2011
    clearquest.exe*
    Ltsdo-adefaria:clearquest
    bash: ./clearquest: Permission denied
    Ltsdo-adefaria:

However if I use cmd the real error message comes out:

    Ltsdo-adefaria:cmd /c clearquest
    The application has failed to start because its side-by-side
    configuration is incorrect. Please see the application event log or
    use the command-line sxstrace.exe tool for more detail.

I know that this "side-by-side configuration is incorrect" is a 
configuration error on my machine and I need to fix it, but shouldn't 
Cygwin's exec(2) report the "side-by-side" error instead of the more 
erroneous "Permission denied" error?
-- 
Andrew DeFaria <http://defaria.com>
Why do you press harder on the buttons of a remote control when you know 
the batteries are dead?



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

^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: Side-by-side configuration is incorrect reported as permission denied
@ 2012-08-13 18:56 Pawel Jasinski
  2012-08-13 19:12 ` Christopher Faylor
  0 siblings, 1 reply; 45+ messages in thread
From: Pawel Jasinski @ 2012-08-13 18:56 UTC (permalink / raw)
  To: cygwin

hi guys,

is that what we talking about (see patch below)?
If anybody is concerned about performance, I would be happy to rewrite
lookup to use some sort of hashing

I also tried to use koders.com to search for exec* and EACCES.
It doesn't look like any code indexed by koders is fishing
specifically for EACCES after call to exec* to do some magic recovery.


--pawel

Index: newlib/libc/include/sys/errno.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/errno.h,v
retrieving revision 1.18
diff -u -r1.18 errno.h
--- newlib/libc/include/sys/errno.h     26 Dec 2010 21:11:38 -0000      1.18
+++ newlib/libc/include/sys/errno.h     13 Aug 2012 17:48:33 -0000
@@ -116,7 +116,9 @@
 #define EBADFD 81      /* f.d. invalid for this operation */
 #define EREMCHG 82     /* Remote address changed */
 #define ELIBACC 83     /* Can't access a needed shared lib */
+#endif
 #define ELIBBAD 84     /* Accessing a corrupted shared lib */
+#ifdef __LINUX_ERRNO_EXTENSIONS__
 #define ELIBSCN 85     /* .lib section in a.out corrupted */
 #define ELIBMAX 86     /* Attempting to link in too many libs */
 #define ELIBEXEC 87    /* Attempting to exec a shared library */

Index: winsup/cygwin/errno.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/errno.cc,v
retrieving revision 1.87
diff -u -r1.87 errno.cc
--- winsup/cygwin/errno.cc      3 Dec 2011 21:43:25 -0000       1.87
+++ winsup/cygwin/errno.cc      13 Aug 2012 17:48:44 -0000
@@ -157,6 +157,7 @@
   X (WORKING_SET_QUOTA,                EAGAIN),
   X (WRITE_PROTECT,            EROFS),
   X (PRIVILEGE_NOT_HELD,       EPERM),
+  X (SXS_CANT_GEN_ACTCTX, ELIBBAD),
   { 0, NULL, 0}
 };

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

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2012-08-15  4:23 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-11  0:45 Side-by-side configuration is incorrect reported as permission denied Andrew DeFaria
2012-08-11 10:35 ` Larry Hall (Cygwin)
2012-08-11 17:32   ` Earnie Boyd
2012-08-11 19:23   ` Andrew DeFaria
2012-08-11 19:54     ` Christopher Faylor
2012-08-12  4:24       ` Cliff Hones
2012-08-12  9:07       ` Andrew DeFaria
2012-08-12 12:35   ` Pawel Jasinski
2012-08-12 17:56     ` Christopher Faylor
2012-08-12 19:59       ` Pawel Jasinski
2012-08-12 20:54         ` Earnie Boyd
2012-08-12 21:30           ` Christopher Faylor
2012-08-13  1:05             ` Pawel Jasinski
2012-08-13  8:28               ` Herbert Stocker
2012-08-13 10:05                 ` Corinna Vinschen
2012-08-13 12:51                   ` Herbert Stocker
2012-08-13 13:11                 ` Earnie Boyd
2012-08-13 13:21                   ` Corinna Vinschen
2012-08-13 13:28                     ` Earnie Boyd
2012-08-13 14:32                       ` Corinna Vinschen
2012-08-13 13:51                   ` Cliff Hones
2012-08-13 15:15                 ` Christopher Faylor
2012-08-13  3:49           ` Andrew DeFaria
2012-08-13  8:48             ` Corinna Vinschen
2012-08-13 14:43               ` Andrew DeFaria
2012-08-13 14:59                 ` Corinna Vinschen
2012-08-13 15:01                   ` Andrew DeFaria
2012-08-13 15:22                     ` Corinna Vinschen
2012-08-13 15:40                       ` Andrew DeFaria
2012-08-13 15:33                 ` Christopher Faylor
2012-08-13 16:02                   ` Andrew DeFaria
2012-08-13 16:19                     ` Corinna Vinschen
2012-08-13 17:57                       ` Andrew DeFaria
2012-08-14 21:11                   ` Andrey Repin
2012-08-15  4:23                     ` Christopher Faylor
2012-08-13 18:56 Pawel Jasinski
2012-08-13 19:12 ` Christopher Faylor
2012-08-13 21:49   ` Daniel Colascione
2012-08-14  0:42     ` Pawel Jasinski
2012-08-14  3:12       ` Christopher Faylor
2012-08-14  8:38       ` Eric Blake
2012-08-14  9:16         ` Pawel Jasinski
2012-08-14 15:10           ` Christopher Faylor
2012-08-14 21:37             ` Pawel Jasinski
2012-08-15  5:37               ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).