Bugzilla – Bug 5091
Incomplete jobmanager contact string crashes gram client
Last modified: 2007-03-15 12:18:59
You need to log in before you can comment on or make changes to this bug.
If you call a gram client library function with a jobmanager contact string that doesn't have a path, the library segfaults. The problem is in globus_gram_protocol_frame_request(), which assumes that if globus_url_parse() returns GLOBUS_SUCCESS, then globus_url_t.url_path will be non-NULL. That's not true for URLs like https://gate02.grid.umich.edu:40041. You can reproduce this using globusrun: globusrun -status https://foo.edu:40041 This problem is currently affecting Condor-G. A rare bug in Condor-G causes some jobmanager contact strings to be truncated. When this bug occurs, the gram bug described here exacerbates the problem. We are working on finding the Condor-G bug, but it's tricky to track down.
Created an attachment (id=1206) [details] Patch to GRAM Client / Protocol libraries Attaching a patch which avoids the crash and returns an invalid contact error when the contact URL does not contain a path. joe
I applied the patch and the crashes ceased. Now, the functions return gram error 80 as expected.
Fix applied to 4.0 branch and trunk.