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 82397 - Deadlock in editor (reproduced on Windows in tests)
Summary: Deadlock in editor (reproduced on Windows in tests)
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2006-08-10 15:01 UTC by Marian Mirilovic
Modified: 2007-11-05 13:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threaddump of netbeans (7.45 KB, text/plain)
2006-08-30 12:27 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2006-08-10 15:01:22 UTC
I am startings performance tests on our Windows XP machine and it never finished.

I found out that the log file contains :
Connection refused: connect to 129.157.79.24 data class
org.ehucka.core.messages.ServerStateMessage

and if this message is printed tests never finished. The affeceted machine is 
"qa-perf-xp"
Comment 1 Marian Mirilovic 2006-08-16 09:39:30 UTC
Eman, 
could you look at this please ? We haven't got results for Windows XP for few
days ...
Comment 2 ehucka 2006-08-16 11:32:53 UTC
I do not know what could be wrong now. Public xp machine works without problems.
Could you provide threaddump of the machine when tests/test4u is blocked? Try to
get threaddump of xtest process too.
Comment 3 Marian Mirilovic 2006-08-22 16:15:42 UTC
Now I found the problem, if the test run finished before any other test run,
it's fine , but if during test run, some task comes , the test run is still
running ...

How could I get thread-dump of the thread on Windows, if I don't have console ?
Comment 4 ehucka 2006-08-30 12:27:07 UTC
Created attachment 33401 [details]
threaddump of netbeans
Comment 5 ehucka 2006-08-30 12:58:21 UTC
I found out there were 4 running java processes - test4u, ant, xtest and
netbeans on a blocked machine. I cannot get ant's threaddump but test4u and
xtest were waiting for netbeans - only logging processes' output/error streams.
After I had killed the netbeans process, test4u continued.

Milo, could you look at the threaddump? Two threads are probably locked in
editor code. Thanks.
Comment 6 Marian Mirilovic 2006-08-30 14:28:13 UTC
Mila confirmed that the problem is in the editor, so I am reassigning the issue
into the editor ...
Comment 7 Miloslav Metelka 2006-09-08 16:19:41 UTC
Fixed in trunk:
Checking in libsrc/org/netbeans/editor/BaseDocument.java;
/cvs/editor/libsrc/org/netbeans/editor/BaseDocument.java,v  <--  BaseDocument.java
new revision: 1.132; previous revision: 1.131
Comment 8 Marian Mirilovic 2006-09-14 10:12:09 UTC
Thanks, it works fine now - verified