ART BATCH COBOL PROGRAM Crash With SIGSEGV When Compiled Without DEBUG OPTION -g
Last updated on FEBRUARY 26, 2018
Applies to:Oracle Tuxedo Application Runtime for CICS and Batch - Version 12.2.2 and later
Information in this document applies to any platform.
On : Tuxedo ART 12.2.2 version, getting a SIGSEGV abend while opening a file in OUTPUT through ARTEXTFH, the following error occurs. The issue is happening when compiling the Cobol programs without debug option -g.
The issue "SIGSEGV" Segmentation fault happen at the time the COBOL program tries to write a file. Without the use of EXTFH it works regularly. It works also with EXTFH in case the program is compiled with the -g option for debugging information.
Removing COBOL-IT compiler directive -fthread-safe the program runs correctly even if compiled without any debugger option.
The crash is not creating any core file, however generating core upon crash is enabled, in truss log below message can be seen:
write(1, "MOVE ALL * TO REC-SP0F01O\n", 26) = 26
write(1, "WRITE REC-SP0F01O\n", 18) = 18
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(2, "/scratch/tuxart/ART12220/batch/j"..., 79) = 79
write(2, "Attempt to reference unallocated"..., 57) = 57
write(2, "Abnormal termination - File cont"..., 54) = 54
write(2, "Abnormal termination - File cont"..., 56) = 56
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms