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] Updated: (HARMONY-1557) [classlib][launcher] wrong checks for required path elements in path
Date Sat, 23 Sep 2006 10:54:24 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1557?page=all ]

Ivan Volosyuk updated HARMONY-1557:
-----------------------------------

    Attachment: path_check_fix.diff

Fix attached.

> [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
>         Attachments: path_check_fix.diff
>
>
> 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