changeset 10101:5e7143c1abc1

8044762: com/sun/jdi/OptionTest.java test time out Summary: gdata could be NULL in debugInit_exit Reviewed-by: dcubed
author dsamersoff
date Wed, 18 Jun 2014 03:29:58 -0700
parents 881c1fcf342a
children 4b7e8552b328
files src/share/back/debugInit.c test/ProblemList.txt
diffstat 2 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/back/debugInit.c	Wed Jun 18 09:04:20 2014 +0200
+++ b/src/share/back/debugInit.c	Wed Jun 18 03:29:58 2014 -0700
@@ -1287,22 +1287,26 @@
     if ( error != JVMTI_ERROR_NONE ) {
         exit_code = 1;
         if ( docoredump ) {
+            LOG_MISC(("Dumping core as requested by command line"));
             finish_logging(exit_code);
             abort();
         }
     }
+
     if ( msg==NULL ) {
         msg = "";
     }
 
     LOG_MISC(("Exiting with error %s(%d): %s", jvmtiErrorText(error), error, msg));
 
-    gdata->vmDead = JNI_TRUE;
+    if (gdata != NULL) {
+        gdata->vmDead = JNI_TRUE;
 
-    /* Let's try and cleanup the JVMTI, if we even have one */
-    if ( gdata->jvmti != NULL ) {
-        /* Dispose of jvmti (gdata->jvmti becomes NULL) */
-        disposeEnvironment(gdata->jvmti);
+        /* Let's try and cleanup the JVMTI, if we even have one */
+        if ( gdata->jvmti != NULL ) {
+            /* Dispose of jvmti (gdata->jvmti becomes NULL) */
+            disposeEnvironment(gdata->jvmti);
+        }
     }
 
     /* Finish up logging. We reach here if JDWP is doing the exiting. */
--- a/test/ProblemList.txt	Wed Jun 18 09:04:20 2014 +0200
+++ b/test/ProblemList.txt	Wed Jun 18 03:29:58 2014 -0700
@@ -268,9 +268,6 @@
 # 8044419
 com/sun/jdi/JdbReadTwiceTest.sh                                 generic-all
 
-# 8046348
-com/sun/jdi/OptionTest.java                                     generic-all
-
 ############################################################################
 
 # jdk_util