libgcj/4213: SimpleDateFormat constructor SEGV's.
Anthony Green
green@cygnus.com
Mon Sep 3 16:36:00 GMT 2001
>Number: 4213
>Category: libgcj
>Synopsis: SimpleDateFormat constructor SEGV's.
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 03 16:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Anthony Green
>Release: 3.1 20010901 (experimental)
>Organization:
>Environment:
System: Linux fencer.cygnus.com 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /fencer/cutlass/aph/green/trunk/gcc/configure --prefix=/fencer/cutlass/aph/green/trunk/gcc/i --enable-threads --enable-languages=c++,java
>Description:
Compiling and running the attached results in...
Exception in thread "main" java.lang.NullPointerException
at 0x401c2f41: java.lang.Throwable.Throwable() (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x401b764f: java.lang.Exception.Exception() (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x401bbeaf: java.lang.RuntimeException.RuntimeException() (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x401bb25f: java.lang.NullPointerException.NullPointerException() (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x40183497: _Jv_ThrowNullPointerException (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x402631d6: java.text.DateFormatSymbols.DateFormatSymbols(java.util.Locale) (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x4026ec7b: java.text.SimpleDateFormat.SimpleDateFormat(java.lang.String, java.util.Locale) (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x4026ebbf: java.text.SimpleDateFormat.SimpleDateFormat(java.lang.String) (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x08048f6c: sdf.main(java.lang.String[]) (/tmp/sdf.java:9)
at 0x4019d4c8: gnu.gcj.runtime.FirstThread.call_main() (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x402292d8: gnu.gcj.runtime.FirstThread.run() (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x401aa70c: _Jv_ThreadRun(java.lang.Thread) (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x40184254: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x401843ad: JvRunMain (/fencer/cutlass/aph/green/trunk/gcc/i/lib/libgcj.so.2)
at 0x08048f1c: main (/tmp/cc2lKzL1main.i:0)
at 0x404f71eb: __libc_start_main (/lib/libc.so.6)
at 0x08048e19: _init ((null):0)
>How-To-Repeat:
Compile and run the following...
import java.text.SimpleDateFormat;
public class sdf
{
protected static String timestampFormat = "yyyy-MM-dd HH:mm:ss";
public static void main(String args[])
{
SimpleDateFormat timestampFormatter = new SimpleDateFormat(timestampFormat);
System.out.println (timestampFormatter);
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list