You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Mikhail Fursov <mi...@gmail.com> on 2006/09/22 13:33:58 UTC
[drlvm][apr] APR fails to load a JIT library when using a fully qualified path
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
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Alexey Varlamov <al...@gmail.com>.
2006/9/25, Mikhail Fursov <mi...@gmail.com>:
> 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.
>
It would be really nice, projects are convenient for browsing/editing
native sources on Windows. OTOH using them for compilation may be a
concern, just like the one above - someone have to keep them in sync
with common build system.
But I suppose you are not alone in the way you work with MSVC anyway -
so let's try.
+1 from me.
--
Alexey
>
>
> On 9/22/06, Mikhail Fursov <mi...@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
>
>
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Gregory Shimansky <gs...@gmail.com>.
On Monday 25 September 2006 22:38 Mikhail Fursov wrote:
> Ok, I will create a new JIRA issue tomorrow (or even today, it's 2am here:)
> ) and add MSVC projects for some DRLVM components.
BTW absence of up to date VS.NET projects for VM is one of the reasons I don't
use it for development :)
Another one is that VS.NET 2003 sometimes goes into infinite loop in the
source editor.
This is not the case with VS.NET 2005, it also has a better debugger, but
building with it is not possible ATM due to lots of changes introduced by
Microsoft in 8.0. They should be fixed some day.
> On 9/26/06, Gregory Shimansky <gs...@gmail.com> wrote:
> > On Monday 25 September 2006 19:24 Mikhail Fursov wrote:
> > > 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.
> >
> > I think this would be very useful for development on windows. I don't use
> > VS.NET for anything but debugging but then project is useful to find some
> > symbol's definition/declaration and helps the debugger to understand the
> > symbol info.
--
Gregory Shimansky, Intel Middleware Products Division
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Mikhail Fursov <mi...@gmail.com>.
Ok, I will create a new JIRA issue tomorrow (or even today, it's 2am here:)
) and add MSVC projects for some DRLVM components.
On 9/26/06, Gregory Shimansky <gs...@gmail.com> wrote:
>
> On Monday 25 September 2006 19:24 Mikhail Fursov wrote:
> > 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.
>
> I think this would be very useful for development on windows. I don't use
> VS.NET for anything but debugging but then project is useful to find some
> symbol's definition/declaration and helps the debugger to understand the
> symbol info.
>
> +1.
>
> --
> Gregory Shimansky, Intel Middleware Products Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
--
Mikhail Fursov
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
On Sep 26, 2006, at 11:10 AM, Mikhail Fursov wrote:
> On 9/26/06, Geir Magnusson Jr. <ge...@pobox.com> wrote:
>>
>> Just so we're all on the same page...
>>
>> This is understood to be like the various cruft we have around for
>> Eclipse - nice to have for developers but not a supported way to
>> build the project?
>>
>
> Yes, I do not think we should officially support these builds. But
> if a
> developer needs it he could find it in JIRA. Like an officially
> unsupported
> addon. Is it ok?
I think we should put it in SVN too - as long as it doesn't collide
with anything...
geir
>
> --
> Mikhail Fursov
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Mikhail Fursov <mi...@gmail.com>.
On 9/26/06, Geir Magnusson Jr. <ge...@pobox.com> wrote:
>
> Just so we're all on the same page...
>
> This is understood to be like the various cruft we have around for
> Eclipse - nice to have for developers but not a supported way to
> build the project?
>
Yes, I do not think we should officially support these builds. But if a
developer needs it he could find it in JIRA. Like an officially unsupported
addon. Is it ok?
--
Mikhail Fursov
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Mikhail Fursov <mi...@gmail.com>.
On 9/27/06, Mikhail Fursov <mi...@gmail.com> wrote:
>
> If anyone is interested to discuss the details or have something to add I
> propose to use this thread and the same JIRA.
I was wrong when proposed to use this email thread for the discussion. The
subject is not suitable at all. I will start new thread.
--
Mikhail Fursov
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Mikhail Fursov <mi...@gmail.com>.
I put the initial version of MSVC2003 build into JIRA [
http://issues.apache.org/jira/browse/HARMONY-1607 ]
This version contains only Jitrino/EM/Encoder projects and I'm going to add
more modules soon.
If anyone is interested to discuss the details or have something to add I
propose to use this thread and the same JIRA.
On 9/27/06, Geir Magnusson Jr. <ge...@pobox.com> wrote:
>
>
> On Sep 26, 2006, at 1:29 PM, Tim Ellison wrote:
>
> > "the various cruft we have around for Eclipse"
> >
> > 'Cruft' doesn't seem to appear in my copy of the Oxford English
> > Dictionary. I assume it means 'high fidelity development environment
> > artifacts' right? :o)
>
> Exactly. "Cruft" :)
>
> >
> > I'm ok with putting in some VS metadata too.
>
> >
> > Regards,
> > Tim
> >
> >
> > Geir Magnusson Jr. wrote:
> >> Just so we're all on the same page...
> >>
> >> This is understood to be like the various cruft we have around for
> >> Eclipse - nice to have for developers but not a supported way to
> >> build
> >> the project?
> >>
> >> geir
> >>
> >>
> >> On Sep 25, 2006, at 2:14 PM, Gregory Shimansky wrote:
> >>
> >>> On Monday 25 September 2006 19:24 Mikhail Fursov wrote:
> >>>> 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.
> >>>
> >>> I think this would be very useful for development on windows. I
> >>> don't use
> >>> VS.NET for anything but debugging but then project is useful to
> >>> find some
> >>> symbol's definition/declaration and helps the debugger to
> >>> understand the
> >>> symbol info.
> >>>
> >>> +1.
> >>>
> >>> --Gregory Shimansky, Intel Middleware Products Division
> >>>
> >>> --------------------------------------------------------------------
> >>> -
> >>> Terms of use : http://incubator.apache.org/harmony/mailing.html
> >>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> >>> For additional commands, e-mail: harmony-dev-
> >>> help@incubator.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> Terms of use : http://incubator.apache.org/harmony/mailing.html
> >> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> >> For additional commands, e-mail: harmony-dev-
> >> help@incubator.apache.org
> >>
> >>
> >
> > --
> >
> > Tim Ellison (t.p.ellison@gmail.com)
> > IBM Java technology centre, UK.
> >
> > ---------------------------------------------------------------------
> > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
--
Mikhail Fursov
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
On Sep 26, 2006, at 1:29 PM, Tim Ellison wrote:
> "the various cruft we have around for Eclipse"
>
> 'Cruft' doesn't seem to appear in my copy of the Oxford English
> Dictionary. I assume it means 'high fidelity development environment
> artifacts' right? :o)
Exactly. "Cruft" :)
>
> I'm ok with putting in some VS metadata too.
>
> Regards,
> Tim
>
>
> Geir Magnusson Jr. wrote:
>> Just so we're all on the same page...
>>
>> This is understood to be like the various cruft we have around for
>> Eclipse - nice to have for developers but not a supported way to
>> build
>> the project?
>>
>> geir
>>
>>
>> On Sep 25, 2006, at 2:14 PM, Gregory Shimansky wrote:
>>
>>> On Monday 25 September 2006 19:24 Mikhail Fursov wrote:
>>>> 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.
>>>
>>> I think this would be very useful for development on windows. I
>>> don't use
>>> VS.NET for anything but debugging but then project is useful to
>>> find some
>>> symbol's definition/declaration and helps the debugger to
>>> understand the
>>> symbol info.
>>>
>>> +1.
>>>
>>> --Gregory Shimansky, Intel Middleware Products Division
>>>
>>> --------------------------------------------------------------------
>>> -
>>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>>> For additional commands, e-mail: harmony-dev-
>>> help@incubator.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-
>> help@incubator.apache.org
>>
>>
>
> --
>
> Tim Ellison (t.p.ellison@gmail.com)
> IBM Java technology centre, UK.
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [drlvm][apr] APR fails to load a JIT library when using a fully
qualified path
Posted by Tim Ellison <t....@gmail.com>.
"the various cruft we have around for Eclipse"
'Cruft' doesn't seem to appear in my copy of the Oxford English
Dictionary. I assume it means 'high fidelity development environment
artifacts' right? :o)
I'm ok with putting in some VS metadata too.
Regards,
Tim
Geir Magnusson Jr. wrote:
> Just so we're all on the same page...
>
> This is understood to be like the various cruft we have around for
> Eclipse - nice to have for developers but not a supported way to build
> the project?
>
> geir
>
>
> On Sep 25, 2006, at 2:14 PM, Gregory Shimansky wrote:
>
>> On Monday 25 September 2006 19:24 Mikhail Fursov wrote:
>>> 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.
>>
>> I think this would be very useful for development on windows. I don't use
>> VS.NET for anything but debugging but then project is useful to find some
>> symbol's definition/declaration and helps the debugger to understand the
>> symbol info.
>>
>> +1.
>>
>> --Gregory Shimansky, Intel Middleware Products Division
>>
>> ---------------------------------------------------------------------
>> Terms of use : http://incubator.apache.org/harmony/mailing.html
>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>>
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>
--
Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by "Geir Magnusson Jr." <ge...@pobox.com>.
Just so we're all on the same page...
This is understood to be like the various cruft we have around for
Eclipse - nice to have for developers but not a supported way to
build the project?
geir
On Sep 25, 2006, at 2:14 PM, Gregory Shimansky wrote:
> On Monday 25 September 2006 19:24 Mikhail Fursov wrote:
>> 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.
>
> I think this would be very useful for development on windows. I
> don't use
> VS.NET for anything but debugging but then project is useful to
> find some
> symbol's definition/declaration and helps the debugger to
> understand the
> symbol info.
>
> +1.
>
> --
> Gregory Shimansky, Intel Middleware Products Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Gregory Shimansky <gs...@gmail.com>.
On Monday 25 September 2006 19:24 Mikhail Fursov wrote:
> 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.
I think this would be very useful for development on windows. I don't use
VS.NET for anything but debugging but then project is useful to find some
symbol's definition/declaration and helps the debugger to understand the
symbol info.
+1.
--
Gregory Shimansky, Intel Middleware Products Division
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org
Re: [drlvm][apr] APR fails to load a JIT library when using a fully qualified path
Posted by Mikhail Fursov <mi...@gmail.com>.
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 <mi...@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