You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org> on 2009/06/25 13:21:07 UTC

[jira] Created: (HARMONY-6246) Crash during debugging session

Crash during debugging session
------------------------------

                 Key: HARMONY-6246
                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
             Project: Harmony
          Issue Type: Bug
          Components: VM
    Affects Versions: 5.0M10
         Environment: Windows XP SP2

java version "1.5.0"
pre-alpha : not complete or compatible
svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
            Reporter: Hristo Spaschev Iliev
         Attachments: crash_details.zip

VM crashes with GPFault during a debug session.

More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6246) Crash during debugging session

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hristo Spaschev Iliev updated HARMONY-6246:
-------------------------------------------

    Attachment: test.zip

Updated version of the test with correct sources

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Jim Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724459#action_12724459 ] 

Jim Yu commented on HARMONY-6246:
---------------------------------

Hi Hristo,
It appears the crash happened in Harmony JVM. Can you see this crash intermittently or consistently? If it happens consistently,  it would be great if you can provide some info about the steps of reproducing this problem. Thanks.

Stack trace:
  0: 0x008df904  verify_object_header (:-1)
  1: 0x008ad59e  DeleteGlobalRef (:-1)
  2: 0x01596c22   (:-1)
  3: 0x0159fc19   (:-1)
  4: 0x01f327e4  wcscat (:-1)
  5: 0x7c90cf7a  ZwAllocateVirtualMemory (:-1)
  6: 0x7c809ab2  VirtualAllocEx (:-1)
  7: 0x7c809ac9  VirtualAllocEx (:-1)
  8: 0x7c809ac9  VirtualAllocEx (:-1)
  9: 0x7c809a79  VirtualAlloc (:-1)
 10: 0x008f7281  port_vmem_allocate (:-1)
 11: 0x008b25a6  SetBooleanFieldOffset (:-1)
 12: 0x008b262e  SetBooleanField (:-1)
 13: 0x008ee2cd  jthread_wait_for_all_nondaemon_threads (:-1)
 14: 0x01dd58b1  hythread_create (:-1)
 15: 0x01f3b381  endthreadex (:-1)
 16: 0x7c80b699  GetModuleFileNameA (:-1)
<end of stack trace>

Crashed module:
c:\jdk\harmony-jdk-782693\jre\bin\default\harmonyvm.dll
(VM native code)

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6246) Crash during debugging session

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hristo Spaschev Iliev updated HARMONY-6246:
-------------------------------------------

    Attachment:     (was: test.zip)

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6246) Crash during debugging session

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hristo Spaschev Iliev updated HARMONY-6246:
-------------------------------------------

    Attachment: test.zip

Test.java can be found inside the JAR.

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727776#action_12727776 ] 

Gregory Shimansky commented on HARMONY-6246:
--------------------------------------------

Just a guess, that since crash happens while allocating new memory, it happens because of some memory corruption. This might happen because of VM's behavior or JPDA agent which is loaded into VM address space. It would be much more helpful to run debug build of Harmony and therefore see stack trace with line numbers.

I also wonder if JPDA agent from Sun's VM is loaded into Harmony VM... Theoretically it should work alright, but who knows, especially in case it is 6.0 version.

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6246) Crash during debugging session

Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Deakin updated HARMONY-6246:
-----------------------------------

    Fix Version/s: 5.0M11

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>             Fix For: 5.0M11
>
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734622#action_12734622 ] 

Hristo Spaschev Iliev commented on HARMONY-6246:
------------------------------------------------

Hi,

I attached the correct sources.

Regards,
Hristo Iliev

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12729171#action_12729171 ] 

Oliver Deakin commented on HARMONY-6246:
----------------------------------------

It looks to me like we're running on the Harmony JDWP as the console dump includes:

c:\jdk\harmony-jdk-782693\jre\bin\jdwp.dll:
        0x01590000:0x015ba000
c:\jdk\harmony-jdk-782693\jre\bin\dt_socket.dll:
        0x01d50000:0x01d56000

I saw a failure the first time I ran a simple HelloWorld-with-variables type test [1] - when I hovered over the variable name the debug session exited and the popup just said "a=<unknown>". However I did not get a crash dump and since then the test has passed for me successfully (whether I debug in Eclipse or launch at the command line and debug remotely). 

Hristo - could you provide the test case you were using please? Id like to track this failure down and also figure out if it is fixed by the updated JDWP Im working on getting into the Java 6 branch.
Thanks!

