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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message