Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

JNI Exits with SIGUSR2

Thread view: 
arunmozhian@gmail.com - 23 Nov 2005 20:01 GMT
Hello,
  I'm trying to debug an issue with a Java program which involves/uses
JNI too !
  In short, I'm not able to isolate the problem (whether the issue is
in Java or JNI!),
  since for any issue all I get is a User Signal 2.
  Sometimes I've had issues in Java which ended in User Signal 2
anyway !

   Any ptrs on when does Java use/throw a User Signal 2 (especially
with JNI) ?
   and how to go about debugging the same will be really helpful.

   Any resources/pointers on JNI debugging will also be helpful ?

Thanks,
Arun
Stefan Schulz - 24 Nov 2005 10:24 GMT
On Wed, 23 Nov 2005 12:01:34 -0800, arunmozhian wrote:

> Hello,
>    I'm trying to debug an issue with a Java program which involves/uses
[quoted text clipped - 10 lines]
>
>     Any resources/pointers on JNI debugging will also be helpful ?

AFAIK, the JDK does not use any system signals it does not provide its own
handlers for. The fact that the signal is raised seems to me like an issue
between the JNI and whatever native libraries used. Take a look at the
crash trace of the java process, and make sure that the signal is not
raised in your (or whatever native libraries you use) code.

Signature

You can't run away forever,
But there's nothing wrong with getting a good head start.
          --- Jim Steinman, "Rock and Roll Dreams Come Through"
         

arunmozhian@gmail.com - 28 Nov 2005 16:22 GMT
There's no crash generated. All that is generated is a User Signal 2.
And I've verified that
my native libs do not handle/raise SIGUSR2. I believe the JVM uses
SIGUSR2 for Garb. coll'n.

-- Arun
Thomas Fritsch - 28 Nov 2005 17:01 GMT
> AFAIK, the JDK does not use any system signals it does not provide its own
> handlers for.
I don't agree here.
The JDK contains some signal-related classes (Signal, SignalHandler,
NativeSignalHandler in package sun.misc) which map pretty straight to
the C-functions raise() and signal(). This fact makes me think that Sun
very well may raise/handle signals somewhere in its Java code.

See also
http://www.google.com/search?q=%22Signal.java%22+%2B%22package+sun.misc%22

Signature

"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.