This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/15768] New: ICE: blowing stack with seemingly infinite recursion in jc1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]