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

Bug#223737: libgcj4: regression - NullPointerException detection broken



Package: libgcj4
Version: 1:3.3.2-4
Severity: normal

The fix for http://bugs.debian.org/206377 seems to have regressed.
Compile and run the following with a 2.6.0-test11 kernel:

-----cut here-----
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

public class testcase {
	public static void main(String[] args) {
		System.out.println("1");
		foo();
		System.out.println("2");
		foo();
		System.out.println("3");
	}
	public static void foo() {
		try {
			bar(null);
		} catch (NullPointerException ex) {
		}
	}
	public static void bar(OutputStream outputStream) {
		try {
			ObjectOutputStream out = new ObjectOutputStream(outputStream);
		} catch (IOException ex) {
		}
	}
}
-----cut here-----

The expected output is:
1
2
3

The broken output is:
1
2
Segmentation fault

This is causing a segmentation fault here when clicking the "next"
button on iRATE.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux flower 2.6.0-test11-flower-reiserfsxattr #1 Sat Nov 29 19:43:53 BRST 2003 i686
Locale: LANG=C, LC_CTYPE=en_US.UTF-8

Versions of packages libgcj4 depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.3.2-4    GCC support library
ii  libgcj-common               1:3.3.2-4    Java runtime library (common files
ii  libstdc++5                  1:3.3.2-4    The GNU Standard C++ Library v3
ii  xlibs                       4.2.1-12.1   X Window System client libraries
ii  zlib1g                      1:1.1.4-16   compression library - runtime

-- no debconf information




Reply to: