pcp
[Top] [All Lists]

pcp-2.1.1/src/pmdas/linux/pmda.c bug

To: pcp@xxxxxxxxxxx
Subject: pcp-2.1.1/src/pmdas/linux/pmda.c bug
From: "Dale F. Brantly" <dale.brantly@xxxxxxx>
Date: Thu, 03 Feb 2000 13:59:00 -0500
Organization: Silicon Graphics Incorporated
Sender: owner-pcp@xxxxxxxxxxx
Found the following bug on linuxppc (redhat 6.0) when running
pminfo -fmdt. The pmcd daemon would core dump with a signal 11.

diff pmda.c.orig pmda.c

1858c1858
<               if ((_pm_getfield(entry->stat_buf, idp->item)) == NULL)
---
>               if ((f = _pm_getfield(entry->stat_buf, idp->item)) ==
NULL)


Since 'f' wasn't being set via _pm_getfield it caused scanf to die.



--
Dale Brantly                    email: dale.brantly@xxxxxxx
System Support Analyst          Phone: (770)631-2231
SGI                             FAX:   (770)631-2224
Peachtree City, GA              VNET:  828-2231




<Prev in Thread] Current Thread [Next in Thread>