Hi Tarun ,
Thank you for the reply and the question here is ,The unaligned access is
the bus error .Hence OS should be signaled SIGBUS.Because the SIGILL is
mislead the end user(developer).
Wiki answer
On POSIX <http://en.wikipedia.org/wiki/POSIX>-compliant
platforms, *SIGBUS* is the
signal<http://en.wikipedia.org/wiki/Signal_(computing)> sent
to a process <http://en.wikipedia.org/wiki/Process_(computing)> when it
causes a bus error <http://en.wikipedia.org/wiki/Bus_error>.
~Umesh
On Thursday, 27 September 2012 16:06:59 UTC+5:30, Tavish Naruka wrote:
>
>
>
>> After debugging the sample,it turns out be unaligned pointer access,
>>
>> The question here is that OS should had been signaled with SIGBUS then
>> SIGILL,Because according wiki the SIGILL signaled when there is “malformed,
>> unknown, or privileged instruction.”
>>
>> Did I’m missing something here ????
>>
>
> Default action for SIGBUS is program termination, so there is no point in
> sending another signal.
>
> --
> Regards
> Tavish Naruka
>
>
--
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer