Solved

C++ program with purify crashes

Posted on 2010-09-17
2
453 Views
Last Modified: 2012-05-10
Hi,

I am running a C++ program which uses JNI. It works fine on a normal run.

When I compile with purify option, somewhere along the way (maybe when it makes the JNI call) it crashes.

Is this a known problem? I need to use purify so that I can check for leaks.

My Env :

Linux SuSe10
g++ 4.4.3 compiler
PurifyPlus.7.0.1.0-000.M
JVM_OPTIONS: -Xms128m -Xmx1024m

If anyone has faced this, help is appreciated.

Thanks,
0
Comment
Question by:shykumar
2 Comments
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 33705775
The JNI code will not be instrumented, which could be your problem (all the dynamic libraries required for initial program load will be IIRC). I would verify where the crash occurs by debugging with gdb before proceeding much further.
A possibility might be to write a stub for JNI - after all you don't want to verify the Java Run Machine, only you C++ program.
0
 

Author Closing Comment

by:shykumar
ID: 33876405
Did not meet my requirements
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question