gcj version 3.4.4 compiles just fine. Segfault upon run.
Jan-Willem Regeer
xistence@x-istence.com
Thu Feb 10 20:51:00 GMT 2005
Hello,
I hate to just jump onto a list, and just post immediatly, but i wanted
to quickly leave a message that i keep getting the following when i
compile using gcj:
[Breached: ~]$ cat random.java
class random {
static void main(String [] args) {
System.out.println("Test");
}
}
[Breached: ~]$ gcj34 -g --main=random random.java -o random
[Breached: ~]$ ./random
Segmentation fault (core dumped)
The system is a FreeBSD 5.3, using the port build of gcc 3.4.4.
I have ran the same test on FreeBSD 4.10 with a port build of gcc 3.4.4
as well, and it had the same output.
backtrace from the core dump using gdb:
(gdb) bt
#0 0x08078c68 in _Jv_FindClass ()
#1 0x080752f4 in java::lang::Class::forName ()
#2 0x080753c6 in java::lang::Class::forName ()
#3 0x080b6884 in gnu.gcj.convert.UnicodeToBytes.getDefaultEncoder() ()
at
../.././..//gcc-3.4-20050114/libjava/gnu/gcj/convert/
UnicodeToBytes.java:49
#4 0x08091680 in java.io.PrintStream.PrintStream(java.io.OutputStream,
boolean) (this=0x82f5f90, out=0x82f1ab0, auto_flush=true)
at ../.././..//gcc-3.4-20050114/libjava/java/io/PrintStream.java:118
#5 0x08089e6b in java.lang.System.<clinit>() () at
../.././..//gcc-3.4-20050114/libjava/java/lang/System.java:146
#6 0x08076752 in java::lang::Class::initializeClass ()
#7 0x080782c3 in _Jv_InitClass ()
#8 0x0808a213 in java.lang.System.getProperty(java.lang.String)
(key=0x82d6f00) at
../.././..//gcc-3.4-20050114/libjava/java/lang/System.java:405
#9 0x0808c9dd in java.lang.VMClassLoader.getSystemClassLoader() () at
../.././..//gcc-3.4-20050114/libjava/java/lang/VMClassLoader.java:280
#10 0x08082faa in java.lang.ClassLoader.<clinit>() () at
../.././..//gcc-3.4-20050114/libjava/java/lang/ClassLoader.java:156
#11 0x08076752 in java::lang::Class::initializeClass ()
#12 0x0804c33c in _Jv_CreateJavaVM ()
#13 0x0804c425 in _Jv_RunMain ()
#14 0x0804c5b1 in JvRunMain ()
#15 0x0804ad8d in main (argc=1, argv=0xbfbfecbc) at
/var/tmp//ccYwF1nx.i:11.
Thank you for your time,
Jan-Willem Regeer
----
This message is authored under the license which can be found at
http://x-istence.com/LICENSE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2373 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20050210/3f49bbe8/attachment.p7s>
More information about the Java
mailing list