Discussion:
vm_fault() with faultaddress 0x0
(too old to reply)
Mark Tse
2011-07-19 16:43:59 UTC
Permalink
Hey

Currently in our code, vm_fault() is being called with a faultaddress
0x0, and vm_fault() returns EFAULT, as expected, since 0x0 is not in any
of the three segments.

However, we are having difficulty tracking as to why vm_fault() is being
called with a faultaddress of 0x0. A trace using GDB eventually leads to
a ?? () function.

Would anyone have an idea as to where to start looking to resolve this
issue?

Thanks!

Mark
cs350
2011-07-19 21:45:40 UTC
Permalink
I think it might help to know what the user program was attempting to do
at the time.

-Alex
Hey
Currently in our code, vm_fault() is being called with a faultaddress 0x0,
and vm_fault() returns EFAULT, as expected, since 0x0 is not in any of the
three segments.
However, we are having difficulty tracking as to why vm_fault() is being
called with a faultaddress of 0x0. A trace using GDB eventually leads to a ??
() function.
Would anyone have an idea as to where to start looking to resolve this issue?
Thanks!
Mark
Loading...