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 65815 - MDR transactions are not correctly ended in sporadic cases
Summary: MDR transactions are not correctly ended in sporadic cases
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 70575 70902 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-04 10:27 UTC by Antonin Nebuzelsky
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread Dump (13.69 KB, text/plain)
2005-10-04 10:28 UTC, Antonin Nebuzelsky
Details
thread dumps (43.45 KB, text/plain)
2006-01-02 14:44 UTC, Milan Kubec
Details
thread dump (14.25 KB, text/plain)
2006-01-03 19:48 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2005-10-04 10:27:38 UTC
I was working with a project I had available in the Shared Files view in an open
collaboration session. The remote party ended his session. My IDE got frozen.
See the attached thread dump.
Comment 1 Antonin Nebuzelsky 2005-10-04 10:28:26 UTC
Created attachment 25491 [details]
Thread Dump
Comment 2 Petr Nejedly 2005-10-04 10:50:28 UTC
Was there any exception?
From the thread dump, you see that AWT waits for one of the RPs to finish ("Java
Children Provider"), but all 4 RPs are waiting for access to the ExclusiveMutex.
I can't find a single place where ExclusiveMutex should be held, so either I
overlooked something, or the thread locking EM died w/o proper unlock in
finally{} block.
In either case, it looks like collab disconnect have just uncovered a bug
somewhere else (editor, javacore, openide/text).
Marking as INCOMPLETE for now and reassigning to javacore.
Comment 3 Antonin Nebuzelsky 2005-10-04 11:39:51 UTC
> Was there any exception?

No, it simply hang.
Comment 4 Milan Kubec 2005-11-01 12:24:57 UTC
Is this still INCOMPLETE? What do you need to know more?
Comment 5 Tomas Hurka 2005-11-14 13:09:15 UTC
We need to know steps how to reproduce and complete message.log.
Comment 6 Antonin Nebuzelsky 2005-12-01 15:48:58 UTC
Hmm, I tried reproducing, but this time the collab handled the other party's
disconnection gracefully. Sorry, no more info.
Comment 7 _ alexlamsl 2005-12-08 18:17:36 UTC
I did encounter deadlocks of the IDE a few times while using the Collab 
module - and I have to admit that it is rather random (it once got stuck while 
I was sitting there moving my cursor in the conversation window!)

Hence the issue report might not be describing the problem precisely, and that 
occurance of such problems should be rare, lowering the priority of this issue.
Comment 8 Antonin Nebuzelsky 2005-12-09 09:02:16 UTC
Alexlamsl, please, don't change priority of bugs which you did not report and
which are not assigned to you. The issue owner should make the evaluation. Thanks!

Anyway I believe that deadlock issue cannot be P4. It can either be changed to
RANDOM, WORKSFORME or FIXED.

Putting Marian from QE on CC, who could help us reproduce the problem or verify
that it does not appear anymore. Mariane, please, have a look at the problem and
try to reproduce it. I was not successfull anymore with reproducing.
Comment 9 Jan Becicka 2006-01-02 13:52:15 UTC
*** Issue 70575 has been marked as a duplicate of this issue. ***
Comment 10 Milan Kubec 2006-01-02 14:43:07 UTC
It seems that I have managed to reproduce the problem with unfinished
transaction, it simply happened after opening nb project and its required
projects and the classpath scanning never ended. Progress bar of the scanning
was painted on start and no action that relies on scanning could be finished.
When attempting to exit IDE it deadlocked. Attaching thread dumps from the
living IDE when scanning was running forever and from deadlocked IDE during exit.
Comment 11 Milan Kubec 2006-01-02 14:44:22 UTC
Created attachment 28130 [details]
thread dumps
Comment 12 Jan Becicka 2006-01-03 08:40:14 UTC
It looks like some transactions are sometimes not ended properly. We need to
investigate this issue for 5.0.
Comment 13 Jan Becicka 2006-01-03 10:56:20 UTC
*** Issue 70902 has been marked as a duplicate of this issue. ***
Comment 14 Milan Kubec 2006-01-03 19:47:53 UTC
I have probably another thread dump showing the same problem, deadlock happened
during IDE shutdown.
Comment 15 Milan Kubec 2006-01-03 19:48:26 UTC
Created attachment 28158 [details]
thread dump
Comment 16 Jan Becicka 2006-01-04 16:29:46 UTC
MDR transactions are not correctly ended in sporadic cases. After serious error
in application (StackOverflowError, OutOfMemoryError) current MDR transaction is
sometimes not finished. This unfinished transaction can end in deadlock. The
only reproducible test case happens after this StackOverflowError
http://www.netbeans.org/issues/show_bug.cgi?id=70774. We already fixed this
case, but we are not sure, that there are not any other cases, when unfinished
MDR transaction may lead to deadlock. This is reason, why we want to keep this
issue open for now.
Comment 17 Jan Becicka 2006-03-17 18:44:12 UTC
Should be fixed by thos commit:
http://mdr.netbeans.org/servlets/ReadMsg?list=cvs&msgNo=1578
Comment 18 Max Sauer 2007-02-14 17:29:27 UTC
This has become obsolete with interduction of Retouche. Marking as Verified.
---
NetBeans IDE Dev (Build 070214)
1.6.0; Java HotSpot(TM) Server VM 1.6.0-b105
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 19 Quality Engineering 2007-09-20 09:57:17 UTC
Reorganization of java component