https://issues.apache.org/bugzilla/show_bug.cgi?id=45386

           Summary: Exec Task Hangs on Linux
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Exec Task hangs on Linux with the following stack. I have searched the bug
database and it seems this has been reported for quite some time but has never
been fixed. 
We are using the following task which is hanging.  
<project name="dmregr" basedir=".">
     <target name="run">
        <exec executable="dmbasic" dir="${DMT_UTILS}"
output="${basedir}/log/dmregr.out">
            <env key="DM_SHARED" value="${dm.shared.dir}"/>
            <env key="SEPARATOR" value="${SEPARATOR}"/>
            <env key="DMT_UTILS" value="${DMT_UTILS}"/>
            <env key="DMT_USR" value="${DMT_USR}"/>
            <env key="DMT_USP" value="${DMT_USP}"/>
            <env key="DMT_DB" value="${DMT_DB}"/>
            <env key="DMT_DBP" value="${DMT_DBP}"/>
            <env key="DMT_ARCH_NT" value="${DMT_ARCH_NT}"/>
            <env key="DMT_MAX_TIME" value="${DMT_MAX_TIME}"/>
            <env key="DMT_SLEEP_FACTOR" value="${DMT_SLEEP_FACTOR}"/>
            <env key="DMT_QUIET" value="${DMT_QUIET}"/>
            <env key="DMT_AUTO" value="${DMT_AUTO}"/>
            <arg line="-f run.ebs -e Entry_Point -- ${install.owner.name}
${install.owner.password}"/>
        </exec>
    </target>
</project>


Thread 330: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Thread.join(long) @bci=38, line=1095 (Interpreted frame)
 - java.lang.Thread.join() @bci=2, line=1148 (Interpreted frame)
 - org.apache.tools.ant.taskdefs.PumpStreamHandler.stop() @bci=15, line=138
(Interpreted frame)
 - org.apache.tools.ant.taskdefs.Execute.execute() @bci=175, line=485
(Interpreted frame)
 -
org.apache.tools.ant.taskdefs.ExecTask.runExecute(org.apache.tools.ant.taskdefs.Execute)
@bci=10, line=621 (Interpreted frame)
 -
org.apache.tools.ant.taskdefs.ExecTask.runExec(org.apache.tools.ant.taskdefs.Execute)
@bci=25, line=662 (Interpreted frame)
 - org.apache.tools.ant.taskdefs.ExecTask.execute() @bci=41, line=487
(Interpreted frame)
 - org.apache.tools.ant.UnknownElement.execute() @bci=58, line=288 (Interpreted
frame)
 - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method,
java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame)
 - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object,
java.lang.Object[]) @bci=87, line=39 (Interpreted frame)
 - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object,
java.lang.Object[]) @bci=6,line=25 (Interpreted frame)
 - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
@bci=111, line=585 (Interpreted frame)
 - org.apache.tools.ant.dispatch.DispatchUtils.execute(java.lang.Object)
@bci=518, line=105 (Interpreted frame)
 - org.apache.tools.ant.Task.perform() @bci=22, line=348 (Interpreted frame)
 - org.apache.tools.ant.Target.execute() @bci=53, line=357 (Interpreted frame)
 - org.apache.tools.ant.Target.performTasks() @bci=11, line=385 (Interpreted
frame)
 - org.apache.tools.ant.Project.executeSortedTargets(java.util.Vector)
@bci=145, line=1329 (Interpreted frame)
 - org.apache.tools.ant.Project.executeTarget(java.lang.String) @bci=27,
line=1298 (Interpreted frame)
 -
com.documentum.server.autotest.environments.dmregr.DmregrConfiguration.execute(java.util.Properties)
@bci=340 (Interpreted frame)
 - com.documentum.server.autotest.Launch.main(java.lang.String[]) @bci=990
(Interpreted frame)


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

Reply via email to