Solved

C++ program with purify crashes

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

15 Experts available now in Live!

Get 1:1 Help Now