That's good enough to be able to debug.
Thanks a lot for your help!
Type: Posts; User: kruemelmonster
That's good enough to be able to debug.
Thanks a lot for your help!
Oh wow, thanks!
Don't know how I could have missed that!
Do you have any idea how to catch the signal using gdb?
The handler gets installed successfully (checked with my updated if-statement...
In the meantime I figured out, that the signal handler does not catch the signal if I run the program in gdb, but does catch it if I run it normally.
However
if(0 > sigaction(SIGSEGV,...
Thank you very much for your replies!
I solved it by requiring a write lock to be held in order to write, and assume that the access is a read if the lock is not held.
However another problem...
I encountered another problem.
Is it possible to determine whether the fault occured because of an attempt to read or to write?
I'd assume, that this can be done using siginfo_t, but can't figure...
Makes sense, thank you very much!
Hey all,
I try to write a shared memory for a distributed computing system.
In order to implement a kind of paging for this I want to invalidate the addresses of memory-pages that are currently...