Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.1-beta-2
-
Fix Version/s: None
-
Component/s: groovy-jdk
-
Labels:None
-
Environment:redhat fc5, sun java 5 or 6, ubuntu feisty, sun java 5 or 6
-
Number of attachments :
Description
The following script will quickly stack overflow on linux if the IllegalArgumentException line is commented out.
#!/usr/bin/env groovy
def ff = new File("/sys/block/md0/subsystem");
def isSymlink(ff){
return ff.getAbsolutePath()!=ff.getCanonicalPath() ;
}
ff.eachFileRecurse {
printf("%s\n",it);
if( isSymlink(it) )
}
Issue Links
- is related to
-
GROOVY-2740
eachFileRecurse() goes into infinte loop traversing /proc filesystem in Linux
-