This is likely not the right place to post this question, but without getting anywhere I figured I’d try.
Is there a good way to use the debugger to try to solve memory errors?
I’m getting a “Bus Error”, or “Signalled SIGSERV at 0x1001081F9…” and I have no idea why. It seems to happen the first time my program writes to a variable defined as:
REAL :: HDELT
COMMON /TIMES/HDELT
The line causing the error is simple
HDELT = 300.0;
I narrowed it down to this using print statements all around it (I come from a PHP background and have never had to rely on debuggers.)
I know the code I pasted is right and clearly can’t be solely responsible for the error, but I don’t know where else to look. Does any one have any idea?
This is running on a MacPro 10.6.1 (Snow Leopard), dual processor x86_64 (Quad-Core Intel Xeon). it is compiled to run with OpenMP, but I’ve limited it to one thread to avoid concurrency issues (even though this code isn’t in a parallel block.)
Anyone see this before? Or have any suggestions on how to find the cause?
Thanks.