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 99305 - Deadlock on repeating attaches to GF
Summary: Deadlock on repeating attaches to GF
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2007-03-28 20:57 UTC by Alexander Kouznetsov
Modified: 2007-09-08 14:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Part of IDE log and thread dump (43.67 KB, text/plain)
2007-03-28 20:58 UTC, Alexander Kouznetsov
Details
solaris 10 sparc T1000 (jdk 1.6u1) IDE deadlock (33.82 KB, text/plain)
2007-06-13 09:25 UTC, nouar38
Details
server.log for domain1 on solaris10 (89.30 KB, text/plain)
2007-06-13 09:40 UTC, nouar38
Details
join threads dumps for profiler process solaris 10-sparc (2.36 KB, text/plain)
2007-06-13 09:49 UTC, nouar38
Details
join threads dump for server done with jstack (22.83 KB, application/octet-stream)
2007-06-13 09:51 UTC, nouar38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-03-28 20:57:08 UTC
Profiler 070327
NetBeans IDE Dev (Build 200703272330)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Sun Java System Application Server 9.1 (build b33)

There are no exact steps on how to reproduce this issue. I was performing
OrderSystem
(http://www.netbeans.org/nonav/issues/showattachment.cgi/37566/order_system.zip)
testing on GlassFish server using Start in Profile Mode, then direct attach,
then detach not stopping the application and then dynamic attach. Then detach
and dynamic attach again. All the attempts were about CPU profiling with
different parameters. After several attempts I got a Profiled application is not
responding message. When I agreed to stop profiling the IDE became frozen. The
same time profiled application was working on server, as well as many of Admin
Console features connected with deployed applications and resources while the
part of Admin Console linked with Application Server properties and VM setting
was not responding.
Comment 1 Alexander Kouznetsov 2007-03-28 20:58:09 UTC
Created attachment 40109 [details]
Part of IDE log and thread dump
Comment 2 J Bachorik 2007-06-05 08:28:40 UTC
This seems like a kind of distributed deadlock - the application is locked
waiting for the results from the server. For further investigation the server
threaddump is necessary
Comment 3 nouar38 2007-06-13 09:23:17 UTC
NB 6.0 200704061800 & GF v2 Build50, yesterday I get in a similar situation on while profiling a project on
windows xp and solaris 10-sparc. On the windows host could not get the threads dump of the IDE using stacktrace
(the host was very painfully responding - connected with rdesktop - and was obliged to kill the java processes
using the Task Manager).
But on the solaris-sparc it was much easier to get the stack : kill -QUIT
I'm adding the IDE threads-dump in the attachement taken before closing the IDE window (right top x).
Also, I'll try to do the threads-dump of the server.

nouar (I'm helping the serverpluging team in testing nb 6.0).
Comment 4 nouar38 2007-06-13 09:25:12 UTC
Created attachment 43595 [details]
solaris 10 sparc T1000  (jdk 1.6u1) IDE deadlock
Comment 5 J Bachorik 2007-06-13 09:39:47 UTC
thanks for the thread dump
the server part is not required :)
the deadlock is caused by accessing AWT component tree outside of the AWT thread.
Comment 6 nouar38 2007-06-13 09:40:19 UTC
Created attachment 43598 [details]
server.log for domain1 on solaris10
Comment 7 nouar38 2007-06-13 09:49:43 UTC
Created attachment 43599 [details]
join threads dumps for profiler process solaris 10-sparc
Comment 8 nouar38 2007-06-13 09:51:27 UTC
Created attachment 43600 [details]
join threads dump for server done with jstack
Comment 9 J Bachorik 2007-06-13 09:51:31 UTC
sorry nouar, what you submitted in fact belongs to the issue #105508. i'll attach your comments and dumps there
Comment 10 nouar38 2007-06-13 09:57:17 UTC
ok thanks, did not get notified before submitting the different attachments. I'll follow on the other issue.
have a nice day.
nouar,
Comment 11 J Bachorik 2007-06-25 14:34:58 UTC
this should be fixed with the issue #82357
the fix addresses deadlock caused by calling the "forceObtainedResults" method
Comment 12 Alexander Kouznetsov 2007-09-08 14:46:09 UTC
Verified with Beta1