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.
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)
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...
Created attachment 34451 [details] error log
This was fixed as a result of the reverse engineering work. This bug is not reproducible as of build 200610020000
can't find another way to reproduce this bug. mark as verified in uml 061006