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 / August 2006

Tip: Looking for answers? Try searching our database.

JNI SIGSEGV on AMD64

Thread view: 
rafael@enq.ufrgs.br - 07 Aug 2006 22:43 GMT
Hi All,

I have wrote an JNI interface for a C library. Everything works just
fine in 32bit machines/virtual machines.
Now I'm trying to reproduce the results with the amd64 Sun JVM (on an
amd64 machine). I recompiled the library on the target machine and got
no errors or warnings, but when I run the code I got the following:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x00002aaafb10957e, pid=5819, tid=46912501787360
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C  [libumfpack.so.4+0x6257e]  umfpack_di_free_symbolic+0x1e
#
# An error report file with more information is saved as
hs_err_pid5819.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Should I use special compilation flags for the amd64 version?
Any ideas?

Thank you in advance!
Nigel Wade - 08 Aug 2006 09:47 GMT
> Hi All,
>
[quoted text clipped - 24 lines]
>
> Thank you in advance!

It's most likely that your C library is not 64bit clean.

Check your assumptions regarding the size of C variables, especially pointers,
they might well be wrong.

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

rafael@enq.ufrgs.br - 08 Aug 2006 16:25 GMT
> It's most likely that your C library is not 64bit clean.
>
[quoted text clipped - 6 lines]
> E-mail :    nmw@ion.le.ac.uk
> Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Dear Nigel,

I found the problem, really it has to do with some pointer casts I
made. Actually the implemantation was buggy even on 32bits but the
problem haven't show up.

Thank you!


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



©2008 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.