Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 2596 invoked from network); 16 Oct 2008 20:50:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2008 20:50:45 -0000 Received: (qmail 64788 invoked by uid 500); 16 Oct 2008 20:50:46 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 64762 invoked by uid 500); 16 Oct 2008 20:50:46 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 64753 invoked by uid 99); 16 Oct 2008 20:50:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 13:50:46 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 20:49:46 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 56DE6234C230; Thu, 16 Oct 2008 13:49:53 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 45499] DirectoryScanner infinitely recurses on symlinks to parent directories X-Bugzilla-Reason: CC X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core X-Bugzilla-Keywords: PatchAvailable X-Bugzilla-Severity: critical X-Bugzilla-Who: isoujiro@gmail.com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bodewig@apache.org X-Bugzilla-Target-Milestone: 1.8.0 X-Bugzilla-Changed-Fields: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20081016204954.56DE6234C230@brutus.apache.org> Date: Thu, 16 Oct 2008 13:49:54 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45499 --- Comment #14 from Alvaro 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.(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.