ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35784] New: - FD leak
Date Mon, 18 Jul 2005 21:07:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35784>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35784

           Summary: FD leak
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: bero@arklinux.org


There seems to be an FD leak somewhere in the class availability checking 
code. 
 
Trying to build Axis 1.2.1 (http://ws.apache.org/axis/) with gcj/ecj as the 
only installed JDK results in: 
 
BUILD FAILED 
/usr/src/ark/BUILD/axis-1_2_1/xmls/targets.xml:189: IO error scanning 
directory /usr/src/ark/BUILD/axis-1_2_1/lib 
 
The related part of targets.xml is 
 
    <condition property="jimi.present" > 
      <available classname="com.sun.jimi.core.Jimi" 
classpathref="classpath" /> 
    </condition> 
 
Moving it up or removing some similar checks (there are loads of them in the 
targets.xml file) moves the error to a check for a different class. 
 
strace seems to indicate ant is trying to use too many files at the same time 
- the relevant part of strace output is: 
 
open("/usr/share/java/commons-collections-testframework-3.1.jar", O_RDONLY|
O_LAR 
GEFILE) = 1023 
fcntl64(1023, F_SETFD, FD_CLOEXEC)      = 0 
fstat64(1023, {st_mode=S_IFREG|0644, st_size=102200, ...}) = 0 
_llseek(1023, 102178, [102178], SEEK_SET) = 0 
read(1023, "PK\5\6", 4)                 = 4 
fstat64(1023, {st_mode=S_IFREG|0644, st_size=102200, ...}) = 0 
_llseek(1023, 102188, [102188], SEEK_SET) = 0 
read(1023, "8\0", 2)                    = 2 
fstat64(1023, {st_mode=S_IFREG|0644, st_size=102200, ...}) = 0 
_llseek(1023, 102194, [102194], SEEK_SET) = 0 
read(1023, "\225x\1\0", 4)              = 4 
_llseek(1023, 96405, [96405], SEEK_SET) = 0 
read(1023, "PK\1\2\24\3\n\0\0\0\0\0wY\3412\0\0\0\0\0\0\0\0\0\0\0\0"..., 46) = 
46 
[.... many more read()s ....] 
read(1023, "org/apache/commons/collections/s"..., 62) = 62 
access("/usr/share/java/commons-collections.jar", F_OK) = 0 
stat64("/usr/share/java/commons-collections.jar", {st_mode=S_IFREG|0644, 
st_size=544605, ...}) = 0 
open("/usr/share/java/commons-collections.jar", O_RDONLY|O_LARGEFILE) = -1 
EMFILE (Too many open files)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message