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 192324 - Native JVM crash each time closing the IDE
Summary: Native JVM crash each time closing the IDE
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-11-23 11:31 UTC by Jiri Sedlacek
Modified: 2010-12-08 06:35 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JVM crashlog (16.60 KB, text/plain)
2010-11-23 11:31 UTC, Jiri Sedlacek
Details
Introducing Notifier.shutdown() (12.32 KB, patch)
2010-11-25 09:36 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2010-11-23 11:31:55 UTC
Created attachment 103233 [details]
JVM crashlog

Product Version: NetBeans IDE 7.0 Beta (Build 201011152355)
Java: 1.6.0_22; Java HotSpot(TM) Client VM 17.1-b03
System: Windows Vista version 6.0 running on x86; Cp1252; ja_jp (nb)
Zip distribution

Started with steps described in Bug 192323. Each time I close the IDE (no matter what I do before shutting it down) the JVM always crashes.
Comment 1 Jiri Sedlacek 2010-11-23 11:34:37 UTC
Easily reproducible using the default en_US (nb) locale.
Comment 2 Jaroslav Tulach 2010-11-25 09:36:11 UTC
Created attachment 103320 [details]
Introducing Notifier.shutdown()

The problem with the fix is that waiting for thread.join() may block indefinitelly. I tried that on Linux, and the call to IMPL.read just sits there, in spite I tried to close the handle from the shutdown method.

I expect similar problems on other systems.
Comment 3 Jaroslav Tulach 2010-12-06 09:32:02 UTC
ergonomics#aa97d34c5f0d
Comment 4 Jiri Sedlacek 2010-12-06 09:59:09 UTC
Verified that the JVM doesn't crash any more when closing the IDE.
Comment 5 Jaroslav Tulach 2010-12-07 16:38:36 UTC
Your verification makes me very happy.
Comment 6 Quality Engineering 2010-12-08 06:35:30 UTC
Integrated into 'main-golden', will be available in build *201012080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/aa97d34c5f0d
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #192324: Allow notifiers to do some cleanup on shutdown. Try to stop the windows delivery thread.