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 95848 - deadlock during startup - cannot start IDE
Summary: deadlock during startup - cannot start IDE
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks: 94383
  Show dependency tree
 
Reported: 2007-02-16 19:57 UTC by Marian Petras
Modified: 2008-12-22 11:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full thread-dump (12.79 KB, text/plain)
2007-02-16 19:58 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2007-02-16 19:57:34 UTC
I cannot start IDE using JDK 1.5.0_11 because of the following deadlock. I tried
it several times and the deadlock always occured. However I could start the IDE
using JDK 1.6.0.

The deadlock:

"JavaSourceTaskFactory" daemon prio=2 tid=0x1622b8f8 nid=0xb30 in Object.wait()
[0x16a1f000..0x16a1fc6c]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x05372200> (a java.awt.EventQueue$1AWTInvocationLock)
        at java.lang.Object.wait(Object.java:474)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:848)
        - locked <0x05372200> (a java.awt.EventQueue$1AWTInvocationLock)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1257)
        at o.o.filesystems.FileUtil.getFileSystemView(FileUtil.java:1316)
        - locked <0x0c150fd8> (a java.lang.Class)
        at o.o.f-s.FileUtil.canBeCanonicalizedOnWindows(FileUtil.java:1292)
        at o.o.f-s.FileUtil.normalizeFileOnWindows(FileUtil.java:1273)
        at o.o.f-s.FileUtil.normalizeFile(FileUtil.java:1178)
        ...

"AWT-EventQueue-1" prio=6 tid=0x163942c8 nid=0x310 waiting for monitor entry
[0x171df000..0x171dfaec]
        at o.o.filesystems.FileUtil.getJavaSpecVersion(FileUtil.java:1305)
        - waiting to lock <0x0c150fd8> (a java.lang.Class)
        at o.o.filesystems.FileUtil.is4089199(FileUtil.java:1300)
        at o.o.filesystems.FileUtil.canBeCanonicalizedOnWindows
                                                     (FileUtil.java:1291)
        at o.o.filesystems.FileUtil.normalizeFileOnWindows(FileUtil.java:1273)
        at o.o.filesystems.FileUtil.normalizeFile(FileUtil.java:1178)
        at o.o.filesystems.FileUtil.toFileObject(FileUtil.java:507)
        at o.n.m.java.source.usages.RepositoryUpdater.registerFileSystemListener
                                                                   (:384)
        at o.n.m.java.source.usages.RepositoryUpdater.<init>(:149)
        at o.n.m.java.source.usages.RepositoryUpdater.getDefault(:1743)
        - locked <0x0d6c39c8> (a java.lang.Class)
        at o.n.m.java.source.JBrowseModule$1.run(JBrowseModule.java:77)
        ...

This bug might be related to issue #95847 ("Startup: Cannot call invokeAndWait
from the EQ").

This is a dual-processor machine (2x Opteron 244).

--
NetBeans IDE Dev (Build 070216)
1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03
Windows 2003 version 5.2 running on x86
en_US (nb); Cp1252
Comment 1 Marian Petras 2007-02-16 19:58:48 UTC
Created attachment 38628 [details]
full thread-dump
Comment 2 rmatous 2007-02-19 11:14:09 UTC
/cvs/openide/fs/src/org/openide/filesystems/FileUtil.java,v  <--  FileUtil.java
new revision: 1.35; previous revision: 1.34

/cvs/openide/fs/src/org/openide/filesystems/FileUtil.java,v  <--  FileUtil.java
new revision: 1.34.2.1; previous revision: 1.34
Comment 3 Marian Petras 2007-02-19 11:46:50 UTC
Verified in the trunk (custom build).
Comment 4 Marian Petras 2007-02-19 13:37:54 UTC
Verified in branch 'release60-m7'.