4/1 What is the difference between a segmentation fault and a bus error?
\_ segmentation is an address fault. you have attempted to access
an invalid address or one you do not have permission to access.
bus error is usually an aligment violation. attempting to access
an int on a non-word boundary, for example. --aaron
\_ But why is it called bus error? not alignment error?
\_ It goes back to the days when Muni's schedule system was
computerised. Due to boundary/alignment errors, they were
sending all the busses on the same route at the same time.
Thus, the bus error was created. |