ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53407] Parallel Task cause deadlock
Date Fri, 15 Jun 2012 02:20:50 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53407

Paddy Xie <xpjsky@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Paddy Xie <xpjsky@gmail.com> ---
It seams that it's a bug of eclipse console, look the thread dump below:

"Thread-2" prio=6 tid=0x000000000697f000 nid=0x3038 waiting for monitor entry
[0x0000000007a3e000]
   java.lang.Thread.State: BLOCKED (on object monitor)
    at java.io.PrintWriter.println(PrintWriter.java:695)
    - waiting to lock <0x00000007d858a178> (a java.io.BufferedWriter)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.sendMessage(RemoteAntBuildLogger.java:135)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.marshalTaskMessage(RemoteAntBuildLogger.java:351)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.processEvent(RemoteAntBuildLogger.java:270)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.messageLogged(RemoteAntBuildLogger.java:264)
    at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:2254)
    at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2353)
    at org.apache.tools.ant.Project.log(Project.java:480)
    at org.apache.tools.ant.Task.log(Task.java:294)
    at org.apache.tools.ant.Task.handleOutput(Task.java:224)
    at
org.apache.tools.ant.UnknownElement.handleOutput(UnknownElement.java:211)
    at org.apache.tools.ant.Project.demuxOutput(Project.java:1272)
    at org.apache.tools.ant.taskdefs.Ant.handleOutput(Ant.java:252)
    at
org.apache.tools.ant.taskdefs.CallTarget.handleOutput(CallTarget.java:179)
    at
org.apache.tools.ant.UnknownElement.handleOutput(UnknownElement.java:211)
    at org.apache.tools.ant.Project.demuxOutput(Project.java:1272)
    at
org.apache.tools.ant.DemuxOutputStream.processBuffer(DemuxOutputStream.java:172)
    at org.apache.tools.ant.DemuxOutputStream.write(DemuxOutputStream.java:147)
    at org.apache.tools.ant.DemuxOutputStream.write(DemuxOutputStream.java:241)
    at java.io.PrintStream.write(PrintStream.java:430)
    - locked <0x00000007d86d0660> (a java.io.PrintStream)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:85)
    - locked <0x00000007d86d0a00> (a java.io.OutputStreamWriter)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:168)
    at java.io.PrintStream.newLine(PrintStream.java:496)
    - locked <0x00000007d86d0660> (a java.io.PrintStream)
    at java.io.PrintStream.println(PrintStream.java:757)
    - locked <0x00000007d86d0660> (a java.io.PrintStream)
    at
com.getpaid.internal.gpdbbuild.PopulateDatabase.recreateDatabase(PopulateDatabase.java:89)
    at
com.getpaid.internal.gpdbbuild.PopulateDatabase.PopulateDatabaseViaXmlFiles(PopulateDatabase.java:44)
    at
com.getpaid.internal.gpdbbuild.GpdbbuildTask.execute(GpdbbuildTask.java:67)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at
org.eclipse.ant.internal.launching.remote.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at
org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run(Parallel.java:435)
    at java.lang.Thread.run(Thread.java:662)

   Locked ownable synchronizers:
    - None

"Thread-1" prio=6 tid=0x000000000697e000 nid=0x27d4 waiting for monitor entry
[0x000000000793e000]
   java.lang.Thread.State: BLOCKED (on object monitor)
    at java.io.PrintStream.println(PrintStream.java:756)
    - waiting to lock <0x00000007d86ce1e0> (a java.io.PrintStream)
    at
com.getpaid.internal.gpdbbuild.ClearDatabaseSchema.clearSchema(ClearDatabaseSchema.java:257)
    at
com.getpaid.internal.gpdbbuild.PopulateDatabase.recreateDatabase(PopulateDatabase.java:82)
    at
com.getpaid.internal.gpdbbuild.PopulateDatabase.PopulateDatabaseViaXmlFiles(PopulateDatabase.java:44)
    at
