[gecode-users] Runtime problem

andrea.brambilla at polimi.it andrea.brambilla at polimi.it
Tue Sep 2 12:40:01 CEST 2008


Hi,

I have implemented a scheduler with Gecodej 2.1.1 using Eclipse under WinXP.
The main scope can be summarized as:

for(int i=0, i<benchmarkNumber; i++){

    scheduler.loadBenchmark(i);
    scheduler.solveBenchmark(i);
    scheduler.printResult();
}

I am using a BranchAndBound strategy.
I noticed that for i=3 I get some suboptimal solutions but the B&B  
cannot be completed and the program exits with an error. I have  
attached the correspondent log file.
I tried with smaller problem instances and I noticed that the program  
exits around i = 5.
I suspect it is related with memory consumption.
Any help is very appreciated.
Thanks in advance!

Andrea

-------------- next part --------------
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0b2f23ea, pid=2744, tid=328
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode windows-x86)
# Problematic frame:
# C  [GecodeSearch.dll+0x23ea]
#
# 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 (0x00395c00):  JavaThread "main" [_thread_in_native, id=328, stack(0x003b0000,0x00400000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x12447228, EDX=0x0c82de90
ESP=0x003ff5bc, EBP=0x00000f3c, ESI=0x0b5d1118, EDI=0x0b5d10f0
EIP=0x0b2f23ea, EFLAGS=0x00010216

Top of Stack: (sp=0x003ff5bc)
0x003ff5bc:   1213c750 1005e6d8 0b2f23c0 0b5d10f0
0x003ff5cc:   000000ef 000000eb 00000b1c 00000000
0x003ff5dc:   00000b1c 00000000 00000001 10056780
0x003ff5ec:   1003da31 003ff618 003ff608 00395c00
0x003ff5fc:   06cdc2a8 003ff644 06cdc2a8 124742a0
0x003ff60c:   008f9c71 00395cf4 003ff64c 1213c750
0x003ff61c:   00000000 003ff654 003ff624 06cdc298
0x003ff62c:   003ff65c 06ce7aa0 00000000 06cdc298 

Instructions: (pc=0x0b2f23ea)
0x0b2f23da:   8d 2c 40 03 ed 03 ed 85 c9 74 1b 01 6f 10 8b 01
0x0b2f23ea:   8b 10 57 ff d2 08 47 18 8a 47 18 29 6f 10 84 c0 


Stack: [0x003b0000,0x00400000],  sp=0x003ff5bc,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [GecodeSearch.dll+0x23ea]

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
J  CoordinatorAgent.solving()V
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0aaa7000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2556, stack(0x0acf0000,0x0ad40000)]
  0x0aa99000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2832, stack(0x0aca0000,0x0acf0000)]
  0x0aa97c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=772, stack(0x0ac50000,0x0aca0000)]
  0x0aa97000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2904, stack(0x0ac00000,0x0ac50000)]
  0x0aa89000 JavaThread "Finalizer" daemon [_thread_blocked, id=308, stack(0x0abb0000,0x0ac00000)]
  0x0aa84c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=3572, stack(0x0ab60000,0x0abb0000)]
=>0x00395c00 JavaThread "main" [_thread_in_native, id=328, stack(0x003b0000,0x00400000)]

