This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc-4.2.3-RC1's gctest hangs on i686-apple-darwin9
- From: Jack Howarth <howarth at bromo dot msbb dot uc dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 26 Jan 2008 13:33:27 -0500
- Subject: gcc-4.2.3-RC1's gctest hangs on i686-apple-darwin9
Can someone else please try a test of gcc 4.2.3-RC1 on i686-apple-darwin9?
I am finding that (with the java langauge built) I am getting an apparent hang
in the make check at...
mkdir tests
/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/ -B/sw/lib/gcc4.2/i686-apple-darwin9/bin/ -B/sw/lib/gcc4.2/i686-apple-darwin9/lib/ -isystem /sw/lib/gcc4.2/i686-apple-darwin9/include -isystem /sw/lib/gcc4.2/i686-apple-darwin9/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.2.3-RC-20080125/boehm-gc -I./include -I./include -I/sw/src/fink.build/gcc42-4.2.3-1000/gcc-4.2.3-RC-20080125/boehm-gc/include -fexceptions -Iinclude -I././targ-include -I.//libc/include -O2 -g -O2 -c -o tests/test.o ../../../gcc-4.2.3-RC-20080125/boehm-gc/tests/test.c
/bin/sh ./libtool --mode=link /sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/ -B/sw/lib/gcc4.2/i686-apple-darwin9/bin/ -B/sw/lib/gcc4.2/i686-apple-darwin9/lib/ -isystem /sw/lib/gcc4.2/i686-apple-darwin9/include -isystem /sw/lib/gcc4.2/i686-apple-darwin9/sys-include -fexceptions -Iinclude -I././targ-include -I.//libc/include -O2 -g -O2 -o gctest -shared-libgcc tests/test.o ./libgcjgc.la -lpthread
/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/ -B/sw/lib/gcc4.2/i686-apple-darwin9/bin/ -B/sw/lib/gcc4.2/i686-apple-darwin9/lib/ -isystem /sw/lib/gcc4.2/i686-apple-darwin9/include -isystem /sw/lib/gcc4.2/i686-apple-darwin9/sys-include -fexceptions -Iinclude -I././targ-include -I.//libc/include -O2 -g -O2 -o .libs/gctest -shared-libgcc tests/test.o ./.libs/libgcjgc.dylib -lpthread
creating gctest
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-O2 -g -O2 " "CXXFLAGS=-g -O2 " "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-O2 -g -O2 " "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/sw/lib/gcc4.2" "infodir=/sw/share/info" "libdir=/sw/lib/gcc4.2/lib" "prefix=/sw/lib/gcc4.2" "tooldir=/sw/lib/gcc4.2/i686-apple-darwin9" "AR=ar" "AS=/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/as" "CC=/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/ -B/sw/lib/gcc4.2/i686-apple-darwin9/bin/ -B/sw/lib/gcc4.2/i686-apple-darwin9/lib/ -isystem /sw/lib/gcc4.2/i686-apple-darwin9/include -isystem /sw/lib/gcc4.2/i686-apple-darwin9/sys-include" "CXX=/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/g++ -B/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/ -nostdinc++ -nostdinc++ -I/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/i686-apple-darwin9/libstdc++-v3/include/i686-apple-darwin9 -I/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/i686-apple-darwin9/libstdc++-v3/include -I/sw/src/fink.build/gcc42-4.2.3-1000/gcc-4.2.3-RC-20080125/libstdc++-v3/libsupc++ -I/sw/src/fink.build/gcc42-4.2.3-1000/gcc-4.2.3-RC-20080125/libstdc++-v3/include/backward -I/sw/src/fink.build/gcc42-4.2.3-1000/gcc-4.2.3-RC-20080125/libstdc++-v3/testsuite/util -L/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/i686-apple-darwin9/libstdc++-v3/src -L/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/i686-apple-darwin9/libstdc++-v3/src/.libs -B/sw/lib/gcc4.2/i686-apple-darwin9/bin/ -B/sw/lib/gcc4.2/i686-apple-darwin9/lib/ -isystem /sw/lib/gcc4.2/i686-apple-darwin9/include -isystem /sw/lib/gcc4.2/i686-apple-darwin9/sys-include" "LD=/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/collect-ld" "LIBCFLAGS=-O2 -g -O2 " "NM=/sw/src/fink.build/gcc42-4.2.3-1000/darwin_objdir/./gcc/nm" "PICFLAG=" "RANLIB=ranlib -c" "DESTDIR=" check-TESTS
Switched to incremental mode
Emulating dirty bits with mprotect/signals
I see one gctest process with five threads and four gnumake processes. None of these appear to have any
cpu usage. If I sample gctest in the Activity Monitor application, I see...
Sampling process 56569 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling gctest (pid 56569) every 1 millisecond
Call graph:
1988 Thread_2503
1988 start
1988 _start
1988 main
1988 run_one_test
1988 GC_init_gcj_malloc
1988 GC_lock
1988 pthread_mutex_lock
1988 semaphore_wait_signal_trap
1988 semaphore_wait_signal_trap
1988 Thread_2603
1988 thread_start
1988 _pthread_start
1988 GC_mprotect_thread
1988 exc_server
1988 catch_exception_raise
1988 catch_exception_raise
1988 Thread_2703
1988 thread_start
1988 _pthread_start
1988 GC_start_routine
1988 thr_run_one_test
1988 run_one_test
1988 GC_gcollect
1988 GC_try_to_collect
1988 GC_try_to_collect_inner
1988 GC_finish_collection
1988 GC_start_reclaim
1988 GC_clear_fl_links
1988 GC_clear_fl_links
1988 Thread_2803
1988 thread_start
1988 _pthread_start
1988 GC_start_routine
1988 thr_run_one_test
1988 run_one_test
1988 GC_init_gcj_malloc
1988 GC_lock
1988 pthread_mutex_lock
1988 semaphore_wait_signal_trap
1988 semaphore_wait_signal_trap
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5):
semaphore_wait_signal_trap 3976
GC_clear_fl_links 1988
catch_exception_raise 1988
Sample analysis of process 56569 written to file /dev/stdout
I don't see this problem with current gcc trunk when built and tested
on i686-apple-darwin9. The gcc builds were configured with...
Configured with: ../gcc-4.2.3-RC-20080125/configure --prefix=/sw --prefix=/sw/lib/gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info --enable-languages=c,c++,fortran,objc,java --with-arch=nocona --with-tune=generic --host=i686-apple-darwin9 --with-gmp=/sw --with-libiconv-prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib