[Prev][Next][Index][Thread]
threads problem
I'm having a problem using threads on the latest 0.97. Both of the
example threads kernels that I've tested (dphils and console_tty) show
this problem, as well as any kernel I write that uses threads. I've
tested this with OSKit compiled for both FreeBSD 2.2.2 and OpenBSD 2.4 --
same results. The specific message I'm getting is when pthread_init() is
called:
../kern/x86/pdir_map_range.c:72: failed assertion `!(*pte &
INTEL_PTE_VALID)' Tid:-268395568 P:00000000
Backtrace: fp=126190
001099f9 001056ec 00103bca 00100186 00100104 001000ad 00107bd5
This happens on every machine I try it on, from a 486 with 16M memory to a
Pentium II (naturally, the exact numbers in the backtrace vary). Source
code that I've used to test this is:
-----------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <oskit/threads/pthread.h>
int
main (int argc, char **argv)
{
printf ("testing pthread_init...\n");
pthread_init (1);
printf ("ok...\n");
return (0);
}
-----------------------------------------------------------------
I get the first printf() before the aforementioned failed assertion
occurs.
The build commands and messages are (for both Free- and OpenBSD):
-----------------------------------------------------------------
i386-oskit-gcc -c -o thread.o -DOSKIT -MD -I/usr/local/include/oskit/c
-I/usr/local/include -nostdinc -O2 -Wall thread.c
*unknown*: Assembler messages:
*unknown*:0: Warning: as: I don't understand 'Q' flag.
*unknown*:0: Warning: as: I don't understand 'y' flag.
ld -Ttext 100000 -L/usr/local/lib -o thread
/usr/local/lib/oskit/multiboot.o thread.o -loskit_threads -loskit_svm
-loskit_amm -loskit_kern -loskit_dev -loskit_freebsd_c_r -loskit_com
-loskit_lmm -loskit_threads /usr/local/lib/oskit/crtn.o
-----------------------------------------------------------------
I then put it on an ext2 format floppy and boot using GRUB.
Being extremely new to OSKit, and not very practiced in its ways, I'm
hoping that what's happening is just something grossly peculiar on my end
(link order/libs, OSKit configuration, etc.). If more information about
my setup would be helpful, I'd be glad to provide it.
--rowan
--
John "Rowan" Littell
"NIS+, aka 'NIS on Steriods whose Face Nobody is Ever Going to Kick Sand in
Again,' is designed to correct the deficiencies of NIS and introduce
deficiencies of its own. ...It's a distributed database _and_ a dessert
topping; it sings, it dances, it leaps capital T in a single bound."
-- "UNIX System Administration Handbook, 2nd ed."
=================================
To subscribe or unsubscribe, send mail with "subscribe" or "unsubscribe"
to oskit-users-request@flux.cs.utah.edu. The oskit-announce list is low
volume - if you want to subscribe, mail oskit-announce-request@flux.cs.utah.edu