harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Date Mon, 25 Sep 2006 15:24:38 GMT
I spent a couple of hours today investigating this bug.
The result is: this is not a bug, this is the problem of the MSVC project
file I use to build and to debug JIT. So it was my error.

BTW: if anyone is interested to use MSVC project files to build JIT or other
components of DRLVM I can put them into JIRA and support these files in the
nearest future.

On 9/22/06, Mikhail Fursov <mike.fursov@gmail.com> wrote:
> APR gurus!
> I have a question I can't answer by myself.
> Usually to develop and test new JIT features I use custom EM configuration
> file to move problem methods to a separate JIT instance.
> Now I can't use this feature, because APR is unable to load a JIT library
> with a fully specied path.
> So the problem is:
> 1) I ask EM to use custom JIT library:
> C:/users/mfursov/harmony_trace2/drlvm/trunk/vm/jitrino/bin/debug/jitrino.dll
> 2) EM asks VM (APR) to load this module
> 3) In dso.c, line 77 I see that 'wpath' variable is valid, but
> LoadLibraryExW is failed.
> The error message is : Failure to open JIT dll file://C:/users/mfursov/harmony_trace2/drlvm/trunk/vm/jitrino/bin/debug/jitrino.dll720126
> I know that there is nothing wrong with my DLL because if I copy it to the
> default jitrino.dll location and do not use any paths everything works
> fine.
> The simplest way to reproduce the bug is to use -Dem.jitPath= <path to
> jitrino.dll> option.
> Once  <path to jitrino.dll> is just 'jitrino.dll' APR loads DLL, but if
> you change it to the full path to the same dll, APR fails to load it.
> ?
> --
> Mikhail Fursov

Mikhail Fursov

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message