Solved

C++ program with purify crashes

Posted on 2010-09-17
2
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

691 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