Another good tip is to set in the env:

export GLOBUS_ERROR_OUTPUT=1

then run "globusrun-ws".

This will send to stout a lot of log

you can also edit the file: "container-log4j.properties" in GLOBUSDIR root
directory, and uncomment "log4j.category.org.globus.exec=DEBUG", then if you
restart container it will show you a lot lot of debug info.

I attach to you the patch, please backup the old file before do any
modification.


Good Luck,


-- 
Rodolfo E. Edelmann
Lab. Computación
Fac. Cs. Ex.Fis y Nat.
Univ.Nac.Córdoba
--- seg_sge_module.c	Thu Dec 20 10:07:37 2007
+++ /export/home/lithium/seg_sge_module.c	Wed Dec 19 14:53:50 2007
@@ -7,7 +7,7 @@
 
 /* This #define is needed for the correct operation of the GLIBC strptime 
  * function. */
-#define _XOPEN_SOURCE 1
+//#define _XOPEN_SOURCE 1
 
 
 #include "globus_common.h"
@@ -659,8 +659,9 @@
 {
     char *                              eol;
     char *                              rp;
-    struct tm                           tm;
+    struct tm                           *tm;
     time_t                              stamp;
+    time_t                              sec;
     char **                             fields = NULL;
     size_t                              nfields;
     time_t                              when;
@@ -714,9 +715,12 @@
 
 	/* Extract the timestamp from the first field. */
 	/* (rp is a pointer to the symbol immediately following the timestamp.) */
-	rp = strptime(fields[0],"%s", &tm);
+	sec = strtol(fields[0], NULL, 10);
+	tm = localtime(&sec);
+	//rp = strptime(fields[0],"%s", &tm);
 
-	if (rp == NULL || (*rp) != '\0')
+	//if (rp == NULL || (*rp) != '\0') 
+	if (tm == NULL ) 
 	{
 	    SEG_SGE_DEBUG(SEG_SGE_DEBUG_WARN,
 		    ("Unable to extract timestamp from first field in line '%s'\n",
@@ -723,7 +727,7 @@
 		     state->buffer + state->buffer_point));
 	    goto free_fields;
 	}
-	stamp = mktime(&tm);
+	stamp = mktime(tm);
 	if (stamp == -1)
 	{
 	    SEG_SGE_DEBUG(SEG_SGE_DEBUG_WARN,

Reply via email to