[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can we use Jigs
From: |
Nicola Pero |
Subject: |
Re: Can we use Jigs |
Date: |
Tue, 11 Sep 2001 15:25:54 +0100 (BST) |
Please report problems and bug reports to bug-gnustep@gnu.org
rather than on discuss-gnustep@gnu.org.
> the following runtime error has been generated after running the
> JavaTest example program of JIGS..
>
> -------------------
> Compiled to test JIGS version 1.5.1
> Now starting the Java Virtual Machine...
> Check if the virtual machine is running...yes
> Getting the (JNIEnv *) of current thread...ok
> Initializing JIGS...ok
> Now asking for the java.lang.System class pointer...Got java.lang.System
> Now asking for the java.lang.BogusSystem class pointer...Not found (and not
> crashed!) ==> test passed
> Asking for the selector of getProperty:...Got getProperty:
> Asking if java.lang.System responds to getProperty:...yes
> Asking for the class method implementation...ok
> Calling it to get some system properties:
> java.vm.version == 1.2.2
> java.vendor == Sun Microsystems Inc.
> java.vendor.url == http://www.sun.com/
>
>
> SIGSEGV 11 segmentation violation
> si_signo [11]: SEGV
> si_errno [0]:
> si_code [1]: SEGV_MAPERR [addr: 0x0]
This is probably simply because your libc is crashing upon %s used with a
NULL string.
Try applying the following patch
Index: main.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/dev-libs/java/Testing/Objc/main.m,v
retrieving revision 1.11
diff -u -r1.11 main.m
--- main.m 2001/07/27 12:18:49 1.11
+++ main.m 2001/09/11 12:58:50
@@ -352,7 +352,14 @@
printf (" java.vendor.url == %s\n", [result cString]);
result = imp (javaLangSystem, selector, @"java.vendor.uri");
- printf (" java.vendor.uri == %s\n", [result cString]);
+ if (result != nil)
+ {
+ printf (" java.vendor.uri == %s\n", [result cString]);
+ }
+ else
+ {
+ printf (" java.vendor.uri == (nil)\n", [result cString]);
+ }
result = imp (javaLangSystem, selector, @"java.home");
printf (" java.home == %s\n", [result cString]);
if you can confirm me it works, I'll apply it (and similar ones) to main.m
- Re: Can we use Jigs,
Nicola Pero <=