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 32060 - Deadlock in NetBeans startup
Summary: Deadlock in NetBeans startup
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: JDK_SPECIFIC, THREAD
Depends on:
Blocks:
 
Reported: 2003-03-17 18:14 UTC by Tomas Hurka
Modified: 2008-12-22 20:17 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (9.92 KB, text/plain)
2003-03-17 18:16 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2003-03-17 18:14:48 UTC
Start NetBeans 3.5 on Mac OS X with the following commandline:
bin/runide.sh -userdir /tmp/xxx -ui apple.laf.AquaLookAndFeel -fontsize 11 -J-Dapple.laf.useScreeMenubar=true

See attachment for thread dump.
Comment 1 Tomas Hurka 2003-03-17 18:16:27 UTC
Created attachment 9434 [details]
thread dump
Comment 2 Tomas Hurka 2003-03-17 18:45:12 UTC
Dafe, please evaluate it ASAP.
Comment 3 David Simonek 2003-03-18 12:14:35 UTC
Evaluating in progress.....
At first glance it seems that JDK code in JSeparator<init> isn;'t
correct, will investigate further.
Comment 4 _ ttran 2003-03-18 12:23:38 UTC
deadlock seems like a P1 to me
Comment 5 David Simonek 2003-03-18 14:51:03 UTC
I believe it's caused by JDK 1.4.1 bug, I've entered bug 4833969 in
bugtraq.
Now it's happening only under Mac OS X, with Aqua look and feel and
app's menu on the top of the screen (as Tomas pointed out in first
comment.)
Unfortunately, this deadlock can potentially occur on any OS, when
JSeparator is being constructed while AWT thread has AWTTreeLock
locked and waits for task which is creating main menu.

Petr Nejedly told me that he is sure this is side effect of the change
he made into menu warm up and rollbacking of his change will be our
workaround for 4833969 in bugtraq. However, it means that bigger part
of menu warm up will run in AWT, which is not nice (but more
acceptable then deadlock). Reassigning to Petr.
Comment 6 Petr Nejedly 2003-03-20 12:14:34 UTC
Fixed in trunk, openide/src/org/openide/awt/MenuBar.java,v1.50
Comment 7 Petr Nejedly 2003-03-20 12:14:58 UTC
merged into release35 branch
Comment 8 Tomas Hurka 2003-03-25 13:17:30 UTC
It seems to be OK.
Comment 9 Petr Nejedly 2004-04-22 09:03:55 UTC
Note: BugTraq #4833969 is closed as not-a-bug, tree lock can be
grabbed by anybody in any thread.