[GE issues] [Issue 2960] New - qconf -m* reports misleading error if temp directory is not writeable for the user and needs 100% cpu

crei crei at sun.com
Thu Mar 19 15:40:32 GMT 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=2960
                 Issue #|2960
                 Summary|qconf -m* reports misleading error if temp directory i
                        |s not writeable for the user and needs 100% cpu
               Component|gridengine
                 Version|6.2u2
                Platform|Sun
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|clients
             Assigned to|roland
             Reported by|crei






------- Additional comments from crei at sunsource.net Thu Mar 19 08:40:29 -0700 2009 -------
Doing a e.g. qconf -mc might fail if user has not the permissions to write
into the (configured) tmp directory:

And the qconf clients consumes up to 100% CPU time!

The error might happen in spawn_file() (module sge_tmpnam.c) called from
sge_tmpnam(). I think the for loop should stop if no file can be written
into the directory:

for (i = 0; i < trails; val += DELTA, i++) {
      unsigned long v = val;

      for (j = 0; j < SUFFIX_LEN; v /= POOL_SIZE, j++) {
         sge_dstring_append_char(&s, pool[v % POOL_SIZE]);
      }

      sge_dstring_append_dstring(aBuffer, &s);
      fd = SGE_OPEN3(sge_dstring_get_string(aBuffer), O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
      if (fd >= 0) {
         close(fd);
         break;
      }
      sge_dstring_clear(&s); /* no luck, need another name */
   }
Error is (truss):
open(AFILENAME, O_RDWR|O_CREAT|O_EXCL, 0600) Err#78 ENAMETOOLONG

See also:

http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=135181

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=136635

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list