Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2003 15:29:15 -0500 (EST)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Robert Watson <rwatson@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG, jmallett@FreeBSD.ORG
Subject:   Re: pthread ^T problem on recent -CURRENT: death in libc_r mutex
Message-ID:  <Pine.GSO.4.10.10301101528240.28820-100000@pcnet1.pcnet.com>
In-Reply-To: <Pine.NEB.3.96L.1030104170009.82416C-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10301101528240.28820-100000>