o What is a bus error?
Bus refers to address bus and an error means passing an illegal address to the address bus. There are two signals that can be sent by kernel for an illegal address:
A SIGBUS is issued for an obvious wrong virtual address, there is no address translation and CPU can outright say that address is bogus.
SIGSEGV is issued when after translating the address, CPU realizes that address is bogus.
SIGBUS is always better since it avoids address translation. But which signal to issue, depends on CPU.
o What will be the output?