[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

C++ program with purify crashes

Posted on 2010-09-17
2
Medium Priority
?
463 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 35

Accepted Solution

by:
Duncan Roe earned 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

650 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