commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugs #8611] classpath0.08: java.lang.Runtime.loadLibrary : causes Unsat


From: Nikolay Fiykov
Subject: [bugs #8611] classpath0.08: java.lang.Runtime.loadLibrary : causes UnsatisfiedLinkException when VM is intializing
Date: Sun, 18 Apr 2004 11:00:21 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Firebird/0.7

This mail is an automated notification from the bugs tracker
 of the project: classpath.




/**************************************************************************/
[bugs #8611] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8611>
Project: classpath
Submitted by: Nikolay Fiykov
On: Sun 04/18/04 at 15:00

Severity:  5 - Average
Resolution:  None
Assigned to:  None
Status:  Open
Platform Version:  None


Summary:  classpath0.08: java.lang.Runtime.loadLibrary : causes 
UnsatisfiedLinkException when VM is intializing

Original Submission:  Hi,
While dealing with JAMVM I came across an exceptions related problem with 
java.lang.Runtime.loadLibrary.

Issue is that when scanning java.library.path dirs to find the required lib 
"loadLibrary" uses "load". In its turn "load" raise exeception if lib is not 
find.

In case of JAMVM when this exeception hapens during intialization it aborts VM. 
Because of that LD_LIBRARY_PATH is not scanned completely and lib is not 
located at all.

This also could be attributed to JAMVM specifics and probably it is true. Yet, 
I can understand also that VM exception handling may not be that "accurate" 
during VM build-up therefore I'd see it as Classpath issue as well.

Attached is a patch against Runtime.java which overcomes the problem by doing 
exactly what "load" does but without mentioned exception problem.

See sf.net/projects/jamvm:Forums-Help where this issues has been raised too.

-- niki





File Attachments
-------------------

-------------------------------------------------------
Date: Sun 04/18/04 at 15:00  Name: classpath-0.08-loadlibrary.patch  Size: 1KB  
 By: fikin

http://savannah.gnu.org/bugs/download.php?item_id=8611&amp;item_file_id=1201






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8611>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]