Stack overflow conditions on Linux
A stack overflow on Linux® can be identified by a SIGSEGV error, although the Java™ virtual machine (VM) might stop unexpectedly without displaying any information on the console.
If you get a SIGSEGV error when there is not a stack overflow, the diagnostic information is written to the console as in the example in: Scenarios in which dump files might not be produced
- A core file (core.pid) has been produced in the working directory of the Java process.
- No core file was produced, or the core file is truncated.
If no core file was produced, you should check the system settings to ensure that core file generation is enabled and then rerun the application. For more information, see Configuring your system in the OpenJ9 user documentation.
If the system settings already have core file generation enabled but no core file was produced, the problem is not a stack overflow. Production of core files in a stack overflow case should be identical to a SIGSEGV error when running with the -Xrs or the -Xrs:sync option. For more information, see -Xrs in the OpenJ9 user documentation.