swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Swarm Java: Memory Leak Problem


From: Paul Johnson
Subject: Re: [Swarm-Support] Swarm Java: Memory Leak Problem
Date: Mon, 5 Mar 2012 11:15:24 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Lightning/1.0b2 Icedove/3.1.16

On 03/04/2012 08:33 PM, helen wrote:
> Hi everyone,
> 
> I meet with a "EXCEPTION_ACCESS_VIOLATION" error when running swarm code in 
> Java on Win7. I do have found some explanations an solutions , e.g. 
> http://pj.freefaculty.org/SwarmFaq/SwarmOnlineFaq.html#8.15. But when I used 
> Globals.env.globalZone.xprint ();  or Globals.env.dumpDirectory ();, nothing 
> was printed. Now I'm very confused, could anyone please help me? I'll be 
> appreciated.
> 
> Lin

Hello, Lin:

I'm not ignoring this, but I'm not able to help because I'm not doing any Java 
or Windows work these days.

If I were trying to help, though, there's not quite enough information. I am 
sure that others would want to know

1) Which version of Swarm are you using?

2) Do all java Swarm programs die in this same way?  There are only a few 
"really trusted" Java Swarm applications (as
far as the SDG is concerned, anyway).  So, for example, does the most recent 
version of java swarm Heatbugs run without
crashing?

pj

