Javier Taibo (jtaibo++at++udc.es)
Fri, 03 Sep 1999 10:27:10 +0200
I am tracing some bugs in a Performer app and I have found some weird
things
First of all, Purify detects two errors in the pfInit() call. I
isolated these errors
writing a simple program prueba.C
---------------------------------------
#include <Performer/pf.h>
int main()
{
pfInit();
pfExit();
return(0);
}
---------------------------------------
and compiling with
$ purify CC -o prueba.pure prueba.C -lpf_ogl
Purify detects the following errors:
---------------------------------------
Purify instrumented prueba.pure (pid 9497 at Thu Sep 2 14:09:40
1999)
UMR: Uninitialized memory read
This is occurring while in:
strncmp [strings.c:586]
GetBoardInfo [kon_context.c:113]
glXMakeCurrentReadSGI [glx_ext.c:1788]
glXMakeCurrent [glx_ext.c:1893]
pfWindow::pr_openNewNoPort(int) [pfWindow.C:5168]
pfWindow::pr_openNewNoPortNoGfxType(const char*,int)
[pfWindow.C:2378]
Reading 4 bytes from 0x7fff2190 on the stack.
Address 0x7fff2190 is 0 bytes above stack pointer in function
GetBoardInfo.
MSE: Memory segment error
This is occurring while in:
__glSoftResetContext [so_context.c:314]
MakeCurrentRead [kon_context.c:711]
glXMakeCurrentReadSGI [glx_ext.c:1788]
glXMakeCurrent [glx_ext.c:1893]
pfWindow::pr_openNewNoPort(int) [pfWindow.C:5168]
pfWindow::pr_openNewNoPortNoGfxType(const char*,int)
[pfWindow.C:2378]
Accessing a memory range that crosses a memory segment boundary.
Addressing 0xfbdc418 for 4 bytes ending at 0xfbdc41c,
which is neither in the heap nor the main stack.
---------------------------------------
This are the very first errors that happen in our application. After
that, things get
worse. It seems to be a chain reaction of corrupted memory. The symptoms
are
very random. One quite surprising is when sometimes int the statistics
instead of
30.0/30.0Hz it writes other numbers, 27.7...
What can be the source of the problem? Isn't Purify working right
with Performer? Is there any incompatibility between libraries? Any
patch that
must be applied?
I am using IRIX 6.5.3, Performer 2.2.4 and Purify 4.1 and an
Onyx2 Reality.
Any help would be very appreciated,
--
Javier Taibo
videaLAB - E.T.S.I.C.C.P. http://videalab.udc.es
Universidade da Coruņa e-mail: jtaibo++at++udc.es
This archive was generated by hypermail 2.0b2 on Fri Sep 03 1999 - 01:27:43 PDT