[Gc] powerpc64 problems
hans.boehm at hp.com
Tue Nov 22 12:39:30 PST 2005
It looks like we're either seeing a deadlock, or another thread is hung.
Could you check whether in this mode, it is consuming significant
amounts of CPU time?
Could you also post stack backtraces for all the threads? It would be
good to know who is holding the allocation lock, and what that thread is
doing. The stack trace you posted only indicates that some thread is
waiting for the allocation lock.
It may be that the GC_test_and_set implementation is broken on
PowerPC64. You might try building with USE_PTHREAD_LOCKS, and see if
that works. (This may be better with NPTL threads anyway.)
> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Christian Thalinger
> Sent: Tuesday, November 22, 2005 3:10 AM
> To: gc-ml
> Subject: [Gc] powerpc64 problems
> I'm currently trying to get CACAO running on powerpc64-linux
> and it seems boehm gc has some problems with it. In gctest
> it's running infinitely. Below is a gdb session, in which i
> pressed <ctrl>-c after some time.
> $ gdb ./gctest
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public
> License, and you are welcome to change it and/or distribute
> copies of it under certain conditions. Type "show copying" to
> see the conditions. There is absolutely no warranty for GDB.
> Type "show warranty" for details. This GDB was configured as
> "powerpc64-unknown-linux-gnu"...Using host libthread_db
> library "/lib/tls/libthread_db.so.1".
> (gdb) r
> [Thread debugging using libthread_db enabled]
> [New Thread 549757910752 (LWP 20481)]
> Program received signal SIGINT, Interrupt.
> [Switching to Thread 549757910752 (LWP 20481)]
> 0x0000008000043cc0 in .__nanosleep_nocancel () from
> (gdb) bt
> #0 0x0000008000043cc0 in .__nanosleep_nocancel ()
> from /lib/tls/libpthread.so.0
> #1 0x00000000100169e0 in GC_lock () at
> pthread_support.c:1462 #2 0x0000000010016cec in
> GC_pthread_create (new_thread=0x1fffffb71a0, attr=0x1fffffb7160,
> start_routine=@0x10030530: 0x1000427c <thr_run_one_test>,
> arg=0x0) at pthread_support.c:1211 #3 0x000000001000430c in
> main () at test.c:1826
> Gc mailing list
> Gc at linux.hpl.hp.com
More information about the Gc