public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: rolfwr@ii.uib.no To: java-gnats@sourceware.cygnus.com Subject: libgcj/1171: Some null pointer method invocations cause SIGABRT Date: Wed, 20 Dec 2000 12:21:00 -0000 [thread overview] Message-ID: <20000328153732.17402.qmail@sourceware.cygnus.com> (raw) >Number: 1171 >Category: libgcj >Synopsis: Some null pointer method invocations cause SIGABRT >Confidential: no >Severity: serious >Priority: medium >Responsible: tromey >State: closed >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Dec 20 12:16:50 PST 2000 >Closed-Date: Mon Jun 05 22:23:25 PDT 2000 >Last-Modified: Mon Jun 5 22:30:00 PDT 2000 >Originator: Rolf W. Rasmussen <rolfwr@ii.uib.no> >Release: gcc version 2.96 20000327 (experimental) >Organization: >Environment: i586-pc-linux-gnu (Debian) >Description: Some methods when invoced using a null pointer, will generate a SIGABRT, instead of the NullPointerException one would expect. The problem seems only to occur with simple methods such as Integer.intValue(), String.length(), Vector.size(). >How-To-Repeat: Compile and run -------- public class NullPointerExceptionTest { public static void main(String[] args) { ((Integer) null).intValue(); } } -------- Other one-liners that trigger the same problem: ((String) null).length(); ((java.util.Vector) null).size(); Boolean ref = null; ref.booleanValue(); >Fix: >Release-Note: >Audit-Trail: Formerly PR libgcj/184 From: bryce@sourceware.cygnus.com To: java-gnats@sourceware.cygnus.com Cc: Subject: libgcj/184 Date: 29 Mar 2000 02:09:00 -0000 CVSROOT: /cvs/java Module name: libgcj Changes by: bryce@sourceware.cygnus.com 00/03/28 18:09:00 Modified files: libjava/testsuite: ChangeLog Added files: libjava/testsuite/libjava.lang: pr184.out pr184.java Log message: Test case for PR libgcj/184: * libjava.lang/pr184.java: New file. * libjava.lang/pr184.out: New file. Patches: http://gcc.gnu.org/cgi-bin/gcc/libjava/testsuite/ChangeLog.diff?cvsroot=java&r1=1.79&r2=1.80 http://gcc.gnu.org/cgi-bin/gcc/libjava/testsuite/libjava.lang/pr184.out.diff?cvsroot=java&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/gcc/libjava/testsuite/libjava.lang/pr184.java.diff?cvsroot=java&r1=NONE&r2=1.1 Responsible-Changed-From-To: apbianco->tromey Responsible-Changed-By: tromey Responsible-Changed-When: Thu Apr 27 17:19:45 2000 Responsible-Changed-Why: I fixed it. State-Changed-From-To: open->feedback State-Changed-By: tromey State-Changed-When: Thu Apr 27 17:19:45 2000 State-Changed-Why: I've checked in a patch to fix this problem. Can you try it and get back to me? If not, tell me and I will just close this PR. Thanks. From: tromey@cygnus.com To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com, rolfwr@ii.uib.no, tromey@cygnus.com Cc: Subject: Re: libgcj/184 Date: 28 Apr 2000 00:19:45 -0000 Synopsis: Some null pointer method invocations cause SIGABRT Responsible-Changed-From-To: apbianco->tromey Responsible-Changed-By: tromey Responsible-Changed-When: Thu Apr 27 17:19:45 2000 Responsible-Changed-Why: I fixed it. State-Changed-From-To: open->feedback State-Changed-By: tromey State-Changed-When: Thu Apr 27 17:19:45 2000 State-Changed-Why: I've checked in a patch to fix this problem. Can you try it and get back to me? If not, tell me and I will just close this PR. Thanks. http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=184&database=java State-Changed-From-To: feedback->closed State-Changed-By: bryce State-Changed-When: Mon Jun 5 22:23:25 2000 State-Changed-Why: FIXED. The PR 2 compiler fix, combined with the PR 218 runtime patch have resolved this issue. I have verified that all these test cases now throw NullPointerExceptions correctly. From: bryce@albatross.co.nz To: java-gnats@sourceware.cygnus.com, rolfwr@ii.uib.no, tromey@cygnus.com Cc: Subject: Re: libgcj/184 Date: 6 Jun 2000 05:23:25 -0000 Synopsis: Some null pointer method invocations cause SIGABRT State-Changed-From-To: feedback->closed State-Changed-By: bryce State-Changed-When: Mon Jun 5 22:23:25 2000 State-Changed-Why: FIXED. The PR 2 compiler fix, combined with the PR 218 runtime patch have resolved this issue. I have verified that all these test cases now throw NullPointerExceptions correctly. http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=184&database=java >Unformatted:
reply other threads:[~2000-12-20 12:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20000328153732.17402.qmail@sourceware.cygnus.com \ --to=rolfwr@ii.uib.no \ --cc=java-gnats@sourceware.cygnus.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).