This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 165438 - Parsing deadlock
Summary: Parsing deadlock
Status: RESOLVED DUPLICATE of bug 165262
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P1 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 18:54 UTC by Torbjorn Norbye
Modified: 2009-05-21 11:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A full thread dump of the deadlocked VM (20.34 KB, text/plain)
2009-05-18 18:55 UTC, Torbjorn Norbye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2009-05-18 18:54:31 UTC
[I didn't see a category for the parsing api so filing against ide in the hopes that somebody can redirect it]

My IDE has been deadlocking frequently over the last week or two. Since I'm on a Mac jstack frequently doesn't work, but
this time it did. 

This is with a fresh build (I pulled and built main-silver 30 minutes ago), on OSX, with JDK 6. My tip is 41da655a338d.

Here's the deadlock (just the two deadlocked threads -- I'll attach the full thread dump if that helps).

Found one Java-level deadlock:
=============================
"OpenIDE-request-processor-7":
  waiting to lock monitor 0x00000001360ce570 (object 0x0000000109528500, a java.lang.Object),
  which is held by "Parsing & Indexing Loop (090518)"
"Parsing & Indexing Loop (090518)":
  waiting to lock monitor 0x0000000135d53030 (object 0x00000001094e8b28, a
org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock),
  which is held by "OpenIDE-request-processor-7"

Java stack information for the threads listed above:
===================================================
"OpenIDE-request-processor-7":
	at org.netbeans.modules.parsing.impl.TaskProcessor$CurrentRequestReference.cancelCompleted(TaskProcessor.java:1037)
	- waiting to lock <0x0000000109528500> (a java.lang.Object)
	at org.netbeans.modules.parsing.impl.TaskProcessor.handleAddRequests(TaskProcessor.java:501)
	at org.netbeans.modules.parsing.impl.TaskProcessor.addPhaseCompletionTasks(TaskProcessor.java:306)
	at org.netbeans.modules.parsing.impl.TaskProcessor.updatePhaseCompletionTask(TaskProcessor.java:400)
	- locked <0x00000001094e8b28> (a org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock)
	at org.netbeans.modules.parsing.impl.SourceCache.scheduleTasks(SourceCache.java:425)
	at org.netbeans.modules.parsing.spi.Scheduler$1.run(Scheduler.java:155)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:576)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1013)
"Parsing & Indexing Loop (090518)":
	at org.netbeans.modules.parsing.impl.SourceCache.getSnapshot(SourceCache.java:114)
	- waiting to lock <0x00000001094e8b28> (a org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CurrentRequestReference.setCurrentTask(TaskProcessor.java:895)
	- locked <0x0000000109528500> (a java.lang.Object)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:706)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:637)

Found 1 deadlock.
Comment 1 Torbjorn Norbye 2009-05-18 18:55:34 UTC
Created attachment 82341 [details]
A full thread dump of the deadlocked VM
Comment 2 Jan Jancura 2009-05-21 11:36:26 UTC

*** This issue has been marked as a duplicate of 165262 ***