From owner-freebsd-current Fri Jan 10 12:29:19 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5269237B401; Fri, 10 Jan 2003 12:29:17 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B44C43E4A; Fri, 10 Jan 2003 12:29:16 -0800 (PST) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id h0AKTGli000335; Fri, 10 Jan 2003 15:29:16 -0500 (EST) Date: Fri, 10 Jan 2003 15:29:15 -0500 (EST) From: Daniel Eischen To: Robert Watson Cc: current@FreeBSD.ORG, jmallett@FreeBSD.ORG Subject: Re: pthread ^T problem on recent -CURRENT: death in libc_r mutex In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 4 Jan 2003, Robert Watson wrote: > > Juli Mallett pointed me at the following reproduceable problem on my > -current notebook with userland/kernel dated Dec 29: > > paprika:~/freebsd/test/pthread> ./test > 1 > 2 > 1 > 2 > 1 > 2 > load: 0.02 cmd: test 910 [running] 0.00u 0.01s 0% 824k > 1 > Bus error (core dumped) > paprika:~/freebsd/test/pthread> ./test > 1 > 2 > load: 0.23 cmd: test 914 [running] 0.00u 0.01s 0% 824k > 1 > Bus error (core dumped) > > Hitting ^T to get status information seems to break output following the > first printf after the information display. Here's the stack trace from > the test program from the first execution above: This fixes the problem for me: -- Dan Eischen Index: uthread/uthread_init.c =================================================================== RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_init.c,v retrieving revision 1.44 diff -u -r1.44 uthread_init.c --- uthread/uthread_init.c 6 Jan 2003 00:56:23 -0000 1.44 +++ uthread/uthread_init.c 10 Jan 2003 20:27:05 -0000 @@ -220,7 +220,7 @@ _pthread_page_size = getpagesize();; _pthread_guard_default = _pthread_page_size; - sched_stack_size = _pthread_page_size; + sched_stack_size = 4 * _pthread_page_size; _pthread_attr_default.guardsize_attr = _pthread_guard_default; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message