Bug 981 - grid-proxy-info sometimes hangs.
: grid-proxy-info sometimes hangs.
Status: RESOLVED FIXED
: GSI C
Authentication
: unspecified
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-06-05 01:05 by
Modified: 2008-08-11 15:16 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-06-05 01:05:49
* The contents of Bug

Below the condition, globus-job-run and globus-job-submit sometimes hang.
(about once of five times)

grid-proxy-info module is compiled with "gcc32dbgpthr" flavor.

* The detail of contents

  In my investigation, the globus-job-run executes the grid-proxy-info
  command and the grid-proxy-info hangs sometimes.
  I debugged the grid-proxy-info process using "strace" command and
  noticed that the child process (that were created by grid-proxy-info
  as threads) did not put in order.

  The grid-proxy-info calls globus_module_activate() function
  (that calls pthread_create(3)) two times.
  But it calls globus_module_deactivate() function only once
  for GLOBUS_GSI_PROXY_MODULE.
  Therefore, the child process (that creates pthread_create(3))
  hungs up for waiting from parents process's action.

* Fix method
   Change the source.
   Following is a patch for globus_proxy_utils-0.6/programs/grid_proxy_info.c

--- grid_proxy_info.c.org	Wed Jan 22 07:12:15 2003
+++ grid_proxy_info.c	Thu Jun  5 09:52:24 2003
@@ -607,6 +607,7 @@
     free(issuer);
     free(identity);
 
+    globus_module_deactivate(GLOBUS_OPENSSL_MODULE);
     globus_module_deactivate(GLOBUS_GSI_PROXY_MODULE);
 
     return (is_valid);
------- Comment #1 From 2003-06-05 09:34:29 -------
I've committed your fix to CVS and will put out a update package once I've run
everything through some tests.

Thanks

/Sam
------- Comment #2 From 2003-06-12 15:44:25 -------
Update package now available