harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Volosyuk (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1557) [classlib][launcher] wrong checks for required path elements in path
Date Sat, 23 Sep 2006 10:06:22 GMT
[classlib][launcher] wrong checks for required path elements in path
--------------------------------------------------------------------

                 Key: HARMONY-1557
                 URL: http://issues.apache.org/jira/browse/HARMONY-1557
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Linux, Windows
            Reporter: Ivan Volosyuk
            Priority: Trivial


In launcher implementation: main.c, addDirsToPath() launcher will re-execute itself if not
find required paths in LD_LIBRARY_PATH or PATH.
Required paths look like:
path[0] = /home/ivan/svn/drlvm/trunk/build/deploy/jre/bin/default
path[1] = /home/ivan/svn/drlvm/trunk/build/deploy/jre/bin/

A strstr() library function is used to check the existence of the path element in PATH. The
bug is: giving only the first path element will satisfy the checks, as the second element
of path is just a subset of first one and VM loading will fail:

[ivan@baltica]:~/svn/drlvm/trunk/build $ export LD_LIBRARY_PATH=/home/ivan/svn/drlvm/trunk/build/deploy/jre/bin/default
[ivan@baltica]:~/svn/drlvm/trunk/build $ ./deploy/jre/bin/java Test
java/lang/UnsatisfiedLinkError : Failed loading library "libhyzlib.so": DSO load failed

I'm working on patch.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message