[torqueusers] pbs_mom eating memory like a maniac
Martin Schafföner
martin.schaffoener at e-technik.uni-magdeburg.de
Mon Nov 14 10:23:04 MST 2005
On Thursday 10 November 2005 23:11, Garrick Staples wrote:
> diff -pruN torque-2.0.0p1_orig/src/resmom/start_exec.c
> torque-2.0.0p1/src/resmom/start_exec.c ---
> torque-2.0.0p1_orig/src/resmom/start_exec.c 2005-11-05 07:39:55.000000000
> -0800 +++ torque-2.0.0p1/src/resmom/start_exec.c 2005-11-10
> 14:04:31.000000000 -0800 @@ -259,6 +259,9 @@ struct passwd *check_pwd(
> return(NULL);
> }
>
> + if (pjob->ji_grpcache != NULL)
> + return (pwdp); /* been there, done that */
> +
> pjob->ji_qs.ji_un.ji_momt.ji_exuid = pwdp->pw_uid;
>
> pjob->ji_grpcache = malloc(sizeof(struct grpcache) +
> strlen(pwdp->pw_dir) + 1);
The patch looks nice, but just for the curious: Where is ji_grpcache
initialized to NULL so that this will definitely work? Can't find any such
initialization...
Regards,
--
Martin Schafföner
Cognitive Systems Group, Institute of Electronics, Signal Processing and
Communication Technologies, Department of Electrical Engineering,
Otto-von-Guericke University Magdeburg
Phone: +49 391 6720063
More information about the torqueusers
mailing list