pcp
[Top] [All Lists]

Re: [pcp] Experimental patch (was Re: mmv pmda: stuff always fails the f

To: Martin Hicks <mort@xxxxxxx>
Subject: Re: [pcp] Experimental patch (was Re: mmv pmda: stuff always fails the first time?)
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sat, 14 Nov 2009 11:35:43 +1100
Cc: Nathan Scott <nscott@xxxxxxxxxx>, pcp@xxxxxxxxxxx
In-reply-to: <20091113135030.GJ5895@xxxxxxxxxxxxxxxxxxxxxxxxx>
References: <1370327498.387811258077480321.JavaMail.root@xxxxxxxxxxxxxxxxxx> <58136227.387901258077641856.JavaMail.root@xxxxxxxxxxxxxxxxxx> <20091113135030.GJ5895@xxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: kenj@xxxxxxxxxxxxxxxx
Martin,

Any chance you can post gendata.sh and mmvtest.pl (or send me copies) so
I can investigate? ... this is certainly in a place where the dynamic
pmns changes were made.

On Fri, 2009-11-13 at 07:50 -0600, Martin Hicks wrote:
> On Fri, Nov 13, 2009 at 01:00:41PM +1100, Nathan Scott wrote:
> > This version fixes a problem in mmv_children(), adds the
> > new syntax into the pmns file, and in general works Much
> > More Betterer when run from pmcd (rather than dbpmda).
> > 
> 
> I didn't have any time to debug, but running my same simple test of
> `./gendata.sh | perl ./mmvtest.pl`
> 
> 0x00007f7d01541210 in strlen () from /lib/libc.so.6
> (gdb) bt
> #0  0x00007f7d01541210 in strlen () from /lib/libc.so.6
> #1  0x00007f7d01828ffe in __pmSendNameList () from /usr/lib/libpcp.so.3
> #2  0x00007f7d01a5904e in __pmdaMainPDU () from /usr/lib/libpcp_pmda.so.3
> #3  0x00007f7d01a590d0 in pmdaMain () from /usr/lib/libpcp_pmda.so.3
> #4  0x0000000000404057 in main (argc=3, argv=0x7fff3971a178) at mmv.c:898
> (gdb)
> 
> > cheers.
> > 
> > ----- "Nathan Scott" <nscott@xxxxxxxxxx> wrote:
> > > ----- "Nathan Scott" <nscott@xxxxxxxxxx> wrote:
> > > > ----- "Martin Hicks" <mort@xxxxxxxx> wrote:
> > > > > ...
> > > > > Is this something wrong with the way I wrote the PMDA, or is this
> > > a
> > > > > bug in the MMV PMDA?
> > > > 
> > > > Its a bug that cannot really be fixed in the current MMV design
> > > > (to do with the way pmdammv and pmcd communicate the namespace
> > > > changes) ... MMV needs to switch to using the all-singing, all-
> > > > dancing dynamic namespace infrastructure to really fix this.
> > > 
> > > Here's a patch which converts pmdammv to use Kens new "dynamic
> > > namespace" interfaces.  It seems to function correctly when I
> > > throw queries at it via dbpmda ... but no testing beyond that
> > > has been done just yet.
> > > 
> > > Lemme know how it goes.  It also implements a DSO MMV, which I
> > > also ran under dbpmda successfully.  Both these binaries should
> > > no longer have the annoying-spurious-errors feature.
> > 
> > -- 
> > Nathan
> 
> 
> > _______________________________________________
> > pcp mailing list
> > pcp@xxxxxxxxxxx
> > http://oss.sgi.com/mailman/listinfo/pcp
> 


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