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 85671 - opteron: IDE crashes after nesting classes in model tree
Summary: opteron: IDE crashes after nesting classes in model tree
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 5.x
Hardware: Other Solaris
: P1 blocker (vote)
Assignee: Kris Richards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-25 11:06 UTC by bugbridge
Modified: 2006-10-06 14:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error log (10.80 KB, application/octet-stream)
2006-09-25 13:54 UTC, Andrew Korostelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-09-25 11:06:28 UTC
Original submitter: akorostelev

Description:
IDE crashes with segmentation fault after nesting classes in model tree.

reproduced with uml build 060924 under Solaric x64 (Opteron).
Can't reproduce under Windows, Solaris sparc or Linux.

steps to reproduce:
- start ide.
- create Java project without Main class creation
- Open new project creation wizard again.
- Select "UML -> Java-Platform Model" project type
- Select 'Source Model synchronisation', select created java project and click
finish (wait for classpath scanning to finish before pressing 'Finish' button).
- cancell diagram creation dialog.
- invoke 'Add | Package' and create package with scoped class diagram.
- put two classes on diagram.
- then name them.
- expand pakcage node in UML project tree.
- drag-n-drop one class node inside another.
- answer positively in 'Nested Classes' dialog.

Then one we have one of two scenarios: IDE crashes or throws NPE and crashes
only after user closes it.
1) IDE crashes (freezes, to write core dump and then is closed).
The following message appears in output (error report is attached):
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xfeed4988, pid=17738, tid=28
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C  [libc.so.1+0x24988]  strcmp+0x108
#
# An error report file with more information is saved as hs_err_pid17738.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Abort - core dumped

2)The following NPE is throws.
User closes NEW dialog, closes IDE and then IDE crashes with core dumping.

java.lang.NullPointerException
	at
org.netbeans.modules.uml.integration.netbeans.NBEventProcessor.moveInnerClass(NBEventProcessor.java:3655)
	at
org.netbeans.modules.uml.integration.netbeans.NBEventProcessor.classChanged(NBEventProcessor.java:1635)
	at
org.netbeans.modules.uml.integration.ide.RoundTripClassEventsSink$7.work(RoundTripClassEventsSink.java:511)
	at
org.netbeans.modules.uml.integration.ide.RoundTripSource$RoundtripThread.run(RoundTripSource.java:118)
	at
org.netbeans.modules.uml.integration.ide.events.EventHandler$1.executeTask(EventHandler.java:92)
[catch] at
org.netbeans.modules.uml.integration.ide.events.EventHandler$WorkerThread.run(EventHandler.java:296)
Comment 1 Andrew Korostelev 2006-09-25 13:54:23 UTC
follow steps exactly.
Bug is not reproducible for me if I do several different steps.
Like RE UML project instead of JAva-related model, expand some nodel in java or
uml project to see what is created there and smth like this...
Comment 2 Andrew Korostelev 2006-09-25 13:54:47 UTC
Created attachment 34451 [details]
error log
Comment 3 Kris Richards 2006-10-05 20:44:54 UTC
This was fixed as a result of the reverse engineering work. This bug is not reproducible as of build 
200610020000 
Comment 4 Andrew Korostelev 2006-10-06 14:30:31 UTC
can't find another way to reproduce this bug.
mark as verified in uml 061006