public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "green at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/15768] New: ICE: blowing stack with seemingly infinite recursion in jc1
Date: Tue, 01 Jun 2004 23:46:00 -0000	[thread overview]
Message-ID: <20040601223041.15768.green@redhat.com> (raw)

This appears to be a stack-overflow problem.  I hit it while building
src/org/apache/xerces/dom/ASDOMImplementationImpl.java to native code from the
xerces in rhug. 

This problem doesn't happen if you build this file first (ie. there are no other
class files yet).

Just check the code out from sources.redhat.com:/cvs/rhug (module rhug/xerces),
configure and build to reproduce.
                                                                               
                                                                               
                                   
#0  0x0093c62e in vfprintf () from /lib/tls/libc.so.6
#1  0x0095732b in vsprintf () from /lib/tls/libc.so.6
#2  0x0094534d in sprintf () from /lib/tls/libc.so.6
#3  0x080af897 in append_gpp_mangled_name (name=0x9fe6a91 "org", len=3)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/mangle_name.c:62
#4  0x080aef4a in mangle_record_type (type=0x846fd20, for_pointer=0)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/mangle.c:372
#5  0x080ae75e in mangle_field_decl (decl=0xf5fe389c)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/mangle.c:122
#6  0x080ae5f0 in java_mangle_decl (obstack=0x846fd20, decl=0xf5fe389c)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/mangle.c:83
#7  0x0808e05b in layout_class (this_class=0xf5fdeef4)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/class.c:2017
#8  0x080ac8d2 in read_class (name=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:545
#9  0x080acc21 in load_class (class_or_name=0x846a7ff, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:585
#10 0x080ad15b in load_inner_classes (cur_class=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:690
#11 0x080ac8da in read_class (name=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:546
#12 0x080acc21 in load_class (class_or_name=0x846a7ff, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:585
#13 0x080ad15b in load_inner_classes (cur_class=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:690
#14 0x080ac8da in read_class (name=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:546
#15 0x080acc21 in load_class (class_or_name=0x846a7ff, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:585
#16 0x080ad15b in load_inner_classes (cur_class=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:690
#17 0x080ac8da in read_class (name=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:546
#18 0x080acc21 in load_class (class_or_name=0x846a7ff, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:585
#19 0x080ad15b in load_inner_classes (cur_class=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:690
#20 0x080ac8da in read_class (name=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:546
#21 0x080acc21 in load_class (class_or_name=0x846a7ff, verbose=1)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:585
#22 0x080ad15b in load_inner_classes (cur_class=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:690
#23 0x080ac8da in read_class (name=0x846a7ff)
    at /home/green/sources/jhbuild-src/gcc/gcc/java/jcf-parse.c:546
#24 0x080acc21 in load_class (class_or_name=0x846a7ff, verbose=1)
etc
etc
etc

-- 
           Summary: ICE: blowing stack with seemingly infinite recursion in
                    jc1
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15768


             reply	other threads:[~2004-06-01 22:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 23:46 green at redhat dot com [this message]
2004-06-03 12:21 ` [Bug java/15768] [3.5? regression] " pinskia at gcc dot gnu dot org
2004-06-05 20:12 ` green at redhat dot com
2004-06-17  3:21 ` rmathew at gcc dot gnu dot org

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=20040601223041.15768.green@redhat.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@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).