help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bus Error (core dump)


From: David Durham
Subject: Re: Bus Error (core dump)
Date: Fri, 26 Oct 2001 09:42:27 -0500

  Just an FYI:  Bus errors are caused when the code tries to fetch a
word on an unaligned address in memory.  For example, if I try to fetch
an int (4 bytes aka 1 word) from address  1000127 (base 10)  in memory I
will get a bus error because that address is not a multiple of 4 (the
word size)

  And of course the word size can vary depending on the architechture...
And some processors (namely intel) don't have this limitation...  It's
an optimization thing on most RISC processors...  
  
  BTW- If you did need to fetch an int from that particular address you
have to do 4 load bytes and also do shifts to get it into the 32
register

This is the only reason I know for a (regularly occuring) bus error...


-- Davy

Fri, 2001-10-26 at 04:18, address@hidden wrote:
> 
> 
> Hi there,
> I have been trying to install and run Bison 1.29 on an ultra-5 sun station
> running under solaris 2.6.
> I managed to configure, make and make install with no apparent errors. 
> However,
> when
> I try to run bison executable I get a
> 
> Bus Error (core dump) error.
> 
> Any hints?
> 
> Thanks in advance for any help.
> 
> Cheers,
> 
> David Elizondo, PhD
> 
> 
> 
> _______________________________________________
> Help-bison mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-bison





reply via email to

[Prev in Thread] Current Thread [Next in Thread]