ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45499] DirectoryScanner infinitely recurses on symlinks to parent directories
Date Thu, 16 Oct 2008 20:49:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45499





--- Comment #14 from Alvaro <isoujiro@gmail.com>  2008-10-16 13:49:52 PST ---
I have checkout and compile today ant-core trunk from SVN. 

Changing MAX_LEVELS_OF_SYMLINKS=3, after 10 mins of dwr2 compile task execution
and after the --too many levels..... logs, I get this:
BUILD FAILED
java.lang.OutOfMemoryError: Java heap space
        at org.apache.tools.ant.util.VectorSet.doAdd(VectorSet.java:64)
        at org.apache.tools.ant.util.VectorSet.addElement(VectorSet.java:75)
        at
org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1217)
        at
org.apache.tools.ant.DirectoryScanner.scandir(DirectoryScanner.java:1239)
        ......



Changing MAX_LEVELS_OF_SYMLINKS=1, after some seconds of dwr2 compile task
execution and after the --too many levels..... logs, I get this:

[javac] skipping symbolic link
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/shared_bundle/Versions/CurrentJDK/Home/shared_bundle
-- too many levels of symbolic links.
    [javac] 
    [javac] 
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space
    [javac]     at java.util.zip.ZipEntry.initFields(Native Method)
    [javac]     at java.util.zip.ZipEntry.<init>(ZipEntry.java:100)
    [javac]     at java.util.zip.ZipFile$3.nextElement(ZipFile.java:437)
    [javac]     at java.util.zip.ZipFile$3.nextElement(ZipFile.java:415)
    [javac]     at
com.sun.tools.javac.jvm.ClassReader.openArchive(ClassReader.java:1447)
    [javac]     at
com.sun.tools.javac.jvm.ClassReader.list(ClassReader.java:1742)
    [javac]     at
com.sun.tools.javac.jvm.ClassReader.listAll(ClassReader.java:1882)
    [javac]     at
com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1901)
    [javac]     at
com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1538)
    [javac]     at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
    [javac]     at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:256)
    [javac]     at com.sun.tools.javac.tree.Tree$TopLevel.accept(Tree.java:382)
    [javac]     at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:221)
    [javac]     at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:235)
    [javac]     at com.sun.tools.javac.comp.Enter.complete(Enter.java:460)
    [javac]     at com.sun.tools.javac.comp.Enter.main(Enter.java:445)
    [javac]     at
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:404)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:592)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:544)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:67)
    [javac]     at com.sun.tools.javac.Main.main(Main.java:52)


I have an observation, I get this logs
[javac] skipping symbolic link
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bundle/Home/bundle/Home/bundle/Home/shared_bundle/Home/bundle/Home/bundle/Home/bundle/Home/shared_bundle/Versions/1.5.0/Home/shared_bundle/Versions/CurrentJDK/Home/bundle
-- too many levels of symbolic links.
...
[javac] skipping symbolic link
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bundle/Home/bundle/Home/bundle/Home/shared_bundle/Home/bundle/Home/bundle/Home/bundle/Home/shared_bundle/Versions/1.6.0/Home/bundle/Home/bundle/Home/shared_bundle/Versions/1.4.2/Home/shared_bundle
-- too many levels of symbolic links.

In the previous logs I can see references to another JDKs (1.5.0, 1.6.0) and
this type of logs are generated for all the JDKs I have installed (from 1.4 to
1.6 because the OSX updates), so why the DirectoryScanner travel all the JDKs?
(I have attached my logs file)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Mime
View raw message