How do I use purify with xerces?

  My environment is:
    uname -a: SunOS benz 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-4
    g++ 2.95.2
    Purify 5.2 Solaris 2 (32-bit),
    xerces-c-1.5.1


  I've run into a difficult to reproduce bug in my code and
am trying to run Purify on it to make sure it isn't memory
corruption.

  If I run my program it sometimes bombs. If I purify my
executable and then run it, it always bombs, but in a different
place. So I backtracked and tried to purify something simple.

  The following is the code:


#include <util/PlatformUtils.hpp>
int main ( void )
{
  XMLPlatformUtils::Initialize();
  return 0;
}


  When I run purify on that I get the following:
> ****  Purify instrumented m2 (pid 15693)  ****
> IPR: Invalid pointer read:
>   * This is occurring while in:
>         ENameMapFor<XMLChTranscoder>::ENameMapFor<XMLChTranscoder>(const unsigned 
>short*) [TransENameMap.hpp:104]
>         XMLTransService::initTransService() [TransService.cpp:293]
>         XMLPlatformUtils::Initialize() [libxerces-c1_5_1.so]
>         main           [cckpqliE.o]
>         _start         [crt1.o]
>   * Reading 4 bytes from 0xff297818 between the heap and the stack.
>
> ****  Purify instrumented m2 (pid 15693)  ****
> COR: Fatal core dump:
>   * This is occurring while in:
>         ENameMapFor<XMLChTranscoder>::ENameMapFor<XMLChTranscoder>(const unsigned 
>short*) [TransENameMap.hpp:104]
>         XMLTransService::initTransService() [TransService.cpp:293]
>         XMLPlatformUtils::Initialize() [libxerces-c1_5_1.so]
>         main           [cckpqliE.o]
>         _start         [crt1.o]
>   * Received signal 11 (SIGSEGV - Segmentation Fault)
>   * Faulting address = 0xff297818
>   * Signal mask: (SIGSEGV)
>   * Pending signals:
> Segmentation fault (core dumped)


  This is the same location specified in a similar question
to the list over a year ago!
http://marc.theaimsgroup.com/?l=xerces-c-dev&m=97006372001350&w=2

  How do I use purify with xerces?

  Thanks,
  Dee Jay

+-----------------------------+------------------+-----------------------+
| Founding Partner            | Software Engineer| Dee Jay Randall, B.Sc.|
| Circular Reasoning          | Accrue Software  | M.Sc. Student, CS     |
| [EMAIL PROTECTED]| www.accrue.com   | ICQ # 43551676        |
+-----------------------------+------------------+-----------------------+
What is the average rank of every song ever written? 42  -- www.launch.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to