From owner-freebsd-alpha Sat Nov 18 9:53: 2 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 6119037B4C5; Sat, 18 Nov 2000 09:52:59 -0800 (PST) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id MAA00301; Sat, 18 Nov 2000 12:52:37 -0500 (EST) Date: Sat, 18 Nov 2000 12:52:36 -0500 (EST) From: Daniel Eischen To: Andrew Gallatin Cc: Rich Bud , freebsd-alpha@FreeBSD.ORG, deischen@FreeBSD.ORG, obrien@FreeBSD.ORG, jasone@FreeBSD.ORG Subject: Re: pthread_create under stable In-Reply-To: <14870.45447.43597.701639@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 18 Nov 2000, Andrew Gallatin wrote: > > I don't have a -stable alpha handy, but I think I'm seeing the same > problem under -current: > > Starting program: /usr/src/lib/libc_r/test/hello_d > > Program received signal SIGSEGV, Segmentation fault. > 0x1600c1ff0 in _thread_kern_scheduler () > at /usr/src/lib/libc_r/uthread/uthread_kern.c:177 > 177 if ((_thread_run->flags & PTHREAD_FLAGS_PRIVATE) == 0) This isn't really enough to go on... > I don't know enough about how to debug threads to be very helpful > here. I did notice one rather disturbing warning though: > > /usr/src/lib/libc_r/uthread/uthread_sig.c: In function `_thread_sig_wrapper': > /usr/src/lib/libc_r/uthread/uthread_sig.c:1003: warning: cast to pointer from integer of different size > > (*(sigfunc))(psf->signo, > (siginfo_t *)psf->siginfo.si_code, &psf->uc); > > si_code is a 32-bit int; you can't cast that to a 64-bit pointer on an > alpha and expect to have a useful pointer.. It's trying to call a traditional BSD style signal handler of the form: sighandler(int, int, struct sigcontext *) but there is no predefined prototype for this like there is for __sa_handler or __sa_sigaction. I guess we can add one or just omit the (siginfo_t *) typecast. -- Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message