SEGV - Tends to mean you have attempted to access a segment of
memory that does not exist.
BUS - Tends to mean you have attempted to access a segment of
memory that dies exist but have accessed it in correctly
sometimes certin cpu's require address to be aligned on certin
boundryies eg 8 / 16 / 32 / 64 bit address
Although this is offtopic it can cause havoc when trying
to write C programs on certin types of cpu's because of certin
alignment problems.
PS. i had to rewrite malloc / free / etc.. to get around this
problem on 1 system.
James
On 2 Aug 2004, junky_fellow wrote:
what is the difference between signals SIGBUS and SIGSEGV ?
when does an application program receive SIGBUS and in which
cases SIGSEGV ?
thanx in advance for any help ...
--
--------------------------
Mobile: +44 07779080838
http://www.stev.org
12:30am up 22 days, 16:06, 3 users, load average: 0.39, 0.34, 0.79