Jeremy Friesner (jaf++at++chem.ucsd.edu)
Tue, 20 Aug 1996 18:45:49 -0700 (PDT)
I'm having trouble getting the method pfNode::bufferClone(int,pfBuffer *)
to work--every time I call it, it causes the DBASE process to crash.
I've simplified my program down to a very simple case, which still
crashes; perhaps someone can tell me what I'm doing wrong?
Here is the test case: In the DBASE process initialization
callback, I create two pfBuffers. I create a pfNode
in one, and attempt to bufferClone() it to the other one. It
crashes during the bufferClone() call...
// ***************************************************************************
// void InitDBaseFunc(int pipe, uint stage)
// ***************************************************************************
void InitDBaseProcess(int, uint)
{
pfBuffer * test = new pfBuffer;
pfBuffer * newBuffer = new pfBuffer;
test->select();
pfGroup * node = new pfDCS;
newBuffer->select();
(void)node->bufferClone(0,test); // crash!!
// (return value of bufferClone() not used, since we never get here)
}
The same thing happens when I try to call bufferClone()
from the DbaseFunc callback.
Here is the stack trace from dbx:
(dbx) where
> 0 pfNode::nb_clone(int)(0x0, 0x0, 0x181c6a70, 0x5e6b5254)
["../../../lib/libpf/pfNode.C":1253, 0x5d74acf0]
1 pfNode::nb_bufferClone(int,pfBuffer*)(0x0, 0x0, 0x181c6a70,
0x5e6b5254) ["../../../lib/libpf/pfNode.C":1260, 0x5d74ad20]
2 InitDBaseProcess(int,unsigned int)(0xffffffff, 0x10, 0x181c6a70,
0x5e6b5254) ["dbase.cc":30, 0x42b6dc]
3 configStage(int,unsigned int)(0x0, 0x0, 0x181c6a70, 0x18077268)
["../../../lib/libpf/pfProcess.C":1055, 0x5d6f3390]
4 mpDBase(void)(0x0, 0x0, 0x181c6a70, 0x5e6b5254)
["../../../lib/libpf/pfProcess.C":3088, 0x5d79da1c]
5 pfConfig(0x0, 0x18040a10, 0x1, 0x5e6b5254)
["../../../lib/libpf/pfProcess.C":1705, 0x5d72a99c]
6 main(0x2, 0x7fff2ee4, 0x181c6a70, 0x5e6b5254) ["main.cc":76,
0x432458]
7 __istart() ["crt1tinit.s":13, 0x422dfc]
I'm running Performer 2.0 under Irix 6.1 on a 4xR8000 Onyx.
Can anyone tell me what is going wrong?
Thanks,
Jeremy
jaf++at++chem.ucsd.edu
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:23 PDT