[1]
public class HelloWorld {
    public static void main(String[] args) throws Exception {
        System.out.println("HelloWorld");
        int a = 5;
        for (int i=0; i<10; i++) {
        	a++;
        }
        System.out.println("a="+a);
    }
}

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724821#action_12724821 ] 

Jimmy, Jing Lv commented on HARMONY-6246:
-----------------------------------------

Hi Hristo,

       I guess the different version vm is not the cause, or it may throw a bad command exception (if it calls a java6 jdwp command).  It seems a problem of threading adjusting(maybe suspend the thread to read the threadlocal or something), need to investigate if it is a jdwp or vm issue.
       BTW Harmony6 JDWP is going to committed into the codebase(Oliver is the owner of the task) and it enhance the feature and fixes several bugs, I guess maybe you can try it if the fix for this problem does not come out quickly.

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-6246) Crash during debugging session

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hristo Spaschev Iliev updated HARMONY-6246:
-------------------------------------------

    Attachment: crash_details.zip

Console output (VM parameters)
Mini dump

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12730798#action_12730798 ] 

Hristo Spaschev Iliev commented on HARMONY-6246:
------------------------------------------------

Hi,

I was able to produce a relatively small testcae (several classes), because Harmony did not crashed with pretty small tests.

I reproduced the issue with IntelliJ Idea (http://download.jetbrains.com/idea/idea10558.exe) when I tried to expand the LinkedHashSet on line 38 in com.sap.engine.bootstrap.Test class. I guess it should be the same with Eclipse.

To reproduce the issue I did the following (perhaps some of the steps are not needed but anyway):
   * run the suspended test on another machine
   * set breakpoint at the first line
   * connect to the test remotely
   * step in until i reached readPackageIndex method
   * try to pop-up and expand every more complex-looking variable

Attached you will find the the test case and the produced minidump.

Regards,
Hristo Iliev

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734573#action_12734573 ] 

Oliver Deakin commented on HARMONY-6246:
----------------------------------------

Hi Hristo, 

I ran the test and took the Test.java from test.zip to do the debugging in Eclipse, but Im not sure the code actually matches up with what the Test.class in the jar file is doing. The test run produces a lot of output like: 

  Writing packages for [/usr/sap/BKP/J16/j2ee/cluster/bin/services/developmentserver_environment/development~server~environment.jar] took [16] ms 
  Writing packages for [/usr/sap/BKP/J16/j2ee/cluster/bin/ext/com.sap.xi.gui.lib/lib/private/com.sap.xpi.ib.upload.core.jar] took [16] ms 
  Writing packages for [/usr/sap/BKP/J16/j2ee/cluster/bin/ext/com.sap.xi.util.misc/lib/com.sap.aii.proxy.gen.jar] took [16] ms 
  Writing packages for [/usr/sap/BKP/J16/j2ee/cluster/bin/ext/tc.CBS.API/lib/private/tc~di~cbs~common_core.jar] took [16] ms 
  Writing packages for [/usr/sap/BKP/J16/j2ee/cluster/bin/ext/com.sap.tc.cmi/lib/com.sap.tc.cmi_api.jar] took [31] ms 
  Writing packages for [/usr/sap/BKP/J16/j2ee/cluster/bin/ext/ct.siemens.de~ctp~j2ee_bsm/dxmSPML-1.4.jar] took [47] ms 

but the actual contents of Test.java seem to try and list the c:\inbox directory in various ways (and does not work as source to debug the Test.jar). I have tried running the directory listing test and hovering over variables, but they all work ok for me. Is this the source you intended to be in the jar file? 

Regards, 
Oliver

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-6246) Crash during debugging session

Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Deakin resolved HARMONY-6246.
------------------------------------

    Resolution: Fixed

In ObjectReference.cpp we were not handling array type references correctly - fix applied at repo revision r798830. The test now passes for me in Eclipse where previously it crashed 100%. Please verify the bug has been fixed.

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Jim Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12725517#action_12725517 ] 

Jim Yu commented on HARMONY-6246:
---------------------------------

Hi Hristo,
Thanks for your info of reproducing the problem. It would be helpful to diagnose the issue if you can upload the archive here which you are debugging. According to your description above, I suspect it was more likely a JDWP problem. The current code base of JDWP is a bit out of date and we have solved many defects in Harmony 6.0 JDWP which will be committed soon as Jimmy mentioned above. Anyway, will try your tests to investigate first : )

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736049#action_12736049 ] 