Other Threads:
  0x0aa80000 VMThread [stack: 0x0ab10000,0x0ab60000] [id=3296]
  0x0aaa8000 WatcherThread [stack: 0x0ad40000,0x0ad90000] [id=3636]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 4544K, used 171K [0x02970000, 0x02e50000, 0x02e50000)
  eden space 4096K,   4% used [0x02970000, 0x0299af58, 0x02d70000)
  from space 448K,   0% used [0x02de0000, 0x02de0000, 0x02e50000)
  to   space 448K,   0% used [0x02d70000, 0x02d70000, 0x02de0000)
 tenured generation   total 60544K, used 59250K [0x02e50000, 0x06970000, 0x06970000)
   the space 60544K,  97% used [0x02e50000, 0x0682cad8, 0x0682cc00, 0x06970000)
 compacting perm gen  total 12288K, used 3858K [0x06970000, 0x07570000, 0x0a970000)
   the space 12288K,  31% used [0x06970000, 0x06d34968, 0x06d34a00, 0x07570000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00423000 	C:\Programmi\Java\jre1.6.0_04\bin\javaw.exe
0x7c910000 - 0x7c9c5000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c901000 	C:\WINDOWS\system32\kernel32.dll
0x77f40000 - 0x77feb000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77da0000 - 0x77e32000 	C:\WINDOWS\system32\RPCRT4.dll
0x77f10000 - 0x77f21000 	C:\WINDOWS\system32\Secur32.dll
0x7e390000 - 0x7e421000 	C:\WINDOWS\system32\USER32.dll
0x77e40000 - 0x77e89000 	C:\WINDOWS\system32\GDI32.dll
0x76340000 - 0x7635d000 	C:\WINDOWS\system32\IMM32.DLL
0x7c340000 - 0x7c396000 	C:\Programmi\Java\jre1.6.0_04\bin\msvcr71.dll
0x6d7c0000 - 0x6da10000 	C:\Programmi\Java\jre1.6.0_04\bin\client\jvm.dll
0x76b00000 - 0x76b2e000 	C:\WINDOWS\system32\WINMM.dll
0x6d270000 - 0x6d278000 	C:\Programmi\Java\jre1.6.0_04\bin\hpi.dll
0x76bb0000 - 0x76bbb000 	C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 	C:\Programmi\Java\jre1.6.0_04\bin\verify.dll
0x6d310000 - 0x6d32f000 	C:\Programmi\Java\jre1.6.0_04\bin\java.dll
0x6d7b0000 - 0x6d7bf000 	C:\Programmi\Java\jre1.6.0_04\bin\zip.dll
0x10000000 - 0x10082000 	C:\Programmi\Gecode\bin\Gecodej.dll
0x0af90000 - 0x0b0e1000 	C:\Programmi\Gecode\bin\GecodeSet.dll
0x0b0f0000 - 0x0b12e000 	C:\Programmi\Gecode\bin\GecodeSupport.dll
0x0b130000 - 0x0b14e000 	C:\Programmi\Gecode\bin\GecodeKernel.dll
0x0b150000 - 0x0b2ef000 	C:\Programmi\Gecode\bin\GecodeInt.dll
0x0b2f0000 - 0x0b306000 	C:\Programmi\Gecode\bin\GecodeSearch.dll
0x0b310000 - 0x0b337000 	C:\Programmi\Gecode\bin\GecodeMinimodel.dll

VM Arguments:
java_command: MemTest
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Choco\choco-1_2_05.jar;C:\JADE\jade\lib\jade.jar;C:\JADE\jade\lib\jadeTools.jar;C:\JADE\jade\lib\iiop.jar;C:\JADE\jade\lib\http.jar;C:\JADE\jade\lib\commons-codec\commons-codec-1.3.jar;C:\Programmi\Java\jre1.6.0_05\lib\ext\QTJava.zip
PATH=C:\Programmi\Java\jre1.6.0_07\bin\client;C:\Programmi\Java\jre1.6.0_07\bin;C:\Programmi\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\ATI Technologies\ATI Control Panel;"C:\Programmi\Graphviz2.16\Bin";c:\matlab6p5\bin\win32;C:\Programmi\Gecode\bin\;C:\Programmi\QuickTime\QTSystem\;C:\Programmi\Java\jdk1.6.0_04\bin;C:\Python25\Scripts\
USERNAME=Andrea Brambilla
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 3

CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 8, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 523692k(91964k free), swap 1278764k(543332k free)

vm_info: Java HotSpot(TM) Client VM (10.0-b19) for windows-x86 JRE (1.6.0_04-b12), built on Dec 14 2007 00:51:20 by "java_re" with MS VC++ 7.1

time: Mon Sep 01 21:29:29 2008
elapsed time: 189 seconds



More information about the gecode-users mailing list