com.getpaid.internal.gpdbbuild.GpdbbuildTask.execute(GpdbbuildTask.java:67)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at
org.eclipse.ant.internal.launching.remote.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at
org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run(Parallel.java:435)
    at java.lang.Thread.run(Thread.java:662)

   Locked ownable synchronizers:
    - None

"Thread-0" prio=6 tid=0x0000000006aa4800 nid=0x1ecc runnable
[0x000000000783d000]
   java.lang.Thread.State: RUNNABLE
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:276)
    at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:122)
    - locked <0x00000007d858a1a8> (a java.io.OutputStreamWriter)
    at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:212)
    at java.io.BufferedWriter.flush(BufferedWriter.java:236)
    - locked <0x00000007d858a1a8> (a java.io.OutputStreamWriter)
    at java.io.PrintWriter.newLine(PrintWriter.java:438)
    - locked <0x00000007d858a178> (a java.io.BufferedWriter)
    at java.io.PrintWriter.println(PrintWriter.java:585)
    at java.io.PrintWriter.println(PrintWriter.java:696)
    - locked <0x00000007d858a178> (a java.io.BufferedWriter)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.sendMessage(RemoteAntBuildLogger.java:135)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.marshalTaskMessage(RemoteAntBuildLogger.java:351)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.processEvent(RemoteAntBuildLogger.java:270)
    at
org.eclipse.ant.internal.launching.remote.logger.RemoteAntBuildLogger.messageLogged(RemoteAntBuildLogger.java:264)
    at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:2254)
    at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2353)
    at org.apache.tools.ant.Project.log(Project.java:480)
    at org.apache.tools.ant.Task.log(Task.java:294)
    at org.apache.tools.ant.Task.handleErrorOutput(Task.java:261)
    at
org.apache.tools.ant.UnknownElement.handleErrorOutput(UnknownElement.java:259)
    at org.apache.tools.ant.Project.demuxOutput(Project.java:1270)
    at org.apache.tools.ant.taskdefs.Ant.handleErrorOutput(Ant.java:307)
    at
org.apache.tools.ant.taskdefs.CallTarget.handleErrorOutput(CallTarget.java:234)
    at
org.apache.tools.ant.UnknownElement.handleErrorOutput(UnknownElement.java:259)
    at org.apache.tools.ant.Project.demuxOutput(Project.java:1270)
    at
org.apache.tools.ant.DemuxOutputStream.processBuffer(DemuxOutputStream.java:172)
    at org.apache.tools.ant.DemuxOutputStream.write(DemuxOutputStream.java:147)
    at org.apache.tools.ant.DemuxOutputStream.write(DemuxOutputStream.java:241)
    at java.io.PrintStream.write(PrintStream.java:430)
    - locked <0x00000007d86ce1e0> (a java.io.PrintStream)
    at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
    at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:272)
    at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:85)
    - locked <0x00000007d86ce580> (a java.io.OutputStreamWriter)
    at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:168)
    at java.io.PrintStream.newLine(PrintStream.java:496)
    - locked <0x00000007d86ce1e0> (a java.io.PrintStream)
    at java.io.PrintStream.println(PrintStream.java:757)
    - locked <0x00000007d86ce1e0> (a java.io.PrintStream)
    at
com.getpaid.internal.gpdbbuild.ClearDatabaseSchema.clearSchema(ClearDatabaseSchema.java:257)
    at
com.getpaid.internal.gpdbbuild.PopulateDatabase.recreateDatabase(PopulateDatabase.java:82)
    at
com.getpaid.internal.gpdbbuild.PopulateDatabase.PopulateDatabaseViaXmlFiles(PopulateDatabase.java:44)
    at
com.getpaid.internal.gpdbbuild.GpdbbuildTask.execute(GpdbbuildTask.java:67)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:392)
    at org.apache.tools.ant.Target.performTasks(Target.java:413)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at
org.eclipse.ant.internal.launching.remote.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at
org.apache.tools.ant.taskdefs.Parallel$TaskRunnable.run(Parallel.java:435)
    at java.lang.Thread.run(Thread.java:662)

   Locked ownable synchronizers:
    - None

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message