You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/06/10 22:10:45 UTC
DO NOT REPLY [Bug 49425] New: task hangs or crashes with
SYS0008
https://issues.apache.org/bugzilla/show_bug.cgi?id=49425
Summary: <javac> task hangs or crashes with SYS0008
Product: Ant
Version: 1.8.1
Platform: PC
OS/Version: OS/2
Status: NEW
Severity: major
Priority: P2
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: dmik.for-maillists@hugaida.com
Created an attachment (id=25580)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25580)
Fixes the issue mentioned in this ticket
If the 'fork' attribute of the <javac> task is set to 'true', the external
javac executable gets started through CMD.EXE which will hang or crash with
error SYS0008 if the resulting command line is too long. There is support for
the limited command line length in Ant already but it assumes that this limit
is 4096 characters on all platforms, while in the OS/2 version of CMD.EXE it is
much less -- about 1023 characters.
The supplied patch fixes this issue.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 49425] task hangs or crashes with SYS0008
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49425
--- Comment #3 from dmik.for-maillists@hugaida.com 2010-06-11 07:21:50 EDT ---
Thanks for promptness. Note that I checked the patch when building parts of
OpenJDK that uses external javac a lot and supplies very long command lines,
and it works on OS/2 as expected now.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 49425] task hangs or crashes with SYS0008
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49425
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Stefan Bodewig <bo...@apache.org> 2010-06-11 03:34:21 EDT ---
applied your patch in svn revision 953594
Please try the ant-env.jar as described in comment #1
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 49425] task hangs or crashes with SYS0008
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49425
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |1.8.2
--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-06-11 00:32:16 EDT ---
The patch looks reasonable and I'll apply it later today even though I'll be
unable to test it.
While we have the attention of somebody running OS/2 could I ask you to
download http://people.apache.org/~bodewig/ant-env.zip extract the ZIP, run
java -jar ant-env.jar
and report your results to bug 49366
As background: we want to replace our platform specific environment variable
system with System.getenv in the future and need to see whether both approaches
yield the same result.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.