There is a known bug and remedy
Sun Java (HotSpot) client JVM can crash in attach mode due to a JVM bug
Due to a JVM bug 6776659 HotSpot client JVM can crash in attach mode.
There is no crash for the server JVM: JVM option -server solves the problem
.