public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: jsperri@gmx.net
To: gcc-gnats@gcc.gnu.org
Subject: java/4510: Compiler seg fault on '(String) ((long) d + "d")'
Date: Tue, 09 Oct 2001 00:26:00 -0000	[thread overview]
Message-ID: <20011009071646.7675.qmail@sourceware.cygnus.com> (raw)

>Number:         4510
>Category:       java
>Synopsis:       Compiler seg fault on '(String) ((long) d + "d")'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 09 00:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     jsperri@gmx.net
>Release:        gcc-3.0.1
>Organization:
>Environment:
gcc version 3.0.1 - Thread model: posix
built with ../gcc-3.0.1/configure --enable-threads=posix
on Linux Mandrake 8.0-x86


>Description:
The attached piece of code generates a segfault when compiled with gcj 3.0.1. Compiler flags used:
gcj -v --main=HelloWorld HelloWorld.java --classpath=/usr
/local/share/libgcj.jar -o Hello

Compiler output:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/../../../libgc
j.spec
rename spec lib to liborig
rename spec startfile to startfileorig
Configured with: ../gcc-3.0.1/configure --enable-threads=posix
Thread model: posix
gcc version 3.0.1
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/jc1 HelloWorld.java -fuse-divide
-subroutine -fuse-boehm-gc -fnon-call-exceptions -quiet -dumpbase HelloWorld.jav
a -g1 -version -fclasspath=/usr/local/share/libgcj.jar -o /tmp/ccI7ZYnk.s
GNU Java version 3.0.1 (i686-pc-linux-gnu)
        compiled by GNU C version 3.0.1.
HelloWorld.java: In class `HelloWorld':
HelloWorld.java: In method `HelloWorld.main(java.lang.String[])':
HelloWorld.java:6: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
Just compile HelloWorld class.

GCJ should core with:
HelloWorld.java: In class `HelloWorld':
HelloWorld.java: In method `HelloWorld.main(java.lang.String[])':
HelloWorld.java:6: Internal error: Segmentation fault

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="HelloWorld.java"
Content-Disposition: inline; filename="HelloWorld.java"

public class HelloWorld {

    public static void main (String []args)
    {
	double d=1.0;
	System.out.println ((String) ((long) d + "d"));
    }
}


             reply	other threads:[~2001-10-09  0:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-09  0:26 jsperri [this message]
2001-10-09 11:22 apbianco
2002-01-20 17:29 bryce

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=20011009071646.7675.qmail@sourceware.cygnus.com \
    --to=jsperri@gmx.net \
    --cc=gcc-gnats@gcc.gnu.org \
    /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: link
Be 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).