maths_fan said:
Did anyone meet this kind of error?
Yes, one day I wanted to go from Kirkland, WA to
Seattle. But I boarded the bus for Everett by
mistake. Bus error, as well as a money leak.
When not paying close enough attention to what one
is doing, whether writing a program, or trying to
travel to a particular destination.
If someone
knows some examples, which make this error - I'll be very thankful!
Those platforms which can have 'bus errors' typically
do when a program invokes 'undefined behavior' as in
dereferencing a null or invalid pointer, creating
'unaligned' objects, etc.
If you have a small compilable code example which give
the bus error, post it here, and we'll help track down
the problem.
-Mike