[torqueusers] Re: mom segfault in new diag code

Garrick Staples garrick at usc.edu
Wed Oct 27 19:52:15 MDT 2004


Actually, tlist() seems to be overflowing the buffer too.

On Wed, Oct 27, 2004 at 04:33:35PM -0700, Garrick Staples alleged:
> 
> torque-1.1.0p4-snap.1098121584
> 
> The new momctl diag code is segfaulting in mom_main.c:rm_request().  It seems
> that neither tmpLine or output are large enough.  Specifically the second
> strcat in this code is overflowing output:
> 
>             if (verbositylevel >= 1)
>               {
>               /* display okclient list */
>               
>               tmpLine[0] = '\0';
>                 
>               tlist(okclients,tmpLine,1024);
>               
>               strcat(output,"Trusted Client List:   ");
>               
>               strcat(output,tmpLine);
>               
>               strcat(output,"\n");
>               }
> 
> 
> -- 
> Garrick Staples, Linux/HPCC Administrator
> University of Southern California



-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20041027/a18424ca/attachment.bin


More information about the torqueusers mailing list