public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Abort using libgcj
@ 2000-04-01  0:00 John H. Spicer
  2000-04-01  0:00 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: John H. Spicer @ 2000-04-01  0:00 UTC (permalink / raw)
  To: java-discuss

I built gcc 2.95.2 and libgcj 2.95.1.  When I run any program I get
a runtime abort.  I tried this on Intel Solaris 2.7 and Sparc 
Solaris 2.7.  The aborts I get are different.

I must be doing something dumb, but I don't know what it is.  Both
pieces of software were built by just doing

	/source_dir/configure
	make
	make install

On Sparc I get:

#0  0xff14f5a4 in GC_find_limit (p=0xffbee97c "", up=1)
    at /edg6/gnusrc/libgcj-2.95.1/boehm-gc/os_dep.c:681
#1  0xff14f604 in GC_get_stack_base ()
    at /edg6/gnusrc/libgcj-2.95.1/boehm-gc/os_dep.c:723
#2  0xff14e754 in GC_init_inner ()
    at /edg6/gnusrc/libgcj-2.95.1/boehm-gc/misc.c:457
#3  0xff14b81c in GC_generic_malloc_inner (lb=2052, k=0)
    at /edg6/gnusrc/libgcj-2.95.1/boehm-gc/malloc.c:91
#4  0xff2bb2c4 in _Jv_InitGC ()
    at /edg6/gnusrc/libgcj-2.95.1/libjava/boehm.cc:335
#5  0xff2a6d34 in _Jv_RegisterClasses (classes=0xffbeebc8)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:582
#6  0xff2a6dc0 in _Jv_RegisterClass (klass=0x28b94)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:602
#7  0x13db4 in global constructors keyed to hello.hello () at hello.java:5
#8  0x17c74 in __do_global_ctors_aux ()
    at /edg/gnusrc/gcc-2.95.2/gcc/cp/tinfo2.cc:300
#9  0x17cac in _init () at /edg/gnusrc/gcc-2.95.2/gcc/cp/tinfo2.cc:300

On Intel I get:

#0  0xdfee0562 in _Jv_equalUtf8Consts (a=0x0, b=0xdff708a4)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/prims.cc:89
#1  0xdff44bb5 in _Jv_GetMethodLocal (klass=0xdffc67e0, name=0x0, 
    signature=0x0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:527
#2  0xdff449aa in java::lang::Class::hackRunInitializers (this=0xdffc67e0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:416
#3  0xdff41e02 in hackTrampoline__Q34java4lang5ClassiPQ34java4lang9Throwable (
    this=0xdffc67e0, what=1, old_exception=0x0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/Class.java:137
#4  0xdff44afd in java::lang::Class::initializeClass (this=0xdffc67e0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:489
#5  0xdff41dea in hackTrampoline__Q34java4lang5ClassiPQ34java4lang9Throwable (
    this=0xdffc67e0, what=0, old_exception=0x0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/Class.java:135
#6  0xdff44ab8 in java::lang::Class::initializeClass (this=0xdffb9540)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:475
#7  0xdff44d56 in _Jv_InitClass (klass=0xdffb9540)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:565
#8  0xdfee0b54 in _Jv_AllocObject (c=0xdffb9540, size=32)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/prims.cc:266
#9  0xdff47439 in _Jv_AllocString (len=6)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/include/cni.h:31
#10 0xdff472aa in _Jv_NewStringUtf8Const (str=0xdff61822)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natString.cc:226
#11 0xdff448ec in java::lang::Class::resolveConstants (this=0xdffb9540)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:392
#12 0xdff449fd in java::lang::Class::initializeClass (this=0xdffb9540)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:440
#13 0xdff44d56 in _Jv_InitClass (klass=0xdffb9540)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:565
#14 0xdfee0b54 in _Jv_AllocObject (c=0xdffb9540, size=24)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/prims.cc:266
#15 0xdff47439 in _Jv_AllocString (len=2)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/include/cni.h:31
#16 0xdff472aa in _Jv_NewStringUtf8Const (str=0xdff62b08)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natString.cc:226
#17 0xdff448ec in java::lang::Class::resolveConstants (this=0xdffba560)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:392
#18 0xdff449fd in java::lang::Class::initializeClass (this=0xdffba560)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:440
#19 0xdff41dea in hackTrampoline__Q34java4lang5ClassiPQ34java4lang9Throwable (
    this=0xdffba560, what=0, old_exception=0x0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/Class.java:135
#20 0xdff44ab8 in java::lang::Class::initializeClass (this=0xdffb65c0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:475
#21 0xdff41dea in hackTrampoline__Q34java4lang5ClassiPQ34java4lang9Throwable (
    this=0xdffb65c0, what=0, old_exception=0x0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/Class.java:135
#22 0xdff44ab8 in java::lang::Class::initializeClass (this=0xdffba8e0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:475
#23 0xdff41dea in hackTrampoline__Q34java4lang5ClassiPQ34java4lang9Throwable (
    this=0xdffba8e0, what=0, old_exception=0x0)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/Class.java:135
#24 0xdff44ab8 in java::lang::Class::initializeClass (this=0xdffb8520)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:475
#25 0xdff44d56 in _Jv_InitClass (klass=0xdffb8520)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/java/lang/natClass.cc:565
#26 0xdfee0b54 in _Jv_AllocObject (c=0xdffb8520, size=12)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/prims.cc:266
#27 0xdfee129c in JvRunMain (klass=0x80501e0, argc=1, argv=0x8047984)
    at /edg6/gnusrc/libgcj-2.95.1/libjava/prims.cc:579
#28 0x804acbb in main (argc=1, argv=0x8047984) at /var/tmp/ccmEbpLqmain.i:4

Any suggestions?

Thanks,

John Spicer
Edison Design Group

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Abort using libgcj
  2000-04-01  0:00 Abort using libgcj John H. Spicer
@ 2000-04-01  0:00 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2000-04-01  0:00 UTC (permalink / raw)
  To: John H. Spicer; +Cc: java-discuss

John> #0  0xff14f5a4 in GC_find_limit (p=0xffbee97c "", up=1)
John>     at /edg6/gnusrc/libgcj-2.95.1/boehm-gc/os_dep.c:681

This is probably the normal segv the GC provokes on some systems.  Try
continuing past it in gdb to find the real segv.

John> On Intel I get:

John> #0  0xdfee0562 in _Jv_equalUtf8Consts (a=0x0, b=0xdff708a4)
John>     at /edg6/gnusrc/libgcj-2.95.1/libjava/prims.cc:89

I've seen reports of this before but I'm afraid I no longer remember
the bug or the fix.  Sorry.

Are you using the GNU linker?  That is one known problem on Solaris.
(That is, you must use it.)

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-01  0:00 Abort using libgcj John H. Spicer
2000-04-01  0:00 ` Tom Tromey

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).