> 
> the contents of log file are as follows:
> 
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10108ea6, pid=6448, 
> tid=7948
> #
> # JRE version: 6.0_26-b03
> # Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing 
> windows-x86 )
> # Problematic frame:
> # C  [javaswarm.dll+0x108ea6]
> #
> # If you would like to submit a bug report, please visit:
> #   http://java.sun.com/webapps/bugreport/crash.jsp
> # The crash happened outside the Java Virtual Machine in native code.
> # See problematic frame for where to report the bug.
> #
> 
> ---------------  T H R E A D  ---------------
> 
> Current thread (0x001d7400):  JavaThread "main" [_thread_in_native, id=7948, 
> stack(0x00180000,0x001d0000)]
> 
> siginfo: ExceptionCode=0xc0000005, reading address 0x00000009
> 
> Registers:
> EAX=0x00000001, EBX=0x337a7b30, ECX=0x0440dcb8, EDX=0x04411e58
> ESP=0x001cef18, EBP=0x001cef18, ESI=0x337a7b30, EDI=0x00000001
> EIP=0x10108ea6, EFLAGS=0x00010202
> 
> Top of Stack: (sp=0x001cef18)
> 0x001cef18:   001cef28 10111ad1 00000001 ffffffff
> 0x001cef28:   001cef48 10110f90 00000001 001cefbc
> 0x001cef38:   00000022 337a7b30 337a7b30 001d7400
> 0x001cef48:   001cef68 10065169 00000001 101404a0
> 0x001cef58:   00000000 00000001 01ae9ec7 001d7400
> 0x001cef68:   001cefa4 01ae9fc7 001d7528 001cefbc
> 0x001cef78:   00000000 00000001 001dabdc 001cef84
> 0x001cef88:   337a7b30 001cefbc 337a9210 00000000
> 
> Instructions: (pc=0x10108ea6)
> 0x10108e86:   24 a0 8d 10 10 e8 f0 35 02 00 89 46 14 89 f0 83
> 0x10108e96:   c4 1c 5b 5e 5f 5d c3 8d 76 00 55 89 e5 8b 45 08
> 0x10108ea6:   8b 40 08 5d c3 90 8d 74 26 00 55 89 e5 83 ec 08
> 0x10108eb6:   8b 0d 90 79 21 10 31 c0 85 c9 74 23 83 ec 20 8d
> 
> Register to memory mapping:
> 
> EAX=0x00000001 is an unknown value
> EBX=0x337a7b30 is an oop
> {method}
>  - klass: {other class}
> ECX=0x0440dcb8 is an unknown value
> EDX=0x04411e58 is an unknown value
> ESP=0x001cef18 is pointing into the stack for thread: 0x001d7400
> EBP=0x001cef18 is pointing into the stack for thread: 0x001d7400
> ESI=0x337a7b30 is an oop
> {method}
>  - klass: {other class}
> EDI=0x00000001 is an unknown value
> 
> Stack: [0x00180000,0x001d0000],  sp=0x001cef18,  free space=315k
> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native 
> code)
> C  [javaswarm.dll+0x108ea6]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0xa2426
> C  [javaswarm.dll+0x111ad1]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0xab051
> C  [javaswarm.dll+0x110f90]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0xaa510
> C  [javaswarm.dll+0x65169]  
> Java_swarm_space_Discrete2dImpl_getObjectAtX_00024Y__II+0x39
> j  swarm.space.Discrete2dImpl.getObjectAtX$Y(II)Ljava/lang/Object;+0
> j  simpleSwarmBug2.SimpleBug.randomWalk()V+63
> v  ~StubRoutines::call_stub
> V  [jvm.dll+0xfae4b]
> V  [jvm.dll+0x18c531]
> V  [jvm.dll+0xfaecd]
> V  [jvm.dll+0x95a51]
> V  [jvm.dll+0x98819]
> C  [javaswarm.dll+0x12fdbb]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0xc933b
> C  [javaswarm.dll+0xf6a35]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x8ffb5
> C  [javaswarm.dll+0xf1211]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x8a791
> C  [javaswarm.dll+0x13b239]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0xd47b9
> C  [javaswarm.dll+0x13b09e]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0xd461e
> C  [javaswarm.dll+0x12fdbb]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0xc933b
> C  [javaswarm.dll+0xf6b4b]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x900cb
> C  [javaswarm.dll+0xddf58]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x774d8
> C  [javaswarm.dll+0xe8342]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x818c2
> C  [javaswarm.dll+0xe83e3]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x81963
> C  [javaswarm.dll+0xe83e3]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x81963
> C  [javaswarm.dll+0xe83e3]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x81963
> C  [javaswarm.dll+0xe80ea]  
> Java_swarm_SwarmEnvironmentImpl_getArguments+0x8166a
> C  [javaswarm.dll+0x1bf0c]  Java_swarm_activity_SwarmActivityImpl_run+0x3c
> j  swarm.activity.SwarmActivityImpl.run()Lswarm/defobj/Symbol;+0
> j  simpleSwarmBug2.StartSimpleBug.main([Ljava/lang/String;)V+64
> v  ~StubRoutines::call_stub
> V  [jvm.dll+0xfae4b]
> V  [jvm.dll+0x18c531]
> V  [jvm.dll+0xfaecd]
> V  [jvm.dll+0x95846]
> V  [jvm.dll+0x9d683]
> C  [javaw.exe+0x2155]
> C  [javaw.exe+0x8644]
> C  [kernel32.dll+0x4ed6c]  BaseThreadInitThunk+0x12
> C  [ntdll.dll+0x6377b]  RtlInitializeExceptionChain+0xef
> C  [ntdll.dll+0x6374e]  RtlInitializeExceptionChain+0xc2
> 
> Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> j  swarm.space.Discrete2dImpl.getObjectAtX$Y(II)Ljava/lang/Object;+0
> j  simpleSwarmBug2.SimpleBug.randomWalk()V+63
> v  ~StubRoutines::call_stub
> j  swarm.activity.SwarmActivityImpl.run()Lswarm/defobj/Symbol;+0
> j  simpleSwarmBug2.StartSimpleBug.main([Ljava/lang/String;)V+64
> v  ~StubRoutines::call_stub
> 
> 
> 
> ---------------  P R O C E S S  ---------------
> 
> Java Threads: ( => current thread )
>   0x01a67400 JavaThread "Low Memory Detector" daemon [_thread_blocked, 
> id=6716, stack(0x03dd0000,0x03e20000)]
>   0x01a5e800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, 
> id=7524, stack(0x03d80000,0x03dd0000)]
>   0x01a5b400 JavaThread "Attach Listener" daemon [_thread_blocked, id=2556, 
> stack(0x03d30000,0x03d80000)]
>   0x01a58400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6216, 
> stack(0x03ce0000,0x03d30000)]
>   0x01a52800 JavaThread "Finalizer" daemon [_thread_blocked, id=6552, 
> stack(0x03c90000,0x03ce0000)]
>   0x01a4d400 JavaThread "Reference Handler" daemon [_thread_blocked, id=7992, 
> stack(0x03c40000,0x03c90000)]
> =>0x001d7400 JavaThread "main" [_thread_in_native, id=7948, 
> stack(0x00180000,0x001d0000)]
> 
> Other Threads:
>   0x01a11c00 VMThread [stack: 0x03bf0000,0x03c40000] [id=8108]
>   0x01a79000 WatcherThread [stack: 0x03e20000,0x03e70000] [id=5492]
> 
> VM state:not at safepoint (normal execution)
> 
> VM Mutex/Monitor currently owned by a thread: None
> 
> Heap
>  def new generation   total 4928K, used 2551K [0x23710000, 0x23c60000, 
> 0x28c60000)
>   eden space 4416K,  57% used [0x23710000, 0x2398dd50, 0x23b60000)
>   from space 512K,   0% used [0x23b60000, 0x23b60000, 0x23be0000)
>   to   space 512K,   0% used [0x23be0000, 0x23be0000, 0x23c60000)
>  tenured generation   total 10944K, used 0K [0x28c60000, 0x29710000, 
> 0x33710000)
>    the space 10944K,   0% used [0x28c60000, 0x28c60000, 0x28c60200, 
> 0x29710000)
>  compacting perm gen  total 12288K, used 836K [0x33710000, 0x34310000, 
> 0x37710000)
>    the space 12288K,   6% used [0x33710000, 0x337e10b8, 0x337e1200, 
> 0x34310000)
>     ro space 10240K,  54% used [0x37710000, 0x37c8eb78, 0x37c8ec00, 
> 0x38110000)
>     rw space 12288K,  55% used [0x38110000, 0x387b49c8, 0x387b4a00, 
> 0x38d10000)
> 
> Code Cache  [0x01ae0000, 0x01b68000, 0x03ae0000)
>  total_blobs=190 nmethods=60 adapters=66 free_code_cache=33005056 
> largest_free_block=0
> 
> Dynamic libraries:
> 0x00400000 - 0x00424000  C:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe
> 0x778e0000 - 0x77a1c000  C:\Windows\SYSTEM32\ntdll.dll
> 0x77a30000 - 0x77b04000  C:\Windows\system32\kernel32.dll
> 0x75b20000 - 0x75b6a000  C:\Windows\system32\KERNELBASE.dll
> 0x776e0000 - 0x77780000  C:\Windows\system32\ADVAPI32.dll
> 0x762d0000 - 0x7637c000  C:\Windows\system32\msvcrt.dll
> 0x77260000 - 0x77279000  C:\Windows\SYSTEM32\sechost.dll
> 0x76220000 - 0x762c1000  C:\Windows\system32\RPCRT4.dll
> 0x75fe0000 - 0x760a9000  C:\Windows\system32\USER32.dll
> 0x77530000 - 0x7757e000  C:\Windows\system32\GDI32.dll
> 0x77a20000 - 0x77a2a000  C:\Windows\system32\LPK.dll
> 0x77780000 - 0x7781d000  C:\Windows\system32\USP10.dll
> 0x759a0000 - 0x759ec000  C:\Windows\system32\apphelp.dll
> 0x68b60000 - 0x68bed000  C:\Windows\AppPatch\AcLayers.DLL
> 0x75980000 - 0x7599b000  C:\Windows\system32\SspiCli.dll
> 0x76520000 - 0x7716a000  C:\Windows\system32\SHELL32.dll
> 0x75d70000 - 0x75dc7000  C:\Windows\system32\SHLWAPI.dll
> 0x77580000 - 0x776dc000  C:\Windows\system32\ole32.dll
> 0x75f50000 - 0x75fdf000  C:\Windows\system32\OLEAUT32.dll
> 0x75090000 - 0x750a7000  C:\Windows\system32\USERENV.dll
> 0x75a70000 - 0x75a7b000  C:\Windows\system32\profapi.dll
> 0x72430000 - 0x72481000  C:\Windows\system32\WINSPOOL.DRV
> 0x71430000 - 0x71442000  C:\Windows\system32\MPR.dll
> 0x760b0000 - 0x760cf000  C:\Windows\system32\IMM32.DLL
> 0x77440000 - 0x7750c000  C:\Windows\system32\MSCTF.dll
> 0x7c340000 - 0x7c396000  C:\Program Files\Java\jdk1.6.0_26\jre\bin\msvcr71.dll
> 0x6d8a0000 - 0x6db4f000  C:\Program 
> Files\Java\jdk1.6.0_26\jre\bin\client\jvm.dll
> 0x73ec0000 - 0x73ef2000  C:\Windows\system32\WINMM.dll
> 0x6d850000 - 0x6d85c000  C:\Program Files\Java\jdk1.6.0_26\jre\bin\verify.dll
> 0x6d3d0000 - 0x6d3ef000  C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.dll
> 0x75ef0000 - 0x75ef5000  C:\Windows\system32\PSAPI.DLL
> 0x6d890000 - 0x6d89f000  C:\Program Files\Java\jdk1.6.0_26\jre\bin\zip.dll
> 0x10000000 - 0x10898000  E:\Swarm-2.2-java\bin\javaswarm.dll
> 0x03e70000 - 0x03f5a000  E:\Swarm-2.2-java\bin\BLT24.dll
> 0x03f60000 - 0x04003000  E:\Swarm-2.2-java\bin\tcl84.dll
> 0x04010000 - 0x040ee000  E:\Swarm-2.2-java\bin\tk84.dll
> 0x74850000 - 0x749ee000  
> C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.DLL
> 0x77860000 - 0x778db000  C:\Windows\system32\COMDLG32.DLL
> 0x040f0000 - 0x041eb000  E:\Swarm-2.2-java\bin\libhdf5-0.dll
> 0x041f0000 - 0x04205000  E:\Swarm-2.2-java\bin\mgwz.dll
> 0x04210000 - 0x04243000  E:\Swarm-2.2-java\bin\png12.dll
> 0x746d0000 - 0x74710000  C:\Windows\system32\uxtheme.dll
> 0x04760000 - 0x047d7000  C:\Program Files\360\360Safe\safemon\safemon.dll
> 0x6c340000 - 0x6c3a6000  C:\Windows\system32\MSVCP60.dll
> 0x760d0000 - 0x761eb000  C:\Windows\system32\WININET.dll
> 0x77520000 - 0x77523000  C:\Windows\system32\Normaliz.dll
> 0x77280000 - 0x77438000  C:\Windows\system32\iertutil.dll
> 0x75dd0000 - 0x75ee1000  C:\Windows\system32\urlmon.dll
> 0x77820000 - 0x77855000  C:\Windows\system32\WS2_32.dll
> 0x77510000 - 0x77516000  C:\Windows\system32\NSI.dll
> 0x74ee0000 - 0x74ee9000  C:\Windows\system32\VERSION.dll
> 0x75b70000 - 0x75c8d000  C:\Windows\system32\CRYPT32.dll
> 0x75ae0000 - 0x75aec000  C:\Windows\system32\MSASN1.dll
> 0x743e0000 - 0x743f3000  C:\Windows\system32\dwmapi.dll
> 0x759f0000 - 0x759fc000  C:\Windows\system32\CRYPTBASE.dll
> 0x77170000 - 0x771f3000  C:\Windows\system32\CLBCatQ.DLL
> 
> VM Arguments:
> java_command: simpleSwarmBug2.StartSimpleBug
> Launcher Type: SUN_STANDARD
> 
> Environment Variables:
> CLASSPATH=.;C:\Program Files\Java\jdk1.6.0_26\lib\dt.jar;C:\Program 
> Files\Java\jdk1.6.0_26\lib\tools.jar;E:\PROGRA~1\IBM\DB2\java\db2java.zip;E:\PROGRA~1\IBM\DB2\java\db2jcc.jar;E:\PROGRA~1\IBM\DB2\java\sqlj.zip;E:\PROGRA~1\IBM\DB2\java\db2jcc_license_cu.jar;E:\PROGRA~1\IBM\DB2\bin;E:\PROGRA~1\IBM\DB2\java\common.jar;E:\Swarm-2.2-java\share\swarm\swarm.jar;E:\Swarm-2.2-java\share\swarm\kawa.jar
> PATH=C:\Program Files\Common Files\Microsoft Shared\Windows 
> Live;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32\windowspowershell\v1.0\;c:\program
>  files\common files\thunder network\kankan\codecs;c:\program 
> files\tortoisesvn\bin;c:\program files\java\jdk1.6.0_26\bin;c:\program 
> files\microsoft sql server\100\tools\binn\;c:\program files\microsoft sql 
> server\100\dts\binn\;c:\program files\windows live\shared;c:\program 
> files\ibm\gsk8;E:\PROGRA~1\IBM\DB2\BIN;E:\PROGRA~1\IBM\DB2\FUNCTION;E:\PROGRA~1\IBM\DB2\SAMPLES\REPL;C:\Program
>  Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program 
> Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;d:\Program 
> Files\Microsoft SQL Server\100\Tools\Binn\;d:\Program Files\Microsoft SQL 
> Server\100\DTS\Binn\;d:\Program Files\Microsoft SQL 
> Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\MATLAB\MATLAB 
> Compiler Runtime\v711\runtime\win32;D:\Program Files\Rational\common;D:\Prog
ram Files\Microsoft SQL Server\110\DTS\Binn\;D:\Program Files\Microsoft SQL 
Server\110\Tools\Binn\ManagementStudio\;D:\Program Files\Microsoft SQL 
Server\110\Tools\Binn\;C:\Program Files\Microsoft Visual Studio 
10.0\Common7\IDE\PrivateAssemblies\;E:\Swarm-2.2-java\bin;.;C:\Program 
Files\Java\jdk1.6.0_26\bin
> USERNAME=Helen
> OS=Windows_NT
> PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel
> 
> ---------------  S Y S T E M  ---------------
> 
> OS: Windows 7 Build 7601 Service Pack 1
> 
> CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 
> 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
> 
> Memory: 4k page, physical 3405428k(1097648k free), swap 4452248k(1440132k 
> free)
> 
> vm_info: Java HotSpot(TM) Client VM (20.1-b02) for windows-x86 JRE 
> (1.6.0_26-b03), built on May  4 2011 00:50:59 by "java_re" with MS VC++ 7.1 
> (VS2003)
> 
> time: Mon Mar 05 09:41:54 2012
> elapsed time: 0 seconds
> 

-- 
Paul E. Johnson                 email: address@hidden
http://pj.freefaculty.org       Assoc. Director
Professor, Political Science    Center for Research Methods and Data Analysis
1541 Lilac Lane, Rm 504         1425 Jayhawk Blvd.      
University of Kansas            Watson Library, Rm. 470         
Lawrence, Kansas 66045-3129     Lawrence, Kansas 66045-7555
Ph: (785) 864-3523              Ph: (785) 864-3353



reply via email to

[Prev in Thread] Current Thread [Next in Thread]