commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bugs #11458] jamvm/kaffe crash with unknown locale


From: Michael Koch
Subject: [commit-cp] [bugs #11458] jamvm/kaffe crash with unknown locale
Date: Fri, 31 Dec 2004 07:51:16 -0500
User-agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux; X11; i686; de, address@hidden) (KHTML, like Gecko)

This mail is an automated notification from the bugs tracker
 of the project: classpath.

/**************************************************************************/
[bugs #11458] Latest Modifications:

Changes by: 
                Michael Koch <address@hidden>
'Date: 
                Fre 31.12.2004 at 12:29 (GMT)

------------------ Additional Follow-up Comments ----------------------------
Guilhem Lavaux just told me that the bug is fixed in Kaffe CVS.






/**************************************************************************/
[bugs #11458] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11458>
Project: classpath
Submitted by: Marko Kreen
On: Don 30.12.2004 at 22:55

Category:  classpath
Severity:  5 - Average
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open
Platform Version:  None


Summary:  jamvm/kaffe crash with unknown locale

Original Submission:  
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)
$


Follow-up Comments
------------------


-------------------------------------------------------
Date: Fre 31.12.2004 at 12:29       By: Michael Koch <mkoch>
Guilhem Lavaux just told me that the bug is fixed in Kaffe CVS.

-------------------------------------------------------
Date: Fre 31.12.2004 at 03:14       By: Robert Lougher <rlougher>
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.













For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11458>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

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