Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 1998 18:07:06 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        current@FreeBSD.ORG
Subject:   pthreads and thread-specific?
Message-ID:  <199805310107.SAA18476@rah.star-gate.com>
In-Reply-To: Your message of "Sun, 31 May 1998 10:25:00 %2B1000." <199805310025.KAA12864@cimlogic.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help

I am trying to get ACE up and running on -current/elf and it appears
that the ACE's tests are not able to exit properly. Anyone got any 
clues or thread-specific tests to verify the behavior of threads?

	Tnks,
	Amancio



{hasty} gdb-elf ./Barrier_Test
GDB is free software and you are welcome to 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.
GDB 4.16 (i386-unknown-freebsd), 
Copyright 1996 Free Software Foundation, Inc...
(gdb) run
Starting program: /usr/home/hasty/ace/ACE_wrappers/tests/./Barrier_Test 
^C
Program received signal SIGINT, Interrupt.
0x2818d5f0 in gettimeofday ()
(gdb) bt
#0  0x2818d5f0 in gettimeofday ()
#1  0x2819afe7 in _thread_kern_set_timeout (timeout=0x0)
    at /usr/src/lib/libc_r/uthread/uthread_kern.c:680
#2  0x28199f25 in pthread_yield ()
    at /usr/src/lib/libc_r/uthread/uthread_yield.c:48
#3  0x2819a0ad in _spinlock (lck=0x281d5c04)
    at /usr/src/lib/libc_r/uthread/uthread_spinlock.c:65
#4  0x2819a221 in _thread_cleanupspecific ()
    at /usr/src/lib/libc_r/uthread/uthread_spec.c:178
#5  0x2819c7de in pthread_exit ()
    at /usr/src/lib/libc_r/uthread/uthread_exit.c:180
#6  0x2816de50 in _thread_start ()
    at /usr/src/lib/libc_r/uthread/uthread_create.c:205


=============
ACTIVE THREADS

--------------------
Thread 0x8050a00 () prio  64 state Running [/usr/src/lib/libc_r/uthread/uthr
ead_cond.c:331]
--------------------
Thread 0x8050800 () prio  64 state Running [/usr/src/lib/libc_r/uthread/uthr
ead_cond.c:331]
This is the running thread
--------------------
Thread 0x8050400 () prio  64 state Running [/usr/src/lib/libc_r/uthread/uthr
ead_cond.c:331]
--------------------
Thread 0x8050200 () prio  64 state Waiting on a condition variable [/usr/src
/lib/libc_r/uthread/uthread_cond.c:163]
This is the initial thread


DEAD THREADS

Thread 0x8050600 prio  64 [/usr/src/lib/libc_r/uthread/uthread_exit.c:176]


=============
FILE DESCRIPTOR TABLE

fd[  5] read owner 0x0 count 0 [/usr/src/lib/libc_r/uthread/uthread_fstat.c:
49]
        write owner 0x0 count 0 [/usr/src/lib/libc_r/uthread/uthread_write.c
:55]
~
~
~
~



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805310107.SAA18476>