I use development builds of the NetBeans IDE on a daily basis, running on top of the latest available JDK promotion (currently 7 b08) on a PC laptop with Fedora Core (currently 6) and Gnome, using WiFi networking, 2.6.19 i686 SMP, glibc 2.5. I often suspend to RAM and resume when I am again working. I also frequently have NetBeans running. From time to time - perhaps once a week or so - when I have resumed from the suspended state and switched to the NetBeans window, it freezes gray, and looking at a log of stderr from the Java process I see that it has gotten a segmentation violation. In this state it can only be killed -9. I sometimes try to get a stack trace from gdb, but I am unable to get anything meaningful (see transcript).
I have no idea how to reproduce this problem, but if there is some diagnostic flag which would give more information, I would run with it for a while. The freeze certainly does not occur after every suspend operation. Nor does it necessarily occur when I first switch to NetBeans after resuming, but always soon afterwards. For example, today I resumed, did a couple of things in other applications, switched to NetBeans, did a couple of things in NetBeans, switched to another application, and then when I switched back to NetBeans it had frozen. But it never freezes unless I have recently (in the past few minutes) resumed from suspend. I have had this problem intermittently for months at least, so it is no recent regression.
VM flags (not including -classpath or -D...):
-XX:+HeapDumpOnOutOfMemoryError
-XX:+ShowMessageBoxOnError
-XX:HeapDumpPath=/tmp/nbheapdump
-XX:MaxPermSize=160m
-XX:PermSize=32m
-Xcheck:jni
-Xms75m
-Xmx200m
-ea
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b08)
Java HotSpot(TM) Client VM (build 1.7.0-ea-b08, mixed mode, sharing)
stderr:
---%<---
==============================================================================
Unexpected Error
------------------------------------------------------------------------------
SIGSEGV (0xb) at pc=0x061af8c1, pid=17015, tid=3047873424
Do you want to debug the problem?
To debug, run 'gdb /proc/17015/exe 17015'; then switch to thread -1247093872
Enter 'yes' to launch gdb automatically (PATH must include gdb)
Otherwise, press RETURN to abort...
==============================================================================
---%<---
(In this VM session there were also warnings like "Warning: SIGINT handler expected:libjvm.so+0x3116e0 found:0x00000001" but usually there are no other messages on stderr from the VM. These warnings appeared much earlier, before suspending.)
Attempted GDB session:
---%<---
$ gdb /proc/17015/exe 17015
GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/17015/exe, process 17015
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread -1209084224 (LWP 17015)]
[New Thread -1281373296 (LWP 21629)]
[New Thread -1254007920 (LWP 21626)]
[New Thread -1253676144 (LWP 21625)]
[New Thread -1286915184 (LWP 19410)]
[New Thread -1280017520 (LWP 19409)]
[New Thread -1273377904 (LWP 17851)]
[New Thread -1268806768 (LWP 17060)]
[New Thread -1268474992 (LWP 17059)]
[New Thread -1268143216 (LWP 17058)]
[New Thread -1267811440 (LWP 17057)]
[New Thread -1258091632 (LWP 17052)]
[New Thread -1266152560 (LWP 17043)]
[New Thread -1265820784 (LWP 17042)]
[New Thread -1257428080 (LWP 17038)]
[New Thread -1257759856 (LWP 17036)]
[New Thread -1257096304 (LWP 17034)]
[New Thread -1256731760 (LWP 17033)]
[New Thread -1253344368 (LWP 17030)]
[New Thread -1252930672 (LWP 17029)]
[New Thread -1252193392 (LWP 17024)]
[New Thread -1251574896 (LWP 17023)]
[New Thread -1251243120 (LWP 17022)]
[New Thread -1250714736 (LWP 17021)]
[New Thread -1250382960 (LWP 17020)]
[New Thread -1247954032 (LWP 17019)]
[New Thread -1247622256 (LWP 17018)]
[New Thread -1247093872 (LWP 17017)]
[New Thread -1209087088 (LWP 17016)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/jli/libjli.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/bin/../jre/lib/i386/jli/libjli.so
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/client/libjvm.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/client/libjvm.so
Reading symbols from /lib/libm.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/native_threads/libhpi.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/native_threads/libhpi.so
Reading symbols from /lib/libnsl.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libverify.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libverify.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libjava.so...
(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libjava.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libzip.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libzip.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libnet.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libnet.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libawt.so...
(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libawt.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libmlib_image.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libmlib_image.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/xawt/libmawt.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/xawt/libmawt.so
Reading symbols from /usr/lib/libXext.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXtst.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXtst.so.6
Reading symbols from /usr/lib/libXi.so.6...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXi.so.6
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libt2k.so...
(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libt2k.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libfontmanager.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libfontmanager.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libnio.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libnio.so
Reading symbols from /usr/lib/libXcursor.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libdcpr.so...
(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libdcpr.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libkcms.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libkcms.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libjpeg.so...(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libjpeg.so
Reading symbols from /space/jdk1.7.0-b08/jre/lib/i386/libmanagement.so...
(no debugging symbols found)...done.
Loaded symbols for /space/jdk1.7.0-b08/jre/lib/i386/libmanagement.so
(no debugging symbols found)
0xb7f0d402 in __kernel_vsyscall ()
(gdb) thread -1247093872
Thread ID -1247093872 not known.
(gdb) thread 17017
Thread ID 17017 not known.
(gdb) thread 3047873424
Thread ID -1247093872 not known.
(gdb) bt
#0 0xb7f0d402 in __kernel_vsyscall ()
#1 0x00bb24b7 in pthread_join () from /lib/libpthread.so.0
#2 0x0804dce8 in ContinueInNewThread ()
#3 0x080497f6 in main ()
(gdb) The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /proc/17015/exe, process 17015
---%<---