You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/09/20 16:18:37 UTC

DO NOT REPLY [Bug 43438] New: - looping/race condition in Property/PropertyHelper

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=43438>.
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=43438

           Summary: looping/race condition in Property/PropertyHelper
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: stevel@apache.org


As raised on ant-dev, the property evaluation code in SVN_HEAD is capable of
going in to an infinite loop, despite the stack checks that appear designed to
prevent exactly that. Marked as critical, as without a fix, Ant does not run to
completion on approximately 50% of my builds.

"main" prio=10 tid=0x0000000040112c00 nid=0x42cf runnable
[0x0000000040229000..0x000000004022aec0]
   java.lang.Thread.State: RUNNABLE
        at java.util.Vector.contains(Vector.java:320)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:105)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.taskdefs.Property$PropertyResolver.evaluate(Property.java:110)
        at org.apache.tools.ant.PropertyHelper.getProperty(PropertyHelper.java:787)
        - locked <0x00002aaab4013548> (a org.apache.tools.ant.PropertyHelper)
        at
org.apache.tools.ant.PropertyHelper.parseNextProperty(PropertyHelper.java:541)
        at
org.apache.tools.ant.PropertyHelper.parseProperties(PropertyHelper.java:502)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:390)
        - locked <0x00002aaab3f5ea38> (a org.apache.tools.ant.RuntimeConfigurable)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:349)
        at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
        at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:193)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
        at org.apache.tools.ant.Task.perform(Task.java:347)
        at org.apache.tools.ant.Target.execute(Target.java:354)
        at org.apache.tools.ant.Target.performTasks(Target.java:379)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1293)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1176)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

-- 
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


DO NOT REPLY [Bug 43438] - looping/race condition in Property/PropertyHelper

Posted by bu...@apache.org.
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=43438>.
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=43438


stevel@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |regression
             Status|NEW                         |NEEDINFO




------- Additional Comments From stevel@apache.org  2007-09-28 02:09 -------
seems to, but let's leave it open for a while until I am more convinced all is
well. That's the trouble with any concurrency-related bug: hard to replicate,
and hard to verify that it is gone. 

downgrading to regression, as it is no longer critical for me, marking as needinfo

-- 
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


DO NOT REPLY [Bug 43438] - looping/race condition in Property/PropertyHelper

Posted by bu...@apache.org.
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=43438>.
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=43438





------- Additional Comments From gudnabrsam@yahoo.com  2007-09-26 10:14 -------
Did Peter's changes help here?

-- 
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