bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22827] jamvm/kaffe crash with unknown locale


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22827] jamvm/kaffe crash with unknown locale
Date: 16 Oct 2005 01:27:22 -0000

When there is LANG value which is not locale-gen'ed,
both kaffe and jamvm crash.  I'm not sure whose bug it is.
If its VM bug, I can report it further.

public class Test3 {
public static void main(String [] args) {}}

$ LANG=vi kaffe-cvs Test3
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
        at
gnu.classpath.VMSystemProperties.getLocale(VMSystemProperties.java:native)
        at
gnu.classpath.VMSystemProperties.preInit(VMSystemProperties.java:172)
        at gnu.classpath.SystemProperties.<clinit>(SystemProperties.java:68)
        at java.lang.System.<clinit>(System.java:43)
        at java.security.SecureClassLoader.<init>(SecureClassLoader.java:61)
        at java.net.URLClassLoader.<init>(URLClassLoader.java:548)
        at kaffe.lang.AppClassLoader.<init>(AppClassLoader.java:237)
        at kaffe.lang.AppClassLoader.<clinit>(AppClassLoader.java:35)
        at java.lang.VMClassLoader.getSystemClassLoader(VMClassLoader.java:293)
        at java.lang.ClassLoader$StaticData.<clinit>(ClassLoader.java:160)
        at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:772)
Aborted (core dumped)

# jamvm-cvs is jamvm 1.2.3 with Classpath from CVS
$ LANG=vi jamvm-cvs Test3
Segmentation fault (core dumped)
$


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-12-31 
03:14 -------
The crash with JamVM is a bug in the VM, and I suspect it will be the same with
Kaffe.

If the value is not locale-gen'ed, setlocale appears to return null.  I do
basic checking that the returned locale string is in the right format, but not
for null!

A fix will be in the next release.  If anybody requires it, I can submit a
patch.  Thanks for finding this.


------- Comment #2 from from-classpath at savannah dot gnu dot org  2004-12-31 
12:29 -------
Guilhem Lavaux just told me that the bug is fixed in Kaffe CVS.


------- Comment #3 from from-classpath at savannah dot gnu dot org  2005-01-03 
12:13 -------
The first fix wasnt enough, but now its ok.

If rlougher says that jamvm is ok too, then I guess thus bug can be closed.


------- Comment #4 from from-classpath at savannah dot gnu dot org  2005-01-29 
16:17 -------
Works for me now with the latest kaffe (CVS) and jamvm.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22827





reply via email to

[Prev in Thread] Current Thread [Next in Thread]