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 47772

Summary: deadlock while loading modules
Product: platform Reporter: Milos Kleint <mkleint>
Component: Module SystemAssignee: Jaroslav Tulach <jtulach>
Status: CLOSED FIXED    
Severity: blocker CC: dmladek, jglick, rmatous
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump.

Description Milos Kleint 2004-08-24 09:38:51 UTC
today's cvs trunk custom build. releatedly started
the IDE using ant tryme.
got a deadlock eventually, keeps reappearring
after cancel and retry.
thread dump attached.
Comment 1 Milos Kleint 2004-08-24 09:39:42 UTC
Created attachment 17062 [details]
thread dump.
Comment 2 Jesse Glick 2004-08-24 17:12:38 UTC
Yarda I believe this is a dupe of what you just fixed, right?
Comment 3 Jaroslav Tulach 2004-08-25 07:50:40 UTC
Looks pretty similar to issue 47588, but it is not the same problem.
This one has been hidden by the bug 47588 and appeared just now.

The problem is in ProxyLookup$R.initResults() which calls foreign code
under a lock and this deadlocks with AbstractLookup.enterStorage lock.
I will fix this, but there is another hidden problem -
SerialDataConvertor.isModuleEnabled is likely to call itself
recursively, so Radek can expect StackOverFlowError to be assigned to him.
Comment 4 Jaroslav Tulach 2004-08-25 09:42:23 UTC
Checking in src/org/openide/util/lookup/ProxyLookup.java;
/cvs/openide/src/org/openide/util/lookup/ProxyLookup.java,v  <-- 
ProxyLookup.java
new revision: 1.16; previous revision: 1.15
done
Checking in src/org/openide/util/lookup/SimpleProxyLookup.java;
/cvs/openide/src/org/openide/util/lookup/SimpleProxyLookup.java,v  <--
 SimpleProxyLookup.java
new revision: 1.7; previous revision: 1.6
done
Processing log script arguments...
More commits to come...
Checking in
test/unit/src/org/openide/util/lookup/AbstractLookupBaseHid.java;
/cvs/openide/test/unit/src/org/openide/util/lookup/AbstractLookupBaseHid.java,v
 <--  AbstractLookupBaseHid.java
new revision: 1.14; previous revision: 1.13
Comment 5 Jaroslav Tulach 2004-08-25 15:51:12 UTC
*** Issue 47918 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Kovalsky 2004-08-26 09:22:05 UTC
This has been additionally classified as Q-build stopper. Please
integrate the fix into QBE200408241800 branch too ASAP. Thanks.
Comment 7 Jaroslav Tulach 2004-08-26 09:30:00 UTC
vs ci -m "Backport of #47772 to q-build branch"
cvs commit: Examining .
cvs commit: Examining actions
cvs commit: Examining datatransfer
cvs commit: Examining enum
cvs commit: Examining io
cvs commit: Examining lookup
Checking in lookup/ProxyLookup.java;
/cvs/openide/src/org/openide/util/lookup/ProxyLookup.java,v  <-- 
ProxyLookup.java
new revision: 1.15.88.1; previous revision: 1.15
done
Checking in lookup/SimpleProxyLookup.java;
/cvs/openide/src/org/openide/util/lookup/SimpleProxyLookup.java,v  <--
 SimpleProxyLookup.java
new revision: 1.6.16.1; previous revision: 1.6
done
Comment 8 Marian Mirilovic 2004-08-26 14:45:59 UTC
*** Issue 47998 has been marked as a duplicate of this issue. ***
Comment 9 Jaroslav Tulach 2004-08-27 07:30:53 UTC
*** Issue 48018 has been marked as a duplicate of this issue. ***
Comment 10 Marian Mirilovic 2004-08-30 10:32:24 UTC
*** Issue 47843 has been marked as a duplicate of this issue. ***
Comment 11 Tomas Danek 2005-08-02 11:44:25 UTC
closing