Oliver Deakin commented on HARMONY-6246:
----------------------------------------

I have recreated this failure now in Eclipse - steps to reproduce are:

1) Launch test in Eclipse with breakpoint at line 102 of Test.java.
2) Expand the "packages" variable in the variable view.
3) Click on the "Show Logical Structure" button.

This method crashes 100% for me with the following stack trace:

Stack trace:
  0: 0x01c3fa44  oh_deallocate_global_handle (c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\object\object_handles.cpp:252)
  1: 0x01c0d6be  DeleteGlobalRef (c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\jni\jni.cpp:918)
  2: 0x00f76c22  jdwp::ObjectReference::InvokeMethodHandler::Execute (:-1)
  3: 0x00f7fc19  jdwp::AsyncCommandHandler::StartExecution (:-1)
  4: 0x034216b3  _crtLCMapStringA (:-1)
  5: 0x7c90d4ea  ZwAllocateVirtualMemory (:-1)
  6: 0x7c809aa2  VirtualAllocEx (:-1)
  7: 0x7c809ab9  VirtualAllocEx (:-1)
  8: 0x01c4e3fd  jthread_wrapper_start_proc (c:\harmony\svn-checkouts\federated\working_vm\vm\vmcore\src\thread\thread_java_basic.cpp:160)
  9: 0x01f65b91  thread_start_func (c:\harmony\svn-checkouts\federated\working_vm\vm\port\src\thread\win\thread_os.c:59)
 10: 0x03429565  endthreadex (:-1)
 11: 0x7c80b683  GetModuleFileNameA (:-1)
<end of stack trace>

Crashed module:
c:\harmony\svn-checkouts\federated\target\hdk\jdk\jre\bin\default\harmonyvm.dll
(VM native code)

VM attached threads:

--->[00001458]  '_jdwp_ObjectReference_InvokeMethodHandler'
    [000014DC]  '_jdwp_PacketDispatcher'
    [000014E0]  '_jdwp_EventDispatcher'
    [000014F4]  'ref handler'
    [000014FC]  'finalizer'
    [00001500]  'finalizer'
    [000017CC]  'main'


I have tested with the newly updated JDWP in the Java 6 branch and the failure does not occur there. Im going to have a look at ObjectReference::InvokeMethodHandler::Execute for the DeleteGlobalRef() call and see if I can find out what is going wrong.

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Hristo Spaschev Iliev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724494#action_12724494 ] 

Hristo Spaschev Iliev commented on HARMONY-6246:
------------------------------------------------

Hi,

The crash happens almost every time when I step through the code.

The steps to reproduce this issue:
1) start a program with added debug VM options (-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8888)
2) connect with IDE to the suspended process
3) stop at some point of the code (i have a break point almost at the beggining of the code)
4) "step over" several times 
5) hold my cursor over some variable to see its value

Stepping through the code seems to be no problem. The crash always happens when I want to see the value of a variable (step 5)

I can provide the archive which I'm debugging as well the exact version of the IDE.

Btw on the IDE side I have a bundled SunVM:
  java version "1.6.0_12"
  Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
  Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

Can this be the reason for the crash?

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-6246) Crash during debugging session

Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735645#action_12735645 ] 

Oliver Deakin commented on HARMONY-6246:
----------------------------------------

Unfortunately I am still unable to recreate the failure in Eclipse using the new test case. The steps I followed were:

1) Set a breakpoint at the first line of main().
2) Step over and then into readPackageIndex().
3) Try random steps inside this method, or resuming to a breakpoint later in the method.
4) Hover over to get a value popup and expand various variables in the variable view (including expanding the LinkedHashSet "packages").

This all appears to work well for me, although I am running the test on the same machine I am debugging on. The next thing I will try is running on a remote machine and debugging locally, and if that does not fail I will try and set up IDEA and see if I can recreate there.

> Crash during debugging session
> ------------------------------
>
>                 Key: HARMONY-6246
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6246
>             Project: Harmony
>          Issue Type: Bug
>          Components: VM
>    Affects Versions: 5.0M10
>         Environment: Windows XP SP2
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r782693, (Jun 12 2009), Windows/ia32/msvc 1310, release build 
>            Reporter: Hristo Spaschev Iliev
>         Attachments: crash_details.zip, test.zip
>
>
> VM crashes with GPFault during a debug session.
> More details can be found attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.