Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/21/12 04:30 AM

    Originally posted by: MichaelPoss


    Hi,

    I'm coding a branch-and-cut algorithm with Cplex 12.4 in JAVA on a win 7 machine and I encounter the following error, just after I add the first cut (via LazyConstraintCallback):

    EXCEPTION_ACCESS_VIOLATION

    The cut I add before the crash is :
    IloRange : 2.0 <= 1.0*t(20)(0)(0)(1) + 1.0*t(20)(1)(0)(1) + 1.0*t(20)(2)(0)(1) + 1.0*t(20)(3)(0)(1) + 1.0*t(20)(4)(0)(1) + 1.0*t(20)(5)(0)(1) + 1.0*t(20)(6)(0)(1) + 1.0*t(20)(7)(0)(1) + 1.0*t(20)(8)(0)(1) + 1.0*t(20)(9)(0)(1) + 1.0*t(20)(10)(0)(1) + 1.0*t(20)(11)(0)(1) + 1.0*t(20)(12)(0)(1) + 1.0*t(20)(13)(0)(1) + 1.0*t(20)(14)(0)(1) + 1.0*t(20)(15)(0)(1) + 1.0*t(20)(16)(0)(1) + 1.0*t(20)(17)(0)(1) + 1.0*t(20)(18)(0)(1) + 1.0*t(20)(19)(0)(1) <= infinity
    and its coefficients appear in the model already.
    I repeated the experience on a linux machine and obtained the same error.

    The funny part is that if I do not ask to print out the cut, cplex does not crash but it tells me there is no feasible solution to my problem.

    Any idea ?

    best,

    Michael.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/21/12 07:32 AM

    Originally posted by: SystemAdmin


    Do you have a backtrace for the crash, preferably from Linux?
    Does the crash happen the first time the callback is invoked?
    Could export the model (cplex.exportModel("model.sav")) right before calling cplex.solve() and attache the model here?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/21/12 09:25 AM

    Originally posted by: MichaelPoss


    Thank's four your answer.

    Here come the backtrace and the model.sav (Cplex 12.1 is installed on the linux machine).
    The crash does happen the first time.

    Michael.


    #
    1. JRE version: 6.0_18-b18
    2. Java VM: OpenJDK 64-Bit Server VM (14.0-b16 mixed mode linux-amd64 )
    3. Derivative: IcedTea6 1.8.8
    4. Distribution: Fedora release 13 (Goddard), package fedora-51.1.8.8.fc13-x86_64
    5. Problematic frame:
    6. C http://libcplex121.so+0x2aa228
    #
    1. If you would like to submit a bug report, please include
    2. instructions how to reproduce the bug and visit:
    3. http://icedtea.classpath.org/bugzilla
    4. The crash happened outside the Java Virtual Machine in native code.
    5. See problematic frame for where to report the bug.
    #


    T H R E A D

    Current thread (0x00007f670c007000): JavaThread "main" _thread_in_native, id=964, stack(0x00007f6713313000,0x00007f6713414000)

    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00000000000000b8

    Registers:
    RAX=0x0000000000000000, RBX=0x00007f670c141450, RCX=0x0000000000000000, RDX=0x0000000000000000
    RSP=0x00007f6713411ab0, RBP=0x00007f670c179290, RSI=0x0000000000000000, RDI=0x00007f670d824c50
    R8 =0x0000000000000000, R9 =0x00007f670c751c90, R10=0x0000000000000000, R11=0x0000000000000000
    R12=0x00007f670d824c50, R13=0x00007f670c5ef3d0, R14=0x00007f670c0e03a0, R15=0x00000000000003ee
    RIP=0x00007f648c4b7228, EFL=0x0000000000010246, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
    TRAPNO=0x000000000000000e

    Top of Stack: (sp=0x00007f6713411ab0)
    0x00007f6713411ab0: 00007f6713411ce4 0000000000000000
    0x00007f6713411ac0: 0000000000000000 00007f670d824d68
    0x00007f6713411ad0: 00007f670da5e330 4094340000000000
    0x00007f6713411ae0: 0000000000000000 0000000000000000
    0x00007f6713411af0: 0000000400000000 00000000fffffffe
    0x00007f6713411b00: 00007f670c179568 00007f6400000001
    0x00007f6713411b10: 0000000000000000 00007f670c10f7f0
    0x00007f6713411b20: 00007f6700000434 00007f6400000000
    0x00007f6713411b30: 00007f670c0e03a0 407502aa00000000
    0x00007f6713411b40: 00007f670c179290 00007f648c43fcb6
    0x00007f6713411b50: 00007f6700000000 00007f670c179290
    0x00007f6713411b60: 0000000000000000 00007f670c0e03a0
    0x00007f6713411b70: 00007f670c5ef3d0 00007f648c4b3c0a
    0x00007f6713411b80: 00007f670000004e 00007f6700000004
    0x00007f6713411b90: 00007f6700000000 0000000000000000
    0x00007f6713411ba0: 00007f6700000000 00007f670000004b
    0x00007f6713411bb0: 00007f6700000000 00007f6700000000
    0x00007f6713411bc0: 0000000000000000 0000000000000008
    0x00007f6713411bd0: 0000000000000001 0000000000000240
    0x00007f6713411be0: 0000000000000000 0000000000000000
    0x00007f6713411bf0: 0000000000000000 0000003800000022
    0x00007f6713411c00: 0000007c0000005c 0000006e00000077
    0x00007f6713411c10: 0000000000000000 000000000000003f
    0x00007f6713411c20: 0000000000000007 0000000000000fe0
    0x00007f6713411c30: 0000000000000000 0000000000000000
    0x00007f6713411c40: 0000000000000000 0000006f000000fc
    0x00007f6713411c50: 0000007c00000062 0000006e00000077
    0x00007f6713411c60: 00007f670c0e03a0 00007f670c000020
    0x00007f6713411c70: 00007f670dc7a810 0000000000000fb0
    0x00007f6713411c80: 00007f670dc7a810 0000000000000000
    0x00007f6713411c90: 0000000000000002 00000032418795ad
    0x00007f6713411ca0: 0000000000000080 00007f670dc7a810

    Instructions: (pc=0x00007f648c4b7228)
    0x00007f648c4b7218: 00 00 49 8b b5 e0 00 00 00 49 8b 95 c8 00 00 00
    0x00007f648c4b7228: 49 8b 88 b8 00 00 00 4d 8b 80 d0 00 00 00 48 89

    Stack: 0x00007f6713313000,0x00007f6713414000, sp=0x00007f6713411ab0, free space=1018k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C http://libcplex121.so+0x2aa228

    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j ilog.cplex.Cplex.CPXmipopt(JJ)I+0
    j ilog.cplex.CplexI.solve()V+68
    j ilog.cplex.IloCplex.solve()Z+4
    j algos.ModelDistIter.solveLPRelax()V+212
    j algos.ModelDistIter.<init>(IZLjava/lang/String;IIZZZIZIZ)V+662
    j main.Test.main([Ljava/lang/String;)V+70
    v ~StubRoutines::call_stub


    P R O C E S S

    Java Threads: ( => current thread )
    0x00007f670c0a6000 JavaThread "Low Memory Detector" daemon _thread_blocked, id=979, stack(0x00007f648cc7d000,0x00007f648cd7e000)
    0x00007f670c0a3000 JavaThread "CompilerThread1" daemon _thread_in_native, id=978, stack(0x00007f648cd7e000,0x00007f648ce7f000)
    0x00007f670c0a1000 JavaThread "CompilerThread0" daemon _thread_blocked, id=977, stack(0x00007f648ce7f000,0x00007f648cf80000)
    0x00007f670c09f000 JavaThread "Signal Dispatcher" daemon _thread_blocked, id=976, stack(0x00007f648cf80000,0x00007f648d081000)
    0x00007f670c080800 JavaThread "Finalizer" daemon _thread_blocked, id=975, stack(0x00007f648d081000,0x00007f648d182000)
    0x00007f670c07e800 JavaThread "Reference Handler" daemon _thread_blocked, id=974, stack(0x00007f648d182000,0x00007f648d283000)
    =>0x00007f670c007000 JavaThread "main" _thread_in_native, id=964, stack(0x00007f6713313000,0x00007f6713414000)

    Other Threads:
    0x00007f670c077000 VMThread stack: 0x00007f648d283000,0x00007f648d384000 id=973
    0x00007f670c0a8800 WatcherThread stack: 0x00007f648cb7c000,0x00007f648cc7d000 id=980

    VM state:not at safepoint (normal execution)

    VM Mutex/Monitor currently owned by a thread: None

    Heap
    PSYoungGen total 83008K, used 40971K [0x00007f6638ab0000, 0x00007f66403c0000, 0x00007f6709000000)
    eden space 43840K, 66% used [0x00007f6638ab0000,0x00007f663a6f2958,0x00007f663b580000)
    from space 39168K, 30% used [0x00007f663dd80000,0x00007f663e9404e0,0x00007f66403c0000)
    to space 40064K, 0% used [0x00007f663b580000,0x00007f663b580000,0x00007f663dca0000)
    PSOldGen total 127936K, used 94720K [0x00007f6498000000, 0x00007f649fcf0000, 0x00007f6638ab0000)
    object space 127936K, 74% used [0x00007f6498000000,0x00007f649dc80000,0x00007f649fcf0000)
    PSPermGen total 21248K, used 5346K [0x00007f648d800000, 0x00007f648ecc0000, 0x00007f6498000000)
    object space 21248K, 25% used [0x00007f648d800000,0x00007f648dd38b48,0x00007f648ecc0000)

    Dynamic libraries:
    00400000-00408000 r-xp 00000000 fd:00 2755412 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
    00608000-00609000 rw-p 00008000 fd:00 2755412 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
    00ccc000-00ced000 rw-p 00000000 00:00 0 heap
    3241400000-324141e000 r-xp 00000000 fd:00 2359309 /lib64/ld-2.12.2.so
    324161d000-324161e000 r--p 0001d000 fd:00 2359309 /lib64/ld-2.12.2.so
    324161e000-324161f000 rw-p 0001e000 fd:00 2359309 /lib64/ld-2.12.2.so
    324161f000-3241620000 rw-p 00000000 00:00 0
    3241800000-3241974000 r-xp 00000000 fd:00 2359346 /lib64/libc-2.12.2.so
    3241974000-3241b74000 ---p 00174000 fd:00 2359346 /lib64/libc-2.12.2.so
    3241b74000-3241b78000 r--p 00174000 fd:00 2359346 /lib64/libc-2.12.2.so
    3241b78000-3241b79000 rw-p 00178000 fd:00 2359346 /lib64/libc-2.12.2.so
    3241b79000-3241b7e000 rw-p 00000000 00:00 0
    3241c00000-3241c83000 r-xp 00000000 fd:00 2359351 /lib64/libm-2.12.2.so
    3241c83000-3241e82000 ---p 00083000 fd:00 2359351 /lib64/libm-2.12.2.so
    3241e82000-3241e83000 r--p 00082000 fd:00 2359351 /lib64/libm-2.12.2.so
    3241e83000-3241e84000 rw-p 00083000 fd:00 2359351 /lib64/libm-2.12.2.so
    3242000000-3242017000 r-xp 00000000 fd:00 2359393 /lib64/libpthread-2.12.2.so
    3242017000-3242216000 ---p 00017000 fd:00 2359393 /lib64/libpthread-2.12.2.so
    3242216000-3242217000 r--p 00016000 fd:00 2359393 /lib64/libpthread-2.12.2.so
    3242217000-3242218000 rw-p 00017000 fd:00 2359393 /lib64/libpthread-2.12.2.so
    3242218000-324221c000 rw-p 00000000 00:00 0
    3242400000-3242402000 r-xp 00000000 fd:00 2359412 /lib64/libdl-2.12.2.so
    3242402000-3242602000 ---p 00002000 fd:00 2359412 /lib64/libdl-2.12.2.so
    3242602000-3242603000 r--p 00002000 fd:00 2359412 /lib64/libdl-2.12.2.so
    3242603000-3242604000 rw-p 00003000 fd:00 2359412 /lib64/libdl-2.12.2.so
    3242800000-3242815000 r-xp 00000000 fd:00 2359374 /lib64/libz.so.1.2.3
    3242815000-3242a14000 ---p 00015000 fd:00 2359374 /lib64/libz.so.1.2.3
    3242a14000-3242a15000 rw-p 00014000 fd:00 2359374 /lib64/libz.so.1.2.3
    3242c00000-3242c07000 r-xp 00000000 fd:00 2359398 /lib64/librt-2.12.2.so
    3242c07000-3242e06000 ---p 00007000 fd:00 2359398 /lib64/librt-2.12.2.so
    3242e06000-3242e07000 r--p 00006000 fd:00 2359398 /lib64/librt-2.12.2.so
    3242e07000-3242e08000 rw-p 00007000 fd:00 2359398 /lib64/librt-2.12.2.so
    3243c00000-3243c16000 r-xp 00000000 fd:00 2359427 /lib64/libresolv-2.12.2.so
    3243c16000-3243e15000 ---p 00016000 fd:00 2359427 /lib64/libresolv-2.12.2.so
    3243e15000-3243e16000 r--p 00015000 fd:00 2359427 /lib64/libresolv-2.12.2.so
    3243e16000-3243e17000 rw-p 00016000 fd:00 2359427 /lib64/libresolv-2.12.2.so
    3243e17000-3243e19000 rw-p 00000000 00:00 0
    3248800000-3248816000 r-xp 00000000 fd:00 2359401 /lib64/libgcc_s-4.4.5-20101113.so.1
    3248816000-3248a15000 ---p 00016000 fd:00 2359401 /lib64/libgcc_s-4.4.5-20101113.so.1
    3248a15000-3248a16000 rw-p 00015000 fd:00 2359401 /lib64/libgcc_s-4.4.5-20101113.so.1
    324c000000-324c0e8000 r-xp 00000000 fd:00 2645989 /usr/lib64/libstdc++.so.6.0.13
    324c0e8000-324c2e8000 ---p 000e8000 fd:00 2645989 /usr/lib64/libstdc++.so.6.0.13
    324c2e8000-324c2ef000 r--p 000e8000 fd:00 2645989 /usr/lib64/libstdc++.so.6.0.13
    324c2ef000-324c2f1000 rw-p 000ef000 fd:00 2645989 /usr/lib64/libstdc++.so.6.0.13
    324c2f1000-324c306000 rw-p 00000000 00:00 0
    3254600000-3254616000 r-xp 00000000 fd:00 2359592 /lib64/libnsl-2.12.2.so
    3254616000-3254815000 ---p 00016000 fd:00 2359592 /lib64/libnsl-2.12.2.so
    3254815000-3254816000 r--p 00015000 fd:00 2359592 /lib64/libnsl-2.12.2.so
    3254816000-3254817000 rw-p 00016000 fd:00 2359592 /lib64/libnsl-2.12.2.so
    3254817000-3254819000 rw-p 00000000 00:00 0
    3af4000000-3af4004000 r-xp 00000000 fd:00 2755146 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/jli/libjli.so
    3af4004000-3af4203000 ---p 00004000 fd:00 2755146 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/jli/libjli.so
    3af4203000-3af4204000 rw-p 00003000 fd:00 2755146 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/jli/libjli.so
    7f642c000000-7f642c021000 rw-p 00000000 00:00 0
    7f642c021000-7f6430000000 ---p 00000000 00:00 0
    7f6434000000-7f6434021000 rw-p 00000000 00:00 0
    7f6434021000-7f6438000000 ---p 00000000 00:00 0
    7f6438000000-7f64388ba000 rw-p 00000000 00:00 0
    7f64388ba000-7f643c000000 ---p 00000000 00:00 0
    7f643c000000-7f643c021000 rw-p 00000000 00:00 0
    7f643c021000-7f6440000000 ---p 00000000 00:00 0
    7f6440000000-7f64411ac000 rw-p 00000000 00:00 0
    7f64411ac000-7f6444000000 ---p 00000000 00:00 0
    7f6444000000-7f6444021000 rw-p 00000000 00:00 0
    7f6444021000-7f6448000000 ---p 00000000 00:00 0
    7f644a16f000-7f6450000000 r--p 00000000 fd:00 2631800 /usr/lib/locale/locale-archive
    7f6450000000-7f6450811000 rw-p 00000000 00:00 0
    7f6450811000-7f6454000000 ---p 00000000 00:00 0
    7f6454000000-7f6454021000 rw-p 00000000 00:00 0
    7f6454021000-7f6458000000 ---p 00000000 00:00 0
    7f6458000000-7f6458021000 rw-p 00000000 00:00 0
    7f6458021000-7f645c000000 ---p 00000000 00:00 0
    7f6460000000-7f6460021000 rw-p 00000000 00:00 0
    7f6460021000-7f6464000000 ---p 00000000 00:00 0
    7f6468000000-7f6468021000 rw-p 00000000 00:00 0
    7f6468021000-7f646c000000 ---p 00000000 00:00 0
    7f6470000000-7f6470021000 rw-p 00000000 00:00 0
    7f6470021000-7f6474000000 ---p 00000000 00:00 0
    7f6478000000-7f6478021000 rw-p 00000000 00:00 0
    7f6478021000-7f647c000000 ---p 00000000 00:00 0
    7f647c000000-7f647c029000 rw-p 00000000 00:00 0
    7f647c029000-7f6480000000 ---p 00000000 00:00 0
    7f6480000000-7f64800a1000 rw-p 00000000 00:00 0
    7f64800a1000-7f6484000000 ---p 00000000 00:00 0
    7f6487dfa000-7f6487dff000 r-xp 00000000 fd:00 2359328 /lib64/libnss_dns-2.12.2.so
    7f6487dff000-7f6487ffe000 ---p 00005000 fd:00 2359328 /lib64/libnss_dns-2.12.2.so
    7f6487ffe000-7f6487fff000 r--p 00004000 fd:00 2359328 /lib64/libnss_dns-2.12.2.so
    7f6487fff000-7f6488000000 rw-p 00005000 fd:00 2359328 /lib64/libnss_dns-2.12.2.so
    7f6488000000-7f648802d000 rw-p 00000000 00:00 0
    7f648802d000-7f648c000000 ---p 00000000 00:00 0
    7f648c006000-7f648c00c000 r-xp 00000000 fd:00 2755888 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libmanagement.so
    7f648c00c000-7f648c20c000 ---p 00006000 fd:00 2755888 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libmanagement.so
    7f648c20c000-7f648c20d000 rw-p 00006000 fd:00 2755888 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libmanagement.so
    7f648c20d000-7f648ca3b000 r-xp 00000000 fd:00 657149 /usr/ilog/cplex121/bin/x86-64_debian4.0_4.1/libcplex121.so
    7f648ca3b000-7f648cb3b000 ---p 0082e000 fd:00 657149 /usr/ilog/cplex121/bin/x86-64_debian4.0_4.1/libcplex121.so
    7f648cb3b000-7f648cb64000 rw-p 0082e000 fd:00 657149 /usr/ilog/cplex121/bin/x86-64_debian4.0_4.1/libcplex121.so
    7f648cb64000-7f648cb7c000 rw-p 00000000 00:00 0
    7f648cb7c000-7f648cb7d000 ---p 00000000 00:00 0
    7f648cb7d000-7f648cd7e000 rwxp 00000000 00:00 0
    7f648cd7e000-7f648cd7f000 ---p 00000000 00:00 0
    7f648cd7f000-7f648ce7f000 rwxp 00000000 00:00 0
    7f648ce7f000-7f648ce80000 ---p 00000000 00:00 0
    7f648ce80000-7f648d084000 rwxp 00000000 00:00 0
    7f648d084000-7f648d283000 rwxp 00000000 00:00 0
    7f648d283000-7f648d284000 ---p 00000000 00:00 0
    7f648d284000-7f648d384000 rwxp 00000000 00:00 0
    7f648d384000-7f648d46b000 rw-p 00000000 00:00 0
    7f648d46b000-7f648d5fe000 r--s 03929000 fd:00 2755975 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar
    7f648d5fe000-7f648d5ff000 ---p 00000000 00:00 0
    7f648d5ff000-7f648d6ff000 rwxp 00000000 00:00 0
    7f648d6ff000-7f648d700000 ---p 00000000 00:00 0
    7f648d700000-7f648ecc0000 rwxp 00000000 00:00 0
    7f648ecc0000-7f6498000000 rwxp 00000000 00:00 0
    7f6498000000-7f649fcf0000 rwxp 00000000 00:00 0
    7f649fcf0000-7f6638ab0000 rwxp 00000000 00:00 0
    7f6638ab0000-7f66403c0000 rwxp 00000000 00:00 0
    7f66403c0000-7f6709000000 rwxp 00000000 00:00 0
    7f6709000000-7f6709270000 rwxp 00000000 00:00 0
    7f6709270000-7f670c000000 rwxp 00000000 00:00 0
    7f670c000000-7f670de8b000 rw-p 00000000 00:00 0
    7f670de8b000-7f6710000000 ---p 00000000 00:00 0
    7f6710012000-7f671001e000 r--s 0006d000 fd:00 657336 /usr/ilog/cplex121/lib/cplex.jar
    7f671001e000-7f671009a000 rw-p 00000000 00:00 0
    7f671009a000-7f671009b000 ---p 00000000 00:00 0
    7f671009b000-7f671019b000 rwxp 00000000 00:00 0
    7f671019b000-7f671019c000 ---p 00000000 00:00 0
    7f671019c000-7f671029c000 rwxp 00000000 00:00 0
    7f671029c000-7f671029d000 ---p 00000000 00:00 0
    7f671029d000-7f671039d000 rwxp 00000000 00:00 0
    7f671039d000-7f671039e000 ---p 00000000 00:00 0
    7f671039e000-7f671049e000 rwxp 00000000 00:00 0
    7f671049e000-7f671049f000 ---p 00000000 00:00 0
    7f671049f000-7f671059f000 rwxp 00000000 00:00 0
    7f671059f000-7f67105a0000 ---p 00000000 00:00 0
    7f67105a0000-7f67106ab000 rwxp 00000000 00:00 0
    7f67106ab000-7f67106f4000 rwxp 00000000 00:00 0
    7f67106f4000-7f6710733000 rwxp 00000000 00:00 0
    7f6710733000-7f67113fa000 rwxp 00000000 00:00 0
    7f67113fa000-7f6711405000 rwxp 00000000 00:00 0
    7f6711405000-7f671144e000 rwxp 00000000 00:00 0
    7f671144e000-7f671148d000 rwxp 00000000 00:00 0
    7f671148d000-7f6712153000 rwxp 00000000 00:00 0
    7f6712153000-7f6712190000 rwxp 00000000 00:00 0
    7f6712190000-7f67127d6000 rwxp 00000000 00:00 0
    7f67127d6000-7f67127e1000 rwxp 00000000 00:00 0
    7f67127e1000-7f6712897000 rwxp 00000000 00:00 0
    7f6712897000-7f671289e000 r-xp 00000000 fd:00 2759107 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libzip.so
    7f671289e000-7f6712a9d000 ---p 00007000 fd:00 2759107 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libzip.so
    7f6712a9d000-7f6712a9e000 rw-p 00006000 fd:00 2759107 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libzip.so
    7f6712a9e000-7f6712aaa000 r-xp 00000000 fd:00 2359331 /lib64/libnss_files-2.12.2.so
    7f6712aaa000-7f6712ca9000 ---p 0000c000 fd:00 2359331 /lib64/libnss_files-2.12.2.so
    7f6712ca9000-7f6712caa000 r--p 0000b000 fd:00 2359331 /lib64/libnss_files-2.12.2.so
    7f6712caa000-7f6712cab000 rw-p 0000c000 fd:00 2359331 /lib64/libnss_files-2.12.2.so
    7f6712cab000-7f6712ccc000 rw-p 00000000 00:00 0
    7f6712ccc000-7f6712cd4000 r-xp 00000000 fd:00 2759108 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/native_threads/libhpi.so
    7f6712cd4000-7f6712ed3000 ---p 00008000 fd:00 2759108 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/native_threads/libhpi.so
    7f6712ed3000-7f6712ed4000 rw-p 00007000 fd:00 2759108 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/native_threads/libhpi.so
    7f6712ed4000-7f6712ed5000 rw-p 00000000 00:00 0
    7f6712ed5000-7f6712f00000 r-xp 00000000 fd:00 2755851 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libjava.so
    7f6712f00000-7f6713100000 ---p 0002b000 fd:00 2755851 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libjava.so
    7f6713100000-7f6713104000 rw-p 0002b000 fd:00 2755851 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libjava.so
    7f6713104000-7f6713112000 r-xp 00000000 fd:00 2755904 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libverify.so
    7f6713112000-7f6713311000 ---p 0000e000 fd:00 2755904 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libverify.so
    7f6713311000-7f6713313000 rw-p 0000d000 fd:00 2755904 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libverify.so
    7f6713313000-7f6713314000 ---p 00000000 00:00 0
    7f6713314000-7f6713414000 rwxp 00000000 00:00 0
    7f6713414000-7f6713bcd000 r-xp 00000000 fd:00 2755911 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
    7f6713bcd000-7f6713dcd000 ---p 007b9000 fd:00 2755911 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
    7f6713dcd000-7f6713e53000 rw-p 007b9000 fd:00 2755911 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
    7f6713e53000-7f6713e94000 rw-p 00000000 00:00 0
    7f6713e9b000-7f6713e9f000 r--s 0007c000 fd:00 2755404 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jsse.jar
    7f6713e9f000-7f6713ea8000 r--s 00065000 fd:00 2755926 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext/gnome-java-bridge.jar
    7f6713ea8000-7f6713eab000 r--s 0000f000 fd:00 2755929 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext/pulse-java.jar
    7f6713eab000-7f6713eb3000 rw-s 00000000 fd:00 1310764 /tmp/hsperfdata_mposs/963
    7f6713eb3000-7f6713eb4000 rw-p 00000000 00:00 0
    7f6713eb4000-7f6713eb5000 r--p 00000000 00:00 0
    7f6713eb5000-7f6713eb6000 rw-p 00000000 00:00 0
    7fff6b059000-7fff6b079000 rwxp 00000000 00:00 0 stack
    7fff6b079000-7fff6b07a000 rw-p 00000000 00:00 0
    7fff6b1f4000-7fff6b1f5000 r-xp 00000000 00:00 0 vdso
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 vsyscall

    VM Arguments:
    jvm_args: -XX:-UseGCOverheadLimit -Xmx2000m -Xmx10000m -Djava.library.path=/usr/ilog/cplex121/bin/x86-64_debian4.0_4.1
    java_command: main.Test
    Launcher Type: SUN_STANDARD

    Environment Variables:
    CLASSPATH=/opt/xpressmp/lib/xprm.jar:/opt/xpressmp/lib/xprb.jar:/opt/xpressmp/lib/xprs.jar:
    PATH=/opt/xpressmp/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/ilog/cplex121/bin/x86-64_debian4.0_4.1:/opt/xpressmp/bin:/usr/ziboptsuite-1.2.1/scip-1.2.1.5/bin:/usr/ziboptsuite-1.2.1/soplex-1.4.2/bin:/usr/ziboptsuite-1.2.1/zimpl-3.0.1/bin:/opt/intel/bin/:/home/mposs/bin
    LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/opt/xpressmp/lib:
    SHELL=/bin/bash

    Signal Handlers:
    SIGSEGV: http://libjvm.so+0x65c330, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: http://libjvm.so+0x65c330, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: http://libjvm.so+0x539650, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: http://libjvm.so+0x539650, sa_mask[0]=0x00001000, sa_flags=0x10000000, flags was changed from 0x10000004, consider using jsig library
    SIGXFSZ: http://libjvm.so+0x539650, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: http://libjvm.so+0x539650, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: http://libjvm.so+0x538e00, sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGINT: http://libjvm.so+0x53b230, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: http://libjvm.so+0x53b230, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: http://libjvm.so+0x53b230, sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

    S Y S T E M

    OS:Fedora release 13 (Goddard)

    uname:Linux 2.6.34.9-69.fc13.x86_64 #1 SMP Tue May 3 09:23:03 UTC 2011 x86_64
    libc:glibc 2.12.2 NPTL 2.12.2
    rlimit: STACK 10240k, CORE 0k, NPROC 1024, NOFILE 1024, AS infinity
    load average:7.99 7.87 7.87

    CPU:total 8 (8 cores per cpu, 2 threads per core) family 6 model 26 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, ht

    Memory: 4k page, physical 12323564k(1965712k free), swap 14385148k(14368680k free)

    vm_info: OpenJDK 64-Bit Server VM (14.0-b16) for linux-amd64 JRE (1.6.0_18-b18), built on Jun 7 2011 17:53:45 by "mockbuild" with gcc 4.4.5 20101112 (Red Hat 4.4.5-2)

    time: Mon May 21 15:13:29 2012
    elapsed time: 4 seconds
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/21/12 02:17 PM

    Originally posted by: SystemAdmin


    Could you try to wrap your callbacks main() function into a try-catch block like this:
    public void main() throws IloException {
          try {
             // Your callback code here
             ...
          } catch (Exception e) {
             System.err.println("Unexpected exception: " + e.getMessage());
             e.printStackTrace();
             System.exit(-1);
          }
       }
    

    With that in place: do you observe any exception being thrown during the callback?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/21/12 04:38 PM

    Originally posted by: MichaelPoss


    No exception is being thrown, so I get the same as before.

    Notice that my cut is generated in a method called by the main of the CallBack, but I guess that does not change anything.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/22/12 01:13 AM

    Originally posted by: SystemAdmin


    Hm, that is weird. I could not reproduce your problem here but the backtrace you sent me clearly says that an error occurred while executing the callback function. Just to make sure, could you try again with 'catch (Throwable)' instead of 'catch (Exception)'? It should not matter whether your cut is added directly from the callback's main() or a function that is called from main(), as long as you wrap all code in main() into the try-catch-block. Or do you catch (and ignore) exceptions anywhere in the code path taken from the callback's main() function?
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/22/12 04:59 AM

    Originally posted by: MichaelPoss


    Throwable does not send anything either.
    I never catch my exceptions so this should not be the problem.

    Any other suggestion ?
    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/25/12 01:23 AM

    Originally posted by: SystemAdmin


    I am still wondering where this error in the callback comes from. Could you run your program through jdb and do something like
    > catch ilog.concert.IloException
    > catch java.lang.RuntimeException
    > run
    

    to see whether any unexpected exceptions are thrown?
    What is the most recent version of CPLEX with which you observe this crash?
    #CPLEXOptimizers
    #DecisionOptimization


  • 9.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/28/12 05:20 AM

    Originally posted by: MichaelPoss


    Dear Daniel,

    Thank's for your help.
    I found my mistake: I was doing cplex.add(cut) instead of add(cut) in my Callback.

    Michael.
    #CPLEXOptimizers
    #DecisionOptimization


  • 10.  Re: branch-and-cut EXCEPTION_ACCESS_VIOLATION

    Posted 05/28/12 05:42 AM

    Originally posted by: SystemAdmin


    Thanks for keeping me updated. Good to hear that you solved your problem and it turned out not to be a bug in CPLEX.
    I will add an item to our internal user wish list that operations like you did should throw an exception rather than resulting in undefined behavior.
    #CPLEXOptimizers
    #DecisionOptimization