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 45801 - Deadlock when finishing IDE during automated tests
Summary: Deadlock when finishing IDE during automated tests
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 44870 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-01 14:34 UTC by Jan Lahoda
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The log and thread dump. (34.72 KB, text/plain)
2004-07-01 14:34 UTC, Jan Lahoda
Details
thread dump (11.52 KB, text/plain)
2004-07-09 08:42 UTC, Tomas Hurka
Details
IDE log. (42.14 KB, text/plain)
2004-07-13 16:59 UTC, Jan Lahoda
Details
Full thread dump when the problem occurred with the patched IDE. (17.88 KB, text/plain)
2004-07-13 17:00 UTC, Jan Lahoda
Details
Full thread dump when the IDE is dead-locked after the fix. (16.71 KB, text/plain)
2004-07-14 10:24 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2004-07-01 14:34:02 UTC
NB trunk build 200406301800, JDK1.5-beta3-b57.

Often, when I try to run automated tests (in
particular, automated tests for java completion in
the editor), the IDE is freezed during shutdown.
See the attached thread dump (whole content of the
console is put there from the IDE start to the lock).
Comment 1 Jan Lahoda 2004-07-01 14:34:32 UTC
Created attachment 16103 [details]
The log and thread dump.
Comment 2 Tomas Hurka 2004-07-09 08:41:40 UTC
I encountered similar problem during shutdown. 
Comment 3 Tomas Hurka 2004-07-09 08:42:18 UTC
Created attachment 16172 [details]
thread dump
Comment 4 Tomas Hurka 2004-07-13 14:42:09 UTC
*** Issue 44870 has been marked as a duplicate of this issue. ***
Comment 5 Jan Lahoda 2004-07-13 16:59:12 UTC
We have added some debugs. I am attaching the results from the patched
IDE.
Comment 6 Jan Lahoda 2004-07-13 16:59:48 UTC
Created attachment 16228 [details]
IDE log.
Comment 7 Jan Lahoda 2004-07-13 17:00:10 UTC
Created attachment 16229 [details]
Full thread dump when the problem occurred with the patched IDE.
Comment 8 Martin Matula 2004-07-13 20:46:45 UTC
Fixed.

Checking in
java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java,v
 <--  ExclusiveMutex.java
new revision: 1.11; previous revision: 1.10
done
Processing log script arguments...
More commits to come...
Checking in mdr/src/org/netbeans/mdr/NBMDRepositoryImpl.java;
/cvs/mdr/src/org/netbeans/mdr/NBMDRepositoryImpl.java,v  <-- 
NBMDRepositoryImpl.java
new revision: 1.74; previous revision: 1.73
done
Processing log script arguments...
More commits to come...
Checking in mdr/src/org/netbeans/mdr/util/MultipleReadersMutex.java;
/cvs/mdr/src/org/netbeans/mdr/util/MultipleReadersMutex.java,v  <-- 
MultipleReadersMutex.java
new revision: 1.2; previous revision: 1.1
done
Checking in mdr/src/org/netbeans/mdr/util/TransactionMutex.java;
/cvs/mdr/src/org/netbeans/mdr/util/TransactionMutex.java,v  <-- 
TransactionMutex.java
new revision: 1.16; previous revision: 1.15
done
Comment 9 Jan Lahoda 2004-07-14 10:24:08 UTC
It seems that the fix causes another deadlock during the shutdown. I
am attaching the full thread dump.
Comment 10 Jan Lahoda 2004-07-14 10:24:57 UTC
Created attachment 16236 [details]
Full thread dump when the IDE is dead-locked after the fix.
Comment 11 Martin Matula 2004-07-14 19:05:41 UTC
Fixed.

Checking in src/org/netbeans/mdr/NBMDRepositoryImpl.java;
/cvs/mdr/src/org/netbeans/mdr/NBMDRepositoryImpl.java,v  <-- 
NBMDRepositoryImpl.java
new revision: 1.75; previous revision: 1.74
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/mdr/handlers/AttrImmutCollWrapper.java;
/cvs/mdr/src/org/netbeans/mdr/handlers/AttrImmutCollWrapper.java,v 
<--  AttrImmutCollWrapper.java
new revision: 1.8; previous revision: 1.7
done
Checking in src/org/netbeans/mdr/handlers/BaseObjectHandler.java;
/cvs/mdr/src/org/netbeans/mdr/handlers/BaseObjectHandler.java,v  <-- 
BaseObjectHandler.java
new revision: 1.44; previous revision: 1.43
done
Checking in src/org/netbeans/mdr/handlers/IndexSetWrapper.java;
/cvs/mdr/src/org/netbeans/mdr/handlers/IndexSetWrapper.java,v  <-- 
IndexSetWrapper.java
new revision: 1.8; previous revision: 1.7
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/mdr/storagemodel/StorableBaseObject.java;
/cvs/mdr/src/org/netbeans/mdr/storagemodel/StorableBaseObject.java,v 
<--  StorableBaseObject.java
new revision: 1.17; previous revision: 1.16
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/mdr/util/MultipleReadersMutex.java;
/cvs/mdr/src/org/netbeans/mdr/util/MultipleReadersMutex.java,v  <-- 
MultipleReadersMutex.java
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/mdr/util/TransactionMutex.java;
/cvs/mdr/src/org/netbeans/mdr/util/TransactionMutex.java,v  <-- 
TransactionMutex.java
new revision: 1.17; previous revision: 1.16
done
Checking in src/org/netbeans/modules/javacore/ExclusiveMutex.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java,v
 <--  ExclusiveMutex.java
new revision: 1.12; previous revision: 1.11
done
Processing log script arguments...
More commits to come...
Checking in
src/org/netbeans/modules/javacore/jmiimpl/javamodel/ReferenceColWrapper.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ReferenceColWrapper.java,v
 <--  ReferenceColWrapper.java
new revision: 1.3; previous revision: 1.2
done
Comment 12 Jan Lahoda 2005-02-25 10:59:08 UTC
Verified.
Comment 13 Quality Engineering 2007-09-20 12:39:47 UTC
Reorganization of java component