United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6204620 : realloc should not be used in cjavajni.cpp

Details
Type:
Bug
Submit Date:
2004-12-06
Status:
Resolved
Updated Date:
2010-12-06
Project Name:
JDK
Resolved Date:
2005-06-22
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports
Backport:
Backport:
Duplicate:
Relates:

Sub Tasks

Description
using realloc in cjavajni causes crashes on windows due to the following Microsoft realloc bug:

http://support.microsoft.com/?kbid=225099&sd=msdn

Due to this, realloc should not be used in CJavaJNI.cpp.
Just malloc a big buffer and expand if necessary.

Here's an example of the customer's crash due to this bug:

0001:00018520       ___sbh_alloc_new_region    10019520 f  
> LIBCMTD:sbheap.obj
> 0001:00017550       __realloc_base             10018550 f  
> LIBCMTD:realloc.obj
> 0001:00000130       ?GetSystemTrayWnd@@YAPAUHWND__@@XZ 10001130 f  
> Utils.obj
> 0001:00010040       _realloc                   10011040 f  
> LIBCMTD:dbgheap.obj
> 0001:00005fe0      
> ?dumpAllStacks@CJavaJNI@@SGPAV_jobject@@PAUJNIEnv_@@PAV_jclass@@@Z
> 10006fe0 f   CJavaJNI.obj
> 
> 
> bash-2.00$ pwd
> /java/jle_dev/kirill/5.0_intermediaries
> bash-2.00$
> 
> bash-2.00$ /net/jano/export/disk05/hotspot/bin/hs_err
> --jvm=build/windows-i586/bin/client/jvm.dll
> --map=build/windows-i586/bin/client/jvm.map hs_err_pid3148.log
> 
> ld/windows-i586/bin/client/jvm.map hs_err_pid3148.log
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x02ac9b24, pid=3148,
> tid=3292
> #
> # Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode)
> # Problematic frame:
> # C  [jpishare_g.dll+0x19b24]
> #
> 
> ---------------  T H R E A D  ---------------
> 
> Current thread (0x029371c8):  VMThread [id=3292]
> 
> siginfo: ExceptionCode=0xc0000005, writing address 0x7ae0509c
> ;; si_signo=0xc0000005    EXCEPTION_ACCESS_VIOLATION /* The thread tried
> to read from or write to a virtual address for which it does not have
> the appropriate access. */
> 
> Registers:
> EAX=0x7ae050a0, EBX=0x6d78692c, ECX=0x78303d34, EDX=0x78303d34
> ESP=0x0f23f304, EBP=0x0f23f334, ESI=0x0f23f3dc, EDI=0x0f23f434
> EIP=0x02ac9b24, EFLAGS=0x00010216
> 
> Top of Stack: (sp=0x0f23f304)
> 0x0f23f304:   01fb1fd8 02b0136c 00000100 6d78692c
> 0x0f23f314:   0000003f 00000130 01fb2314 02b0123c
> 0x0f23f324:   78303d34 00001240 01fb211c 00000000
> 0x0f23f334:   0f23f35c 02ac85d6 01fb1e90 02b01240
> 0x0f23f344:   0000011a 00000000 0f23f360 01fb1e90
> 0x0f23f354:   00000000 02b01240 0f23f38c 02ac1354
> 0x0f23f364:   02b01240 0000011a 0f23f434 0f23f3dc
> 0x0f23f374:   6d78692c 00000000 00000059 02ac38f9
> 
> Instructions: (pc=0x02ac9b24)
> 0x02ac9b14:   4d d4 8b 55 f0 89 11 8b 45 d4 03 45 f0 8b 4d f0
> 0x02ac9b24:   89 48 fc 8b 55 e4 83 c2 01 8b 45 ec 89 10 8b 4d
> ;; 02ac9b14 4d                      dec    %ebp
> ;; 02ac9b15 d4 8b                   aam    $0xffffff8b
> ;; 02ac9b17 55                      push   %ebp
> ;; 02ac9b18 f0 89 11                lock mov %edx,(%ecx)
> ;; 02ac9b1b 8b 45 d4                mov    0xffffffd4(%ebp),%eax
> ;; 02ac9b1e 03 45 f0                add    0xfffffff0(%ebp),%eax
> ;; 02ac9b21 8b 4d f0                mov    0xfffffff0(%ebp),%ecx
> ;; ---------------
> ;; 02ac9b24 89 48 fc                mov    %ecx,0xfffffffc(%eax)
> ;; 02ac9b27 8b 55 e4                mov    0xffffffe4(%ebp),%edx
> ;; 02ac9b2a 83 c2 01                add    $0x1,%edx
> ;; 02ac9b2d 8b 45 ec                mov    0xffffffec(%ebp),%eax
> ;; 02ac9b30 89 10                   mov    %edx,(%eax)
> ;; 02ac9b32 8b 4d ff                mov    0xffffffff(%ebp),%ecx
> 
> 
> Stack: [0x0f140000,0x0f240000),  sp=0x0f23f304,  free space=1020k
> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
> C=native code)
> C  [jpishare_g.dll+0x19b24]
> C  [jpishare_g.dll+0x185d6]
> C  [jpishare_g.dll+0x11354]
> C  [jpishare_g.dll+0x11089]
> C  [jpishare_g.dll+0x11056]
> C  [jpishare_g.dll+0x6f5b]
> V  [jvm.dll+0x9b9ce] ;; _jio_vfprintf+0x17
> V  [jvm.dll+0x9b9b3] ;; _jio_fprintf+0x12
> V  [jvm.dll+0xd45f4] ;; ?print@outputStream@@QAAXPBDZZ+0x36
> V  [jvm.dll+0xd1647] ;; ?print@OSThread@@QAEXXZ+0x70
> V  [jvm.dll+0x1179d4] ;; ?doit@VM_PrintThreads@@UAEXXZ+0x9
> V  [jvm.dll+0x117163] ;;
> ?evaluate_operation@VMThread@@AAEXPAVVM_Operation@@@Z+0x1a
> V  [jvm.dll+0x117303] ;; ?loop@VMThread@@QAEXXZ+0x164
> V  [jvm.dll+0x117068] ;; ?run@VMThread@@UAEXXZ+0x59
> C  [msvcrt.dll+0x27fb8]
> C  [kernel32.dll+0x1d33b]
> 
> VM_Operation (0x112bf1a0): print threads, mode: safepoint, requested by
> thread 0x0fa9e500
> 
> 
> ---------------  P R O C E S S  ---------------
> 
> Java Threads: ( => current thread )
>   0x1699cd18 JavaThread "AWT-EventQueue-5" [_thread_blocked, id=3180]
>   0x15cbd428 JavaThread "Thread-7887" daemon [_thread_blocked, id=2696]
>   0x15b864e8 JavaThread "Direct Clip" daemon [_thread_blocked, id=160]
>   0x15a4d628 JavaThread "AlarmBlink timer thread" [_thread_blocked, id=4000]
>   0x16862310 JavaThread "Direct Clip" daemon [_thread_blocked, id=856]
>   0x15a701d8 JavaThread "VDSKeepAlive for __DEFAULT_SERVERID__"
> [_thread_blocked, id=3828]
>   0x15b5dc08 JavaThread "asyncRead" [_thread_in_native, id=3984]
>   0x15ae8148 JavaThread "Java Sound Event Dispatcher" daemon
> [_thread_blocked, id=1404]
>   0x15ac0790 JavaThread "STARDOM VDS HMI Graphic Engine Applet [
> Msg_AlarmSummary ]" [_thread_blocked, id=3428]
>   0x0fb19870 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3908]
>   0x15aebc90 JavaThread "Thread-7760" [_thread_in_native, id=3960]
>   0x15d51660 JavaThread "STARDOM VDS HMI Graphic Engine Applet [
> 00_PrimitiveMenu ]" [_thread_blocked, id=2524]
>   0x16826b10 JavaThread "STARDOM VDS HMI Graphic Engine Applet [
> Button_001 ]" [_thread_blocked, id=3708]
>   0x0fabe590 JavaThread "Thread-20" [_thread_in_native, id=3700]
>   0x0fb67e18 JavaThread "TimerQueue" daemon [_thread_blocked, id=3684]
>   0x0fb2e008 JavaThread "TimerQueue" daemon [_thread_blocked, id=3376]
>   0x0fb16e38 JavaThread "ConsoleWriterThread" daemon [_thread_blocked,
> id=3368]
>   0x0fa9e500 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=3364]
>   0x0fa23a80 JavaThread "AWT-Shutdown" [_thread_blocked, id=3360]
>   0x0fa3f538 JavaThread "traceMsgQueueThread" [_thread_blocked, id=3348]
>   0x0fa23f58 JavaThread "AWT-Windows" daemon [_thread_blocked, id=3344]
>   0x0fa268c8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3336]
>   0x0fa13038 JavaThread "OIServer" daemon [_thread_in_native, id=3332]
>   0x0f9f87b8 JavaThread "Low Memory Detector" daemon [_thread_blocked,
> id=3324]
>   0x0f9f7430 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3320]
>   0x0f9f66b8 JavaThread "Signal Dispatcher" daemon [_thread_blocked,
> id=3316]
>   0x029aa720 JavaThread "Thread-2" daemon [_thread_in_native, id=3312]
>   0x029a9a78 JavaThread "Thread-1" daemon [_thread_blocked, id=3308]
>   0x0fa01610 JavaThread "__OI__Sampler" daemon [_thread_blocked, id=3304]
>   0x0296bc80 JavaThread "Finalizer" daemon [_thread_blocked, id=3300]
>   0x02990b68 JavaThread "Reference Handler" daemon [_thread_blocked,
> id=3296]
>   0x028b6878 JavaThread "main" [_thread_in_native, id=3152]
> 
> Other Threads:
> =>0x029371c8 VMThread [id=3292]
>   0x0299e010 WatcherThread [id=3328]
> 
> VM state:at safepoint (normal execution)
> 
> VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
> [0x028b6ef0/0x00000488] tty_lock - owner thread: 0x029371c8
> [0x028b4238/0x000005dc] Threads_lock - owner thread: 0x029371c8
> 
> Heap
>  def new generation   total 6848K, used 6848K [0x05080000, 0x057e0000,
> 0x057e0000)
>   eden space 6144K, 100% used [0x05080000, 0x05680000, 0x05680000)
>   from space 704K, 100% used [0x05730000, 0x057e0000, 0x057e0000)
>   to   space 704K,   0% used [0x05680000, 0x05680000, 0x05730000)
>  tenured generation   total 90752K, used 90725K [0x057e0000, 0x0b080000,
> 0x0b080000)
>    the space 90752K,  99% used [0x057e0000, 0x0b079620, 0x0b079800,
> 0x0b080000)
>  compacting perm gen  total 15872K, used 15633K [0x0b080000, 0x0c000000,
> 0x0f080000)
>    the space 15872K,  98% used [0x0b080000, 0x0bfc4560, 0x0bfc4600,
> 0x0c000000)
> No shared spaces configured.
> 
> Dynamic libraries:
> 0x00400000 - 0x00419000     D:\Program Files\Internet Explorer\iexplore.exe
> 0x77f50000 - 0x77ff7000     D:\WINDOWS\System32\ntdll.dll
> 0x77e60000 - 0x77f46000     D:\WINDOWS\system32\kernel32.dll
> 0x77c10000 - 0x77c63000     D:\WINDOWS\system32\msvcrt.dll
> 0x77d40000 - 0x77dcc000     D:\WINDOWS\system32\USER32.dll
> 0x7e090000 - 0x7e0d1000     D:\WINDOWS\system32\GDI32.dll
> 0x77dd0000 - 0x77e5d000     D:\WINDOWS\system32\ADVAPI32.dll
> 0x78000000 - 0x78087000     D:\WINDOWS\system32\RPCRT4.dll
> 0x70a70000 - 0x70ad4000     D:\WINDOWS\system32\SHLWAPI.dll
> 0x769c0000 - 0x76b0a000     D:\WINDOWS\System32\SHDOCVW.dll
> 0x10000000 - 0x1002e000     D:\WINDOWS\System32\qaphooks.dll
> 0x71950000 - 0x71a34000    
> D:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
> 0x773d0000 - 0x77bc7000     D:\WINDOWS\system32\SHELL32.dll
> 0x77340000 - 0x773cb000     D:\WINDOWS\system32\comctl32.dll
> 0x771b0000 - 0x772d4000     D:\WINDOWS\system32\ole32.dll
> 0x5ad70000 - 0x5ada4000     D:\WINDOWS\System32\uxtheme.dll
> 0x75f80000 - 0x7607c000     D:\WINDOWS\System32\BROWSEUI.dll
> 0x72430000 - 0x72442000     D:\WINDOWS\System32\browselc.dll
> 0x75f40000 - 0x75f5f000     D:\WINDOWS\system32\appHelp.dll
> 0x7c890000 - 0x7c911000     D:\WINDOWS\System32\CLBCATQ.DLL
> 0x77120000 - 0x771ab000     D:\WINDOWS\system32\OLEAUT32.dll
> 0x77050000 - 0x77115000     D:\WINDOWS\System32\COMRes.dll
> 0x77c00000 - 0x77c07000     D:\WINDOWS\system32\VERSION.dll
> 0x76200000 - 0x76298000     D:\WINDOWS\system32\WININET.dll
> 0x762c0000 - 0x7634b000     D:\WINDOWS\system32\CRYPT32.dll
> 0x762a0000 - 0x762b0000     D:\WINDOWS\system32\MSASN1.dll
> 0x76f90000 - 0x76fa0000     D:\WINDOWS\System32\Secur32.dll
> 0x76620000 - 0x7666e000     D:\WINDOWS\System32\cscui.dll
> 0x76600000 - 0x7661b000     D:\WINDOWS\System32\CSCDLL.dll
> 0x76670000 - 0x76757000     D:\WINDOWS\System32\SETUPAPI.dll
> 0x00b60000 - 0x00b6c000     D:\Program Files\Adobe\Acrobat
> 6.0\Reader\ActiveX\AcroIEHelper.dll
> 0x00d80000 - 0x00e4c000     D:\Program Files\Segue\SilkTest\qaphlpr.dll
> 0x73000000 - 0x73023000     D:\WINDOWS\System32\WINSPOOL.DRV
> 0x74c80000 - 0x74cac000     D:\WINDOWS\System32\OLEACC.DLL
> 0x55900000 - 0x55961000     D:\WINDOWS\System32\MSVCP60.dll
> 0x760f0000 - 0x7616a000     D:\WINDOWS\system32\urlmon.dll
> 0x74810000 - 0x74ac7000     D:\WINDOWS\System32\mshtml.dll
> 0x75e90000 - 0x75f37000     D:\WINDOWS\System32\SXS.DLL
> 0x76170000 - 0x761f8000     D:\WINDOWS\System32\shdoclc.dll
> 0x74770000 - 0x747ff000     D:\WINDOWS\System32\MLANG.dll
> 0x01710000 - 0x01911000     D:\WINDOWS\System32\msi.dll
> 0x746f0000 - 0x74716000     D:\WINDOWS\System32\msimtf.dll
> 0x74720000 - 0x74764000     D:\WINDOWS\System32\MSCTF.dll
> 0x746c0000 - 0x746e7000     D:\WINDOWS\System32\MSLS31.DLL
> 0x76390000 - 0x763ac000     D:\WINDOWS\System32\IMM32.DLL
> 0x71c20000 - 0x71c6e000     D:\WINDOWS\System32\netapi32.dll
> 0x71b20000 - 0x71b31000     D:\WINDOWS\system32\MPR.dll
> 0x75f60000 - 0x75f66000     D:\WINDOWS\System32\drprov.dll
> 0x71c10000 - 0x71c1d000     D:\WINDOWS\System32\ntlanman.dll
> 0x71cd0000 - 0x71ce6000     D:\WINDOWS\System32\NETUI0.dll
> 0x71c90000 - 0x71ccc000     D:\WINDOWS\System32\NETUI1.dll
> 0x71c80000 - 0x71c86000     D:\WINDOWS\System32\NETRAP.dll
> 0x71bf0000 - 0x71c01000     D:\WINDOWS\System32\SAMLIB.dll
> 0x75f70000 - 0x75f79000     D:\WINDOWS\System32\davclnt.dll
> 0x73d70000 - 0x73d82000     D:\WINDOWS\System32\shgina.dll
> 0x75970000 - 0x75a62000     D:\WINDOWS\System32\MSGINA.dll
> 0x75a70000 - 0x75b15000     D:\WINDOWS\system32\USERENV.dll
> 0x76360000 - 0x7636f000     D:\WINDOWS\System32\WINSTA.dll
> 0x1f7b0000 - 0x1f7e1000     D:\WINDOWS\System32\ODBC32.dll
> 0x763b0000 - 0x763f5000     D:\WINDOWS\system32\comdlg32.dll
> 0x1f850000 - 0x1f866000     D:\WINDOWS\System32\odbcint.dll
> 0x76b40000 - 0x76b6c000     D:\WINDOWS\System32\WINMM.dll
> 0x72d20000 - 0x72d29000     D:\WINDOWS\System32\wdmaud.drv
> 0x72d10000 - 0x72d18000     D:\WINDOWS\System32\msacm32.drv
> 0x77be0000 - 0x77bf4000     D:\WINDOWS\System32\MSACM32.dll
> 0x77bd0000 - 0x77bd7000     D:\WINDOWS\System32\midimap.dll
> 0x71ad0000 - 0x71ad8000     D:\WINDOWS\System32\wsock32.dll
> 0x71ab0000 - 0x71ac5000     D:\WINDOWS\System32\WS2_32.dll
> 0x71aa0000 - 0x71aa8000     D:\WINDOWS\System32\WS2HELP.dll
> 0x71a50000 - 0x71a8b000     D:\WINDOWS\system32\mswsock.dll
> 0x76ee0000 - 0x76f17000     D:\WINDOWS\System32\RASAPI32.DLL
> 0x76e90000 - 0x76ea1000     D:\WINDOWS\System32\rasman.dll
> 0x76eb0000 - 0x76edb000     D:\WINDOWS\System32\TAPI32.dll
> 0x76e80000 - 0x76e8d000     D:\WINDOWS\System32\rtutils.dll
> 0x71a90000 - 0x71a98000     D:\WINDOWS\System32\wshtcpip.dll
> 0x722b0000 - 0x722b5000     D:\WINDOWS\System32\sensapi.dll
> 0x76fc0000 - 0x76fc5000     D:\WINDOWS\System32\rasadhlp.dll
> 0x76f20000 - 0x76f45000     D:\WINDOWS\System32\DNSAPI.dll
> 0x76fb0000 - 0x76fb7000     D:\WINDOWS\System32\winrnr.dll
> 0x76f60000 - 0x76f8c000     D:\WINDOWS\system32\WLDAP32.dll
> 0x75c50000 - 0x75ce1000     D:\WINDOWS\System32\jscript.dll
> 0x6d590000 - 0x6d5a1000     D:\Program Files\Java\jre1.5.0\bin\npjpi150.dll
> 0x5edd0000 - 0x5edea000     D:\WINDOWS\System32\OLEPRO32.DLL
> 0x01f50000 - 0x01f98000     D:\Program Files\Java\jre1.5.0\bin\jpiexp32.dll
> 0x02ab0000 - 0x02af3000     D:\Program
> Files\Java\jre1.5.0\bin\jpishare_g.dll
> 0x6d640000 - 0x6d7c5000     D:\PROGRA~1\Java\JRE15~1.0\bin\client\jvm.dll
> 0x6d280000 - 0x6d288000     D:\PROGRA~1\Java\JRE15~1.0\bin\hpi.dll
> 0x76bf0000 - 0x76bfb000     D:\WINDOWS\System32\PSAPI.DLL
> 0x01fd0000 - 0x01feb000     D:\Optimizeit\OptimizeitSuite60\lib\oii.dll
> 0x6d610000 - 0x6d61c000     D:\PROGRA~1\Java\JRE15~1.0\bin\verify.dll
> 0x6d300000 - 0x6d31d000     D:\PROGRA~1\Java\JRE15~1.0\bin\java.dll
> 0x6d630000 - 0x6d63f000     D:\PROGRA~1\Java\JRE15~1.0\bin\zip.dll
> 0x0f440000 - 0x0f473000     D:\Optimizeit\OptimizeitSuite60\lib\pri.dll
> 0x6d000000 - 0x6d166000     D:\Program Files\Java\jre1.5.0\bin\awt.dll
> 0x6d4c0000 - 0x6d4d3000     D:\Program Files\Java\jre1.5.0\bin\net.dll
> 0x0fb90000 - 0x0fbd4000     D:\Optimizeit\OptimizeitSuite60\lib\auditjni.dll
> 0x73760000 - 0x737a4000     D:\WINDOWS\System32\ddraw.dll
> 0x73bc0000 - 0x73bc6000     D:\WINDOWS\System32\DCIMAN32.dll
> 0x73940000 - 0x73a07000     D:\WINDOWS\System32\D3DIM700.DLL
> 0x6d240000 - 0x6d27d000     D:\Program
> Files\Java\jre1.5.0\bin\fontmanager.dll
> 0x6d1f0000 - 0x6d203000     D:\Program Files\Java\jre1.5.0\bin\deploy.dll
> 0x6d5d0000 - 0x6d5ed000     D:\Program Files\Java\jre1.5.0\bin\RegUtils.dll
> 0x11060000 - 0x110a4000     D:\Program
> Files\Java\jre1.5.0\bin\jpicom32_g.dll
> 0x6d4e0000 - 0x6d4e9000     D:\Program Files\Java\jre1.5.0\bin\nio.dll
> 0x74cb0000 - 0x74d1f000     D:\WINDOWS\System32\mshtmled.dll
> 0x71d40000 - 0x71d5b000     D:\WINDOWS\System32\actxprxy.dll
> 0x6d3c0000 - 0x6d3df000     D:\Program Files\Java\jre1.5.0\bin\jpeg.dll
> 0x6d1c0000 - 0x6d1e3000     D:\Program Files\Java\jre1.5.0\bin\dcpr.dll
> 0x6cc60000 - 0x6cc6b000     D:\WINDOWS\System32\dispex.dll
> 0x02180000 - 0x02188000     D:\WINDOWS\System32\yfsprchook.dll
> 0x73dd0000 - 0x73ec2000     D:\WINDOWS\System32\MFC42.DLL
> 0x6d470000 - 0x6d495000     D:\Program Files\Java\jre1.5.0\bin\jsound.dll
> 0x6d4a0000 - 0x6d4a7000     D:\Program Files\Java\jre1.5.0\bin\jsoundds.dll
> 0x73f10000 - 0x73f65000     D:\WINDOWS\System32\DSOUND.dll
> 0x73ee0000 - 0x73ee4000     D:\WINDOWS\System32\KsUser.dll
> 
> VM Arguments:
> jvm_args:
> -Xbootclasspath/a:D:\PROGRA~1\Java\JRE15~1.0\lib\deploy.jar;D:\PROGRA~1\Java\JRE15~1.0\lib\plugin.jar
> -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote
> -Djavaplugin.version=1.5.0 -Djavaplugin.nodotversion=150
> -Dbrowser=sun.plugin -DtrustProxy=true
> -Dapplication.home=D:\PROGRA~1\Java\JRE15~1.0 -verbose
> -Xrunoii:filter=D:\Optimizeit\OptimizeitSuite60/filters/myfilter.oif
> -Xbootclasspath/a:D:\Optimizeit\OptimizeitSuite60\lib\oibcp.jar;D:\Optimizeit\OptimizeitSuite60\lib\optit.jar;
> -DGCOPSIZE=5 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol
> -Djavaplugin.vm.options=-Djava.class.path=D:\PROGRA~1\Java\JRE15~1.0\classes
> -Xbootclasspath/a:D:\PROGRA~1\Java\JRE15~1.0\lib\deploy.jar;D:\PROGRA~1\Java\JRE15~1.0\lib\plugin.jar
> -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverif

                                    

Comments
EVALUATION

Fixing it in Mustang b40.
Will backport to previous update releases after customer has tested the fix.
###@###.### 2005-05-27 19:06:27 GMT
                                     
2005-05-27
SUGGESTED FIX

sccsdiff -r1.126 -r1.125 SCCS/s.CJavaJNI.cpp

------- CJavaJNI.cpp -------
1370,1376c1370
< 	    char* newbuffer = (char *) malloc(lstrlen(g_pszConsoleOutput) + len + 1);
< 	    if (newbuffer) {
< 		newbuffer[0] = '\0';
< 		memcpy(newbuffer, g_pszConsoleOutput, lstrlen(g_pszConsoleOutput));
< 		free(g_pszConsoleOutput);
< 		g_pszConsoleOutput = newbuffer;
< 	    }
---
> 	    g_pszConsoleOutput = (char *) realloc(g_pszConsoleOutput, lstrlen(g_pszConsoleOutput) + len + 1);
###@###.### 2005-05-27 19:06:27 GMT
                                     
2005-05-27



Hardware and Software, Engineered to Work Together