Hi, I'm using a multi threaded program in my project. Once in a while I get an error which says SIGBUS error occured and the program closes. I'm not able to simulate it again to find out the reason. Can anyone tell me whats the reason for this error and how to fix it. Is it something to do with the stack allocation!!! Thanks & Regards Vels
Michael Morris
Ranch Hand
Joined: Jan 30, 2002
Posts: 3451
posted
0
Hi Vels, What flavor of Unix are you using? In general the SIGBUS signal indicates an attempt to access an invalid memory position (or a BUS error if you prefer). It can potentially mean a hardware (or driver failure). I assume that the OS is shutting down the VM and that the VM is not catching the signal which seems odd. It also could indicate a swap file problem. Is your application very memory intensive? Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher