[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Kernel Page Fault in CVS oskit-mach.
From: |
Michael Oberg |
Subject: |
Kernel Page Fault in CVS oskit-mach. |
Date: |
Fri, 13 Jun 2003 16:30:30 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030527 Debian/1.3.1-2 |
Using the OSKIT patch I submitted earlier today (and modifying
oskit/dev/linux_ethernet.h for my network card), I successfully compiled
oskit-mach using 'make kernel-ide+floppy+ethernet_rtl8139'.
When I boot, I get the following output:
Welcome to GNU Mach 1.91!
Kernel page fault at address 0x1, eip=0x1
Kernel Page fault trap, eip 0x1
kernel trap, type 14, code=0
...
I attached a serial line with null modem and booted with serial
debugging, and the transcript of my debug session is below (console
output remained on the std console, since my KVM eats up a serial port
on each box, leaving only the GDB one available).
It looks like an interrupt routine is causing the SEGV? (eip is 0x1,
wouldn't this be in the x86 interrupt vector?, would that explain why
the backtrace cant give specific info?)
I set the "Load_context" breakpoint after single stepping/setting
breakpoints through the source a few times, and narrowing the fault down
to some point after this function call. Im unsure about how to proceed
from here, any help would be appreciated.
Some Notes:
- This fault happens whether I include the ethernet_rtl839 driver or not.
- Both OSKIT and oskit-mach from current CVS, built using gcc-3.3
Thanks,
Michael
(gdb) target remote /dev/ttyS1
Remote debugging using /dev/ttyS1
main (argc=8214, argv=0x18edf4) at ../gnumach/oskit/x86/main.c:94
94 {
(gdb) info break
Num Type Disp Enb Address What
7 breakpoint keep y 0x00138948 <Load_context>
8 breakpoint keep y 0x001701da in panic at
../../oskit/libc/gen/panic.c:31
(gdb) c
Continuing.
Breakpoint 7, 0x00138948 in Load_context ()
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x1172bea0 in ?? ()
#2 0x00127e95 in osenv_timer_spin (nanosec=1) at
../gnumach/oskit/pc/osenv_timer.c:170
#3 0x0013a6d5 in cq_direct_console_init (irq=0x194b84, intr=0x195a00,
sleep=0x195ab8,
out_stream=0xdfdf) at ../../oskit/kern/x86/pc/cq_direct_console.c:121
#4 0x0012874a in ds_osenv_init () at ../gnumach/oskit/ds_osenv.c:60
#5 0x00128b44 in ds_init () at ../gnumach/oskit/ds_routines.c:229
#6 0x00124ef2 in device_service_create () at
../gnumach/device/device_init.c:62
#7 0x00114a69 in start_kernel_threads () at ../gnumach/kern/startup.c:217
#8 0x00113d27 in thread_continue (old_thread=0x0) at
../gnumach/kern/sched_prim.c:856
(gdb) quit
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Kernel Page Fault in CVS oskit-mach.,
Michael Oberg <=