You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Rob Oxspring <ro...@imapmail.org> on 2006/01/27 13:38:15 UTC

and exit code 128

Hi,

I've been having problems with the signjar task occasionally failing 
with "exec returned: 128" for a long time now.  The problem isn't always 
reproducible and often disappears by simply cleaning the build area and 
starting again; sometimes this technique doesn't work though.

I checked the jarsigner sources and they simply have exit codes of 0 and 
1 to indicate success and failure, so jarsigner is presumably not to 
blame.  From a little googling it looks like this might be a cmd.exe 
issue as there is a generic Windows error message associated with 128 
that seems relevant:

   C:\>net helpmsg 128

   There are no child processes to wait for.

I'm guessing this means that the jarsigner.exe is completing really 
quickly, although I suppose it could mean that it wasn't launched at 
all.  I'd really like to get this problem solved as it would make our 
build server that bit more reliable.

Has anyone else seen this sort of thing happening before? any 
recommended solutions? do I just add an ignoreexitcode128 attribute to 
the signjar/exectask?

Thanks in advance,

Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: and exit code 128

Posted by Steve Loughran <st...@apache.org>.
Rob Oxspring wrote:

> 
> I've been looking into this some more and it turns out that our 
> development boxes very rarely suffer this problem while the build server 
> is the only one that sometimes does... I suspect this is due to the 
> build server having twin processors.  To test this I've set the 
> processor affinity to make the builds use one processor only and things 
> seem to be working out.  It'd be great if there were a solution that'd 
> let us use both processors but I'll have to ponder that for a while.
> 

My work box is two-core xeon w/ hyperthread turned on. So it usually 
finds thread bugs fast, even if the pentium m laptop compiles javac faster.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: and exit code 128

Posted by Rob Oxspring <ro...@imapmail.org>.
Steve Loughran wrote:
> Rob Oxspring wrote:
>> Hi,
>>
>> I've been having problems with the signjar task occasionally failing 
>> with "exec returned: 128" for a long time now.  The problem isn't 
>> always reproducible and often disappears by simply cleaning the build 
>> area and starting again; sometimes this technique doesn't work though.
>>
>> I checked the jarsigner sources and they simply have exit codes of 0 
>> and 1 to indicate success and failure, so jarsigner is presumably not 
>> to blame.  From a little googling it looks like this might be a 
>> cmd.exe issue as there is a generic Windows error message associated 
>> with 128 that seems relevant:
>>
>>   C:\>net helpmsg 128
>>
>>   There are no child processes to wait for.
>>
>> I'm guessing this means that the jarsigner.exe is completing really 
>> quickly, although I suppose it could mean that it wasn't launched at 
>> all.  I'd really like to get this problem solved as it would make our 
>> build server that bit more reliable.
>>
>> Has anyone else seen this sort of thing happening before? any 
>> recommended solutions? do I just add an ignoreexitcode128 attribute to 
>> the signjar/exectask?
> 
> Not seen this, and we do a lot of signing; it may depend on jar size. 
> Now, sometimes java runtimes return funny numbers, so, say HPUX returns 
> 255 instead of -1. But that is an OS issue, which we would have 
> encountered on windows before...
> 

I've been looking into this some more and it turns out that our 
development boxes very rarely suffer this problem while the build server 
is the only one that sometimes does... I suspect this is due to the 
build server having twin processors.  To test this I've set the 
processor affinity to make the builds use one processor only and things 
seem to be working out.  It'd be great if there were a solution that'd 
let us use both processors but I'll have to ponder that for a while.

Thanks for you time,

Rob

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Link to Ant exam

Posted by John Rizzo <Jo...@loop.be>.
Hi Ant developpers,

We are finishing a (free) Ant exam on JavaBlackBelt.com and we plan making
others.

http://www.javablackbelt.com/jbb/QuestionnaireDefDisplay.do;1138651730262?questpublicId=00147&method=before

Anybody can comment/change the questions, it has been and will be built by
the community.

Do you think it'd be possible to link this exam as a resource from
ant.apache.org ?

Thanks.

John Rizzo.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: and exit code 128

Posted by Steve Loughran <st...@apache.org>.
Rob Oxspring wrote:
> Hi,
> 
> I've been having problems with the signjar task occasionally failing 
> with "exec returned: 128" for a long time now.  The problem isn't always 
> reproducible and often disappears by simply cleaning the build area and 
> starting again; sometimes this technique doesn't work though.
> 
> I checked the jarsigner sources and they simply have exit codes of 0 and 
> 1 to indicate success and failure, so jarsigner is presumably not to 
> blame.  From a little googling it looks like this might be a cmd.exe 
> issue as there is a generic Windows error message associated with 128 
> that seems relevant:
> 
>   C:\>net helpmsg 128
> 
>   There are no child processes to wait for.
> 
> I'm guessing this means that the jarsigner.exe is completing really 
> quickly, although I suppose it could mean that it wasn't launched at 
> all.  I'd really like to get this problem solved as it would make our 
> build server that bit more reliable.
> 
> Has anyone else seen this sort of thing happening before? any 
> recommended solutions? do I just add an ignoreexitcode128 attribute to 
> the signjar/exectask?

Not seen this, and we do a lot of signing; it may depend on jar size. 
Now, sometimes java runtimes return funny numbers, so, say HPUX returns 
255 instead of -1. But that is an OS issue, which we would have 
encountered on windows before...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org