Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

An unexpected exception detect in native code outside VM. STACK_OVERFLOW

843829Aug 6 2002 — edited Oct 22 2004
Hi ! I am Anoop Mishra,

I am mentioning the problem to you:
I have made the Encoder/Decoder windowsDLL with the help of java generated header file for JNI interface. Regarding the JNI Interface, it is correct since when i pass codec type as 1 in the DLL function, it works perfectly. But when i pass codec type parameter 2 in DLL function it gives me Stack Overflow Error.

The Same DLL code when i test it on C++ test function, it works for both codec type 1 and 2, without any problem. I want to know why the same DLL give error on java interface and not giving any error on C++ test function.

Below this i am mentioning the exact error message which i got from Java test function.

/***********************************Error Message ********************/


An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_STACK_OVERFLOW occurred at PC=0x100867e5. Function name=_chkstk



An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_STACK_OVERFLOW occurred at PC=0x100867e5
Function name=_chkstk
Library=E:\codec-type-check\Anp_ver\ofi_codecdll.dll
Source file = F:\VS70Builds\9466\vc\crtbld\crt\src\intel\chkstk.asm : 91


Current Java thread:
at ofi_vc_codec.compressframe(Native Method)
at ofi_codec_main.run(ofi_codec_main.java:149)

Dynamic libraries:
0x00400000 - 0x00405000 c:\jdk3\bin\java.exe
0x77F50000 - 0x77FF9000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F45000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5B000 C:\WINDOWS\system32\ADVAPI32.dll
0x77CC0000 - 0x77D35000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x6D420000 - 0x6D4EF000 c:\jdk3\jre\bin\hotspot\jvm.dll
0x77D40000 - 0x77DCD000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x6D220000 - 0x6D227000 c:\jdk3\jre\bin\hpi.dll
0x6D3B0000 - 0x6D3BD000 c:\jdk3\jre\bin\verify.dll
0x6D250000 - 0x6D266000 c:\jdk3\jre\bin\java.dll
0x6D3C0000 - 0x6D3CD000 c:\jdk3\jre\bin\zip.dll
0x10000000 - 0x1016B000 E:\codec-type-check\Anp_ver\ofi_codecdll.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58C000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL



Local Time = Fri Aug 02 17:14:17 2002
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode)
#
# An error report file has been saved as hs_err_pid2928.log.
# Please refer to the file for further information.
#

/******************************Error message End Here ****************/
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2004
Added on Aug 6 2002
7 comments
210 views