01-22-2009
Seg Fault Running AIX COBOL program
Hi
some help read............
I'm getting a segmentation fault when I run an AIX COBOL/Db2 program.
I initiate the program from the command line, but it hangs, and then when I press enter it generates a segmantation fault and produces a core dump.
The box is running AIX software level
5300-07-01-0748
The box is a 64 bit machine. The program is compiled under 64 bit, but in order to run it (and access DB2) I bind it using a 32 bit DB2 gateway and run it via the DB2 32 bit gateway.
Previously when the box was at its previous software level of
5300-06-03-0732 I didn't get these errors. (I've also ported the execuatble and bind files back from the prod bax - which is the previous software level of 5300-06-03-0732 and re-bound them and they run ok without the seg fault).
Anyone had this fault before or know what the cause/rememdy is ?
Thanks in anticipation.
I'd just say that I'm an application developer and my UNIX/AIX OS knowledge is minimal.
10 More Discussions You Might Find Interesting
1. Programming
Okay, so here is some code that when compiled on Fedora Core 6 works great, but when I compile and run it on OpenSuse 10 it gives back a seg fault when trying to join the 2nd thead.
#include <pthread.h>
#include <stdio.h>
int print_message_function( void *ptr );
int x = 1;
main()
{
... (1 Reply)
Discussion started by: chrisdrobison
1 Replies
2. HP-UX
Hello everyone,
Today we are attempting to port some legacy C code to a 64 HP-UX machine at my company and there is kind of a strange error we ran into.
there is a small function they have defined called zgetenv that
accepts a char* and basically just does some null checking and returns ... (0 Replies)
Discussion started by: khadesh
0 Replies
3. Programming
Hi Forum,
i have such a question.
I have a cobol program which is calling a C program and in that C program
i get a core dump:(. I want to investigate what is the issue using WDB debuger, but a dont see the code from COBOL program in the debuger, when i run the debugger with the exe!!!
... (2 Replies)
Discussion started by: vovan
2 Replies
4. Programming
can i run .crn programme in express cobol which support to .gnt programme .... Plz tell me solution (2 Replies)
Discussion started by: bibi
2 Replies
5. Programming
Hi,
First of all forgive me if Xlib related problems does not go under this thread.
In my main program, im using Xlib`s XImage type object which contains a regularly updating bitmap, and maps the XImage to a Xwindow using XPutImage.
( XCreateImage is used to create the XImage. )
The... (0 Replies)
Discussion started by: wolwy_pete
0 Replies
6. Shell Programming and Scripting
Is there a way you can return a value from a script that is called from a rm cobol program...
01 WS-COMD-LINE-PGM X(39) value sh ./getUserId.sh 12345"
01 WS-RETURN-SYS-CODE PIC 9(8).
CALL "SYSTEM" USING WS-COMD-LINE-PGM
GIVING WS-RETURN-SYS-CODE.
... (1 Reply)
Discussion started by: pavanmp
1 Replies
7. Programming
Hi ,
We are migrating our database from DB2 z/os to DB2 UDB on UNIX.
and cobol on mainframes to AIX cobol on UNIX.
We have some cobol Db2 programs that are accessing different Databases
how do we code such type of programs in AIX cobol.
Do we need to Establish connection for accessing... (0 Replies)
Discussion started by: nal.satish
0 Replies
8. UNIX for Advanced & Expert Users
Hi Guys
Am new in UNIX environment I was asked by my boss to write a program that transfer files from the AIX server to the Wintel Server. I have written the program in C# windows which does almost the same thing. So how to run the C# program in UNIX? (1 Reply)
Discussion started by: michmsk
1 Replies
9. AIX
hi folks,
I am a new to Aix, i worked as sys admin so no idea about software probs, my software team requires Debugging tool for cobol in AIX machine.
can someone tell me the tool and also the installation procedure for the same
Please drag me out from this soon :confused: (1 Reply)
Discussion started by: atulgkwd
1 Replies
10. Shell Programming and Scripting
Hi All,
I have a file which sets all the variables on unix , based on the hostname. Currently these variables are hardcoded in the cobol programs.I was wondering if unix variables can be used in Cobol programs ?
Example :
I have a variable $SHTEMP which is set based on the following :
Prod... (2 Replies)
Discussion started by: nua7
2 Replies
tabs(1) General Commands Manual tabs(1)
NAME
tabs - set tabs on a terminal
SYNOPSIS
tabs [-v[n]] [-ahuUV] file...
DESCRIPTION
The tabs program clears and sets tab-stops on the terminal. This uses the terminfo clear_all_tabs and set_tab capabilities. If either is
absent, tabs is unable to clear/set tab-stops. The terminal should be configured to use hard tabs, e.g.,
stty tab0
OPTIONS
General Options
-Tname
Tell tabs which terminal type to use. If this option is not given, tabs will use the $TERM environment variable. If that is not set,
it will use the ansi+tabs entry.
-d The debugging option shows a ruler line, followed by two data lines. The first data line shows the expected tab-stops marked with
asterisks. The second data line shows the actual tab-stops, marked with asterisks.
-n This option tells tabs to check the options and run any debugging option, but not to modify the terminal settings.
The tabs program processes a single list of tab stops. The last option to be processed which defines a list is the one that determines the
list to be processed.
Implicit Lists
Use a single number as an option, e.g., "-5" to set tabs at the given interval (in this case 1, 6, 11, 16, 21, etc.). Tabs are repeated up
to the right margin of the screen.
Use "-0" to clear all tabs.
Use "-8" to set tabs to the standard interval.
Explicit Lists
An explicit list can be defined after the options (this does not use a "-"). The values in the list must be in increasing numeric order,
and greater than zero. They are separated by a comma or a blank, for example,
tabs 1,6,11,16,21
tabs 1 6 11 16 21
Use a '+' to treat a number as an increment relative to the previous value, e.g.,
tabs 1,+5,+5,+5,+5
which is equivalent to the 1,6,11,16,21 example.
Predefined Tab-Stops
X/Open defines several predefined lists of tab stops.
-a Assembler, IBM S/370, first format
-a2 Assembler, IBM S/370, second format
-c COBOL, normal format
-c2 COBOL compact format
-c3 COBOL compact format extended
-f FORTRAN
-p PL/I
-s SNOBOL
-u UNIVAC 1100 Assembler
PORTABILITY
X/Open describes a +m option, to set a terminal's left-margin. Very few of the entries in the terminal database provide this capability.
The -d (debug) and -n (no-op) options are extensions not provided by other implementations.
Documentation for other implementations states that there is a limit on the number of tab stops. While some terminals may not accept an
arbitrary number of tab stops, this implementation will attempt to set tab stops up to the right margin of the screen, if the given list
happens to be that long.
SEE ALSO
tset(1), infocmp(1), ncurses(3NCURSES), terminfo(5).
This describes ncurses version 5.9 (patch 20110404).
tabs(1)