Re: bus error
On Jul 28, 2:35 pm, puzzlecracker <ironsel2...@gmail.com> wrote:
On Jul 28, 7:57 am, Nick Keighley <nick_keighley_nos...@hotmail.com>
wrote:
On 28 Jul, 09:05, xyz <lavanyaredd...@gmail.com> wrote:
I am getting a "bus Error" in my program.
My simulation should run for 20 min..but i am getting bus error after
10 min of my simulation....
if this is the case please tell the reason for the bus error ...and
how to resolve this ??
use a debugger on the core dump
Are you sure that core dump would reveal the issue? It's not
the segmentation fault, which is typically caused by a bad
pointer or some undefined behavior in the code. Bus Error is
typically caused by hardware, meaning that your code could be
invoking a low level functionality.
Reference:http://en.wikipedia.org/wiki/Bus_error
Did you read the "reference" you're quoting. One of the most
common cases of a bus error is an unaligned access. (Despite
what the article says, on most machines today, trying to access
inexistant memory results in a segment violation, and not a bus
error.)
Whatever the reason for the core dump, however, the core file is
the same.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34