You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Oliver Deakin <ol...@googlemail.com> on 2008/01/03 17:57:37 UTC
[classlib][lancher] Crash with J9 on Windows
Im currently seeing a crash running anything on classlib+J9 under
Windows (I havn't tried Linux). If I revert the patch applied to
luniglob.c at revision r607409 the issue is fixed. Is anyone else seeing
this?
Regards,
Oliver
--
Oliver Deakin
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Re: [classlib][launcher] Crash with J9 on Windows
Posted by Oliver Deakin <ol...@googlemail.com>.
Thanks Tim - committed at r608843.
Tim Ellison wrote:
> Oliver Deakin wrote:
>> Thanks for checking that Sian!
>>
>> The issue seems to be that the GetSystemProperty() call on J9 returns
>> a 0 length string when the bootclasspath property is not set. For
>> some reason when this gets concatenated to the rest of the
>> bootclasspath properties J9 cannot parse it properly (Im yet to
>> understand why as the property looks ok once the concatenation is
>> done) and falls over.
>
> Strange.
>
>> A simple fix could be something like [1]. Does anyone object to me
>> applying this patch just to get J9 working again immediately? I
>> assume this doesn't break DRLVM?
>
> I can't see that it would, so why not go ahead and commit the fix.
> People are free to discuss alternatives as they catch-up.
>
> Regards,
> Tim
>
>
--
Oliver Deakin
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Re: [classlib][launcher] Crash with J9 on Windows
Posted by Tim Ellison <t....@gmail.com>.
Oliver Deakin wrote:
> Thanks for checking that Sian!
>
> The issue seems to be that the GetSystemProperty() call on J9 returns a
> 0 length string when the bootclasspath property is not set. For some
> reason when this gets concatenated to the rest of the bootclasspath
> properties J9 cannot parse it properly (Im yet to understand why as the
> property looks ok once the concatenation is done) and falls over.
Strange.
> A simple fix could be something like [1]. Does anyone object to me
> applying this patch just to get J9 working again immediately? I assume
> this doesn't break DRLVM?
I can't see that it would, so why not go ahead and commit the fix.
People are free to discuss alternatives as they catch-up.
Regards,
Tim
Re: [classlib][launcher] Crash with J9 on Windows
Posted by Oliver Deakin <ol...@googlemail.com>.
Thanks for checking that Sian!
The issue seems to be that the GetSystemProperty() call on J9 returns a
0 length string when the bootclasspath property is not set. For some
reason when this gets concatenated to the rest of the bootclasspath
properties J9 cannot parse it properly (Im yet to understand why as the
property looks ok once the concatenation is done) and falls over.
A simple fix could be something like [1]. Does anyone object to me
applying this patch just to get J9 working again immediately? I assume
this doesn't break DRLVM?
Regards,
Oliver
[1]
Index: luniglob.c
===================================================================
--- luniglob.c (revision 608423)
+++ luniglob.c (working copy)
@@ -358,7 +358,7 @@
if (tokensScanned == 1)
{
char *oldPath = bootstrapClassPath;
- if (!oldPath) {
+ if ((!oldPath) || (strlen(bootstrapClassPath) == 0)) {
bootstrapClassPath = str_concat (PORTLIB,
bootDirectory, props[i].value, NULL);
} else {
Sian January wrote:
> Hi Oliver,
>
> I'm seeing this on Windows too with J9, but not with DRLVM. I get the
> following error on the command line:
>
> Unhandled exception
> Type=Segmentation error vmState=0x0005ffff
>
> Regards,
>
> Sian
>
>
> On 03/01/2008, Oliver Deakin <ol...@googlemail.com> wrote:
>
>> Im currently seeing a crash running anything on classlib+J9 under
>> Windows (I havn't tried Linux). If I revert the patch applied to
>> luniglob.c at revision r607409 the issue is fixed. Is anyone else seeing
>> this?
>>
>> Regards,
>> Oliver
>>
>> --
>> Oliver Deakin
>> Unless stated otherwise above:
>> IBM United Kingdom Limited - Registered in England and Wales with number
>> 741598.
>> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>>
>>
>>
>
>
>
--
Oliver Deakin
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Re: [classlib][lancher] Crash with J9 on Windows
Posted by Sian January <si...@googlemail.com>.
Hi Oliver,
I'm seeing this on Windows too with J9, but not with DRLVM. I get the
following error on the command line:
Unhandled exception
Type=Segmentation error vmState=0x0005ffff
Regards,
Sian
On 03/01/2008, Oliver Deakin <ol...@googlemail.com> wrote:
>
> Im currently seeing a crash running anything on classlib+J9 under
> Windows (I havn't tried Linux). If I revert the patch applied to
> luniglob.c at revision r607409 the issue is fixed. Is anyone else seeing
> this?
>
> Regards,
> Oliver
>
> --
> Oliver Deakin
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>
>
--
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU