Solved

C++ program with purify crashes

Posted on 2010-09-17
2
449 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

896 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now