pcp
[Top] [All Lists]

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

To: "Dale F. Brantly" <dale.brantly@xxxxxxx>, pcp@xxxxxxxxxxx
Subject: Re: pcp-2.1.1/src/pmdas/linux/pmda.c bug
From: markgw@xxxxxxxxxxxxxxxxxxxxxxxxx (Mark Goodwin)
Date: Fri, 4 Feb 2000 12:48:29 -0500
In-reply-to: "Dale F. Brantly" <dale.brantly@sgi.com> "pcp-2.1.1/src/pmdas/linux/pmda.c bug" (Feb 3, 13:59)
References: <3899CFF4.69EB68DE@sgi.com>
Reply-to: markgw@xxxxxxx
Sender: owner-pcp@xxxxxxxxxxx
On Feb 3, 13:59, Dale F. Brantly wrote:
> Subject: pcp-2.1.1/src/pmdas/linux/pmda.c bug
>
> 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.
>

thanks, that is indeed a bug and amazing it doesn't cause the i386 version
to fault. I'll roll your change into the 2.1.4 tree.

Did you have any other trouble building/running the RPM on linuxppc?
If possible, I'd like to send you the current 2.1.4 SRPM for
you to build and test on linuxppc. We also have a linuxalpha RPM too.

thanks
    -- Mark

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