#180 Program crashes immediately when calling new NativeEngine

open
nobody
5
2010-09-23
2010-09-23
Anonymous
No

Hi, I'm using XSB 3.1 and Interprolog2.12a. I've tried other combinations as well (XSB2.7.1, XSB3.2, interprolog2.1.2), but I keep getting core dump:

$> ${JAVA_BIN}/java -classpath ${CLASSPATH}:../interprolog.jar -Djava.library.path=${XSB_BIN_DIRECTORY} com.declarativa.interprolog.examples.HelloWorld ${XSB_BIN_DIRECTORY}

[xsb_configuration loaded]
[sysinitrc loaded]
++Error[XSB/Runtime/P]: [Miscellaneous] ++Error[XSB]: [Runtime/C] [PTOC_LONGSTRING] Argument of unknown type
Forward Continuation...
... loader:search_file/3
... loader:search_file/3
... standard:call/1
... standard:catch/3

++Warning[XSB]: [Runtime/C] [C2P_STRING] Argument 2 must be a variable

++Warning[XSB]: [Runtime/C] [C2P_INT] Argument 2 must be a variable
Partial Forward Continuation...
./runXSBSPListener.sh: line 4: 7394 Segmentation fault (core dumped) ${JAVA_BIN}/java -classpath ${CLASSPATH}:../interprolog.jar -Djava.library.path=${XSB_BIN_DIRECTORY} com.declarativa.interprolog.examples.HelloWorld ${XSB_BIN_DIRECTORY}

The HelloWorld.java is simply:

package com.declarativa.interprolog.examples;
import com.declarativa.interprolog.*;
import com.xsb.interprolog.*;
public class HelloWorld{
public static void main(String args[]) {
PrologEngine engine = new NativeEngine(args[0]);
}
}

I'm using Java v1.6.0.
Any help or response is much appreciated!

Thanks,
Alan

Discussion


Log in to post a comment.