harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-1557) [classlib][launcher] wrong checks for required path elements in path
Date Fri, 15 Dec 2006 14:54:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1557?page=all ]

Alexey Petrenko resolved HARMONY-1557.

    Resolution: Fixed

The patch has been applied.
Ivan, please verify.

> [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
>         Assigned To: Alexey Petrenko
>            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


View raw message