Browse Prior Art Database

Aid of Problem Analysis of Exception in AIX C/C++ Applications

IP.com Disclosure Number: IPCOM000015321D
Original Publication Date: 2002-Jan-28
Included in the Prior Art Database: 2003-Jun-20
Document File: 1 page(s) / 44K

Publishing Venue

IBM

Abstract

Disclosed is a program providing a set of API that helps trouble shooting of application programs. The platform is IBM AIX operating system and C/C++. 1.Background In Unix-like system, it is sometimes very difficult to solve problem in huge bach processing when abnormal signal is raised. Because in that situation , the application can not make its error messages. 2.OverView This program receives information from application's normal process and traps the abnormal signal and writes the information to a log file. It also controls core option and the directory. The developer of the application program can do his analysis by viweing the log file and core file. 3.Design and implementation

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 1

Aid of Problem Analysis of Exception in AIX C/C++ Applications

    Disclosed is a program providing a set of API that helps trouble shooting of application programs. The platform is IBM AIX operating system and C/C++.

1.Background In Unix-like system, it is sometimes very difficult to solve problem in huge bach processing when abnormal signal is raised. Because in that situation , the application can not make its error messages.
2.OverView This program receives information from application's normal process and traps the abnormal signal and writes the information to a log file. It also controls core option and the directory. The developer of the application program can do his analysis by viweing the log file and core file.
3.Design and implementation
1)Preparing signal handler When the application program starts ,the API sets a user function by using a system call "sigaction()" for abnormal signals(i.e. "segmentation fault"). The user function is called "signal handler" because it is called when the signal is raised. It also sets dump option "SA_FULLDUMP" or "SA_PARTDUMP".
2)Keeping information The application program puts information of its status to the memory while it is running by calling API that this program provides. For example it puts the record id when it process the record. The information will be formatted and stored in the memory . A database wrapper API captures the SQL and its result code and record it in the memory. It also controls limit count of th information.
3)Wrinting log file When abnormal signal rises, the signal handler is...