You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2006/03/02 16:58:40 UTC

[jira] Commented: (HARMONY-116) strange exec behaviour with harmony vme/classlib

    [ http://issues.apache.org/jira/browse/HARMONY-116?page=comments#action_12368528 ] 

Mark Hindess commented on HARMONY-116:
--------------------------------------

Looks good.  The build now completes with the Eclipse compiler.


> strange exec behaviour with harmony vme/classlib
> ------------------------------------------------
>
>          Key: HARMONY-116
>          URL: http://issues.apache.org/jira/browse/HARMONY-116
>      Project: Harmony
>         Type: Bug
>  Environment: Linux, VME v1, classlib r379730
>     Reporter: Mark Hindess
>     Assignee: Tim Ellison
>  Attachments: ExecWithEnvTest.java, exec-path-broken.tar.gz, exec.fix.diff
>
> I'm seeing very odd behaviour from ant exec tasks that set environment variables - such as the one in the security natives.  The exec is failing with failed to execute command.  Worse still if I create a matching executable in the basedir then that gets executed even if basedir is not in the path.  This would be a potential security problem in other situations.  I'll attach a test case shortly.

-- 
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


Re: running builds on classlib

Posted by Tim Ellison <t....@gmail.com>.
Mark Hindess wrote:
> On 02/03/06, Tim Ellison <t....@gmail.com> wrote:
>> Mark Hindess wrote:
<snip>
>>>   1) Build with IBM jdk.
>>>   2) Build with the resulting Harmony classlib + eclipse compiler + IBM VME
>> Why not just build using the latest classlib snapshot?  What does (1)
>> get you?   (mmm, dog food).
> 
> 1) is doing what most people coming to the project will try first so
> it's nice if it works.
> 2) is dog food.
> 
> Granted it's unlikely that we'd break 1 without breaking 2 but
> diversity never a bad thing IMHO.

Fair comment.  I agree we should support those legacy systems too ;-)

Regards
Tim

>>> which might break things more often....
>> You're all a bunch of pessimists at the moment ;-)
> 
> What do you mean at the moment? ;-)
> 
> Regards,
>  Mark.
> 
> --
> Mark Hindess <ma...@googlemail.com>
> IBM Java Technology Centre, UK.
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Re: running builds on classlib (was: Re: [jira] Commented: (HARMONY-116) strange exec behaviour with harmony vme/classlib)

Posted by Mark Hindess <ma...@googlemail.com>.
On 02/03/06, Tim Ellison <t....@gmail.com> wrote:
>
> Mark Hindess wrote:
> >
> > On 02/03/06, Tim Ellison <t....@gmail.com> wrote:
> >>> The build now completes with the Eclipse compiler.
> >> Great, so are the classlib builds now running on the classlib code +
> >> eclipse compiler + IBM VME?
> >
> > Yes!  So now I'm hoping to change our internal builds to:
>
> So that's ant & the eclipse compiler running on Harmony classlib, but
> presumably continuum itself is still running on a 'regular' jdk?

At the moment, but I'm planning to try continuum on Harmony + IBM VME
again tomorrow.  It was previously failing with an error that looked
very much like another instance of this exec problem.

> >   1) Build with IBM jdk.
> >   2) Build with the resulting Harmony classlib + eclipse compiler + IBM VME
>
> Why not just build using the latest classlib snapshot?  What does (1)
> get you?   (mmm, dog food).

1) is doing what most people coming to the project will try first so
it's nice if it works.
2) is dog food.

Granted it's unlikely that we'd break 1 without breaking 2 but
diversity never a bad thing IMHO.

> > which might break things more often....
>
> You're all a bunch of pessimists at the moment ;-)

What do you mean at the moment? ;-)

Regards,
 Mark.

--
Mark Hindess <ma...@googlemail.com>
IBM Java Technology Centre, UK.

running builds on classlib (was: Re: [jira] Commented: (HARMONY-116) strange exec behaviour with harmony vme/classlib)

Posted by Tim Ellison <t....@gmail.com>.
Mark Hindess wrote:
> On 02/03/06, Tim Ellison <t....@gmail.com> wrote:
>>> The build now completes with the Eclipse compiler.
>> Great, so are the classlib builds now running on the classlib code +
>> eclipse compiler + IBM VME?
> 
> Yes!  So now I'm hoping to change our internal builds to:

So that's ant & the eclipse compiler running on Harmony classlib, but
presumably continuum itself is still running on a 'regular' jdk?

>   1) Build with IBM jdk.
>   2) Build with the resulting Harmony classlib + eclipse compiler + IBM VME

Why not just build using the latest classlib snapshot?  What does (1)
get you?   (mmm, dog food).

> which might break things more often....

You're all a bunch of pessimists at the moment ;-)

Regards,
Tim

> Regards,
>  Mark
> 
> --
> Mark Hindess <ma...@googlemail.com>
> IBM Java Technology Centre, UK.
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Re: [jira] Commented: (HARMONY-116) strange exec behaviour with harmony vme/classlib

Posted by Mark Hindess <ma...@googlemail.com>.
On 02/03/06, Tim Ellison <t....@gmail.com> wrote:
> > The build now completes with the Eclipse compiler.
>
> Great, so are the classlib builds now running on the classlib code +
> eclipse compiler + IBM VME?

Yes!  So now I'm hoping to change our internal builds to:

  1) Build with IBM jdk.
  2) Build with the resulting Harmony classlib + eclipse compiler + IBM VME

which might break things more often....

Regards,
 Mark

--
Mark Hindess <ma...@googlemail.com>
IBM Java Technology Centre, UK.

Re: [jira] Commented: (HARMONY-116) strange exec behaviour with harmony vme/classlib

Posted by Tim Ellison <t....@gmail.com>.
> The build now completes with the Eclipse compiler.

Great, so are the classlib builds now running on the classlib code +
eclipse compiler + IBM VME?

Regards,
Tim



Mark Hindess (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/HARMONY-116?page=comments#action_12368528 ] 
> 
> Mark Hindess commented on HARMONY-116:
> --------------------------------------
> 
> Looks good.  The build now completes with the Eclipse compiler.
> 
> 
>> strange exec behaviour with harmony vme/classlib
>> ------------------------------------------------
>>
>>          Key: HARMONY-116
>>          URL: http://issues.apache.org/jira/browse/HARMONY-116
>>      Project: Harmony
>>         Type: Bug
>>  Environment: Linux, VME v1, classlib r379730
>>     Reporter: Mark Hindess
>>     Assignee: Tim Ellison
>>  Attachments: ExecWithEnvTest.java, exec-path-broken.tar.gz, exec.fix.diff
>>
>> I'm seeing very odd behaviour from ant exec tasks that set environment variables - such as the one in the security natives.  The exec is failing with failed to execute command.  Worse still if I create a matching executable in the basedir then that gets executed even if basedir is not in the path.  This would be a potential security problem in other situations.  I'll attach a test case shortly.
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.