[Gecode-bugs] [Bug 44] New: Solving the same problem multiple times eventually crashes Gecode/J

bugzilla-daemon at ps.uni-sb.de bugzilla-daemon at ps.uni-sb.de
Tue Sep 19 12:25:59 CEST 2006


http://www.gecode.org/bugzilla/show_bug.cgi?id=44

           Summary: Solving the same problem multiple times eventually
                    crashes Gecode/J
           Product: Gecode
           Version: 1.1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Gecode/J
        AssignedTo: tack at ps.uni-sb.de
        ReportedBy: anders.musikka at gmail.com
         QAContact: bugs at gecode.org


If the main-function in the Queens.java example is changed to the following:

    public static void main(String[] args) {

            for(int i=0;i<10000;++i)
            {
                        Options opt = new Options("Queens");
                        opt.size = 6;
                        opt.gui = true;
                        opt.parse(args);

                        Queens queens = new Queens(opt.size);
                        opt.doSearch(queens);
            }
    }

and the example is then executed (with the gui turned off ofcourse), then after
a couple of iterations (a stochastic number, usually around 30), the following
error is written to the console:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1002a389, pid=524, tid=2508
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode)
# Problematic frame:
# C  [Gecodejava.dll+0x2a389]
#
# An error report file with more information is saved as hs_err_pid524.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

This does not happen just with the Queens.java example, but with all the
problems I tried solving repeatedly. The problem seems to be in solving many
problems sequentially without restarting the java-process. 

The fact that the crashes happen after a stochastic number of iterations may
suggest a hardware problem, but I don't think that is the case. The computer
I'm   using does behave normally with other applications.

I know Gecode/J isn't officially released yet, and this bug-report is in no way
a complaint :-). Gecode rocks! Just wanted to report this incase it could help
you in some way.


The version of Gecode/J I'm using is the one at

http://www.imit.kth.se/courses/2G1515/software.html

a list of filenames and dates involved:

2006-05-16  16:48           675 840 GecodeInt.dll
2006-05-16  16:48           372 736 Gecodejava.dll
2006-05-16  16:48           236 065 GecodeJava.jar
2006-05-16  16:48            45 056 GecodeKernel.dll
2006-05-16  16:48            65 536 GecodeMinimodel.dll
2006-05-16  16:48            53 248 GecodeSearch.dll
2006-05-16  16:48           815 104 GecodeSet.dll


I'm using Sun's java virtual machine, apparently version "1.5.0_08-b03" .

Please mail me if I can be of any further service!


-- 
Configure bugmail: http://www.gecode.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Gecode-bugs mailing list