For the curious, if you want to actually recover the address that caused the fault (say, because you’re doing something evil with a shared memory space on a distributed system >_>;;) you can recover that by using siginfo_t (http://www.mkssoftware.com/docs/man5/siginfo_t.5.asp) and sigaction (http://www.mkssoftware.com/docs/man3/sigaction.3.asp).
siginfo_t
sigaction
For the curious, if you want to actually recover the address that caused the fault (say, because you’re doing something evil with a shared memory space on a distributed system >_>;;) you can recover that by using
siginfo_t(http://www.mkssoftware.com/docs/man5/siginfo_t.5.asp) andsigaction(http://www.mkssoftware.com/docs/man3/sigaction.3.asp).