Results 1 to 2 of 2
I wanted to know if there is a system call that will determine if a process will cause a segmentation fault when trying to read/write to a particular memory address....
- 11-06-2007 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 33
Memory Reading/Writing causes seg fault
I wanted to know if there is a system call that will determine if a process will cause a segmentation fault when trying to read/write to a particular memory address.
- 11-06-2007 #2
Quoth sean04:
I seriously doubt it, because it's rare, if ever, that a system call exists to do something you can do yourself in userland.I wanted to know if there is a system call that will determine if a process will cause a segmentation fault when trying to read/write to a particular memory address.
And you can find out without a special system call whether a given address is in your address space.
Do this at the command line:
and search for maps, and all will be revealed.Code:man proc


Reply With Quote