Hi
I'm writing a piece of software in which it would be convenient to catch a stack overflow error. I know a stack overflow can be considered to be a very bad thing, especially in Java, but it's a natural phenomenon in this case. If you want to know why, let me know, but I'll stick to the subject in case no one cares.
The problem is that I sometimes get a stack overflow, which is the expected behavior, but in many other cases I get:
"Executable java has exited due to signal 10 (SIGBUS)."
This means that the operating system shut down the JVM because it did something illegal. Obviously, this is not acceptable, you can't catch this within Java. Is this a bug in Apple's JVM port? What does "signal 10 (SIGBUS)" mean?
Has anyone seen this before? Unfortunately, I haven't got access to a Windows or Linux system right now, so I can't find out how their JVM ports react in this case.
Any insight is appreciated.
I'm writing a piece of software in which it would be convenient to catch a stack overflow error. I know a stack overflow can be considered to be a very bad thing, especially in Java, but it's a natural phenomenon in this case. If you want to know why, let me know, but I'll stick to the subject in case no one cares.
The problem is that I sometimes get a stack overflow, which is the expected behavior, but in many other cases I get:
"Executable java has exited due to signal 10 (SIGBUS)."
This means that the operating system shut down the JVM because it did something illegal. Obviously, this is not acceptable, you can't catch this within Java. Is this a bug in Apple's JVM port? What does "signal 10 (SIGBUS)" mean?
Has anyone seen this before? Unfortunately, I haven't got access to a Windows or Linux system right now, so I can't find out how their JVM ports react in this case.
Any insight is appreciated.