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 libgcj/15950] New: gij crash with LC_CTYPE set


I get a crash from gij like so:

fleche. LANG=en_US LC_CTYPE=zh_TW.Big5 gij hibob
Segmentation fault



(gdb) bt
#0  0x404e3b34 in _Jv_FindClass (name=0x8075848, loader=Variable "loader" is not
available.
)
    at ../../../gcc/libjava/java/lang/natClassLoader.cc:404
#1  0x404e316b in java::lang::Class::forName (className=0x8099f30,
initialize=Variable "initialize" is not available.
)
    at ../../../gcc/libjava/java/lang/natClass.cc:84
#2  0x404e32af in java::lang::Class::forName (className=0x0)
    at ../../../gcc/libjava/java/lang/natClass.cc:114
#3  0x404946ae in gnu.gcj.convert.UnicodeToBytes.getDefaultEncoder() ()
    at ../../../gcc/libjava/gnu/gcj/convert/UnicodeToBytes.java:49
#4  0x4053376a in java.io.PrintStream.PrintStream(java.io.OutputStream, boolean)
(this=0x8099f48, out=0x8096ac0, auto_flush=true)
    at ../../../gcc/libjava/java/io/PrintStream.java:118
#5  0x4050b923 in java.lang.System.<clinit>() ()
    at ../../../gcc/libjava/java/lang/System.java:146
#6  0x404e2ef9 in java::lang::Class::initializeClass (this=Variable "this" is
not available.
)
    at ../../../gcc/libjava/java/lang/natClass.cc:809
#7  0x40746f17 in _Jv_InitClass (klass=Variable "klass" is not available.
) at Class.h:279
#8  0x4050b0ef in java.lang.System.getProperty(java.lang.String) (
    key=0x8091f50) at ../../../gcc/libjava/java/lang/System.java:407
#9  0x4050f84b in java.lang.VMClassLoader.getSystemClassLoader() ()
    at ../../../gcc/libjava/java/lang/VMClassLoader.java:278
#10 0x404f66de in java.lang.ClassLoader.<clinit>() ()
    at ../../../gcc/libjava/java/lang/ClassLoader.java:156
#11 0x404e2ef9 in java::lang::Class::initializeClass (this=Variable "this" is
not available.
)
    at ../../../gcc/libjava/java/lang/natClass.cc:809
#12 0x404bfd41 in _Jv_CreateJavaVM () at Class.h:279
#13 0x404c05ec in _Jv_RunMain (klass=0x0, name=0xbfffface "hibob", argc=Variable
"argc" is not available.
)
    at ../../../gcc/libjava/prims.cc:1036
#14 0x08048860 in main (argc=2, argv=0xbfffe464)
    at ../../../gcc/libjava/gij.cc:166
(gdb)

-- 
           Summary: gij crash with LC_CTYPE set
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                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=15950


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