[okl4-developer] About Iguana_ex_pagefault.
Geoffrey Lee
glee at ok-labs.com
Wed Jul 9 14:17:54 EST 2008
On Wed, Jul 09, 2008 at 03:31:13AM +0900, 유호철 wrote:
> Dear all,
Hello
> ------------------------------------------------------------------------
> if delete printf(), not occur anything error.
> Above error occur iguana_ex_pagefault_impl() function.
> well then, Why call "iguana_ex_pagefault_impl" fundtion in printf().
> I do not find where call iguana_ex_pagefault_impl().
The pagefault handler was called because in accessing memory
somewhere in the control flow of printf() that was not
mapped, and hence the fault handler was called to satisfy the
paging request.
In this instance, your program accessed invalid memory which led
to the error message you are seeing. To debug this, you can
obtain the instruction pointer as well as the faulting address
from the pagefault error message, then disassemble your
binary to find out what it is doing at the time of the
pagefault. Note that OKL4 has initialization code which
gets run before your main() program entry point. It is possible
that they have not been run leading to uninitialized structures
when printf() or other dependent functions rely on those structures
to be initialized.
Whether you use the serial server will depend on how your i/o
functions get set up. libs/c/src/sys-*/ contain the basic
i/o functions for OKL4 programs.
-gl
>
>
> I think that unterstanding is difficult.
> At result, most important question is follow.
> [1] Why call "iguana_ex_pagefault_impl" fundtion in printf().
> [2] In this case, between [My TCS server] and [Serial server] use IPC ?
>
>
> Thank in advance.
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
--
More information about the Developer
mailing list