statethreads and purify: how to use together?

Claus Assmann <[email protected]> Tue, 29 Oct 2002 14:55:44 -0800
Newsgroups gmane.comp.lib.state-threads.user
Message-ID <[email protected]>
Does anyone know how to use purify for programs that use statethreads?
If I run a program I get this error:

****  Purify instrumented t-st-cond1 (pid 27910)  ****
MSE: Memory segment error:
  * This is occurring while in:
        _p932static    [rtlib.o]
        _p973static    [rtlib.o]
        longjmp        [libc.so.1]
  * Accessing a memory range that crosses a memory segment boundary.
    Addressing 0xfe991ec0 for 19258184 bytes ending at 0xffbefa08,
    beginning in the stack which ends at 0xffbf0000.

****  Purify instrumented t-st-cond1 (pid 27910)  ****
SOF: Stack overflow error:
  * This is occurring while in:
        longjmp        [libc.so.1]
  * Stack pointer 0xfe991ec0, frame size 19258184 bytes

****  Purify instrumented t-st-cond1 (pid 27910)  ****
IPR: Invalid pointer read:
  * This is occurring while in:
        longjmp        [libc.so.1]
  * Reading 4 bytes from 0x130016 between the heap and the stack.

****  Purify instrumented t-st-cond1 (pid 27910)  ****
COR: Fatal core dump:
  * This is occurring while in:
        longjmp        [libc.so.1]
  * Received signal 10 (SIGBUS - Bus Error)
  * Faulting address = 0x130016
  * Signal mask: (SIGBUS) 
  * Pending signals: 


For this small test program I can get around the crash by using
-thread-stack-change=0x2000
but for larger programs this doesn't help (neither does
increasing the value). Has anyone done this before and can
tell me how to solve this problem?



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf