[torquedev] patch: prevent IRIX pbs_mom from segfaulting in find_resc_def

Garrick Staples garrick at clusterresources.com
Fri Feb 16 09:49:33 MST 2007

On Fri, Feb 16, 2007 at 11:48:59AM -0500, Toni L. Harbaugh-Blackford [Contr] alleged:
> In torque-2.2.0-snap.200611291634, the IRIX build of pbs_mom segfaults at line
> 6247 of mom_main.c:
>    rdcput = find_resc_def(svr_resc_def,"cput",svr_resc_size);
> because svr_resc_def is still NULL at that point.  It is not
> initialized until a few lines later at the call to init_resc_defs().
> Here is a little patch that moves the call to init_resc_defs()
> just ahead of the "#if MOM_CHECKPOINT == 1" line.

Just trunk?  2.1.x is fine?

Did you happen to check the other arches?

More information about the torquedev mailing list