JPS58201152A - Automatic information acquition system - Google Patents

Automatic information acquition system

Info

Publication number
JPS58201152A
JPS58201152A JP57083023A JP8302382A JPS58201152A JP S58201152 A JPS58201152 A JP S58201152A JP 57083023 A JP57083023 A JP 57083023A JP 8302382 A JP8302382 A JP 8302382A JP S58201152 A JPS58201152 A JP S58201152A
Authority
JP
Japan
Prior art keywords
program
information
pieces
file
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP57083023A
Other languages
Japanese (ja)
Inventor
Kazuo Murata
一夫 村田
Toshio Hagiwara
利男 萩原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP57083023A priority Critical patent/JPS58201152A/en
Publication of JPS58201152A publication Critical patent/JPS58201152A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To investigate the cause of a fault easily, by storing all pieces of information necessary for an electronic computer to reexecute a program at specific intervals of time, and tracing the program by the stored pieces of information when the program ends abnormally. CONSTITUTION:The time interval at which information necessary for program reexecution is stored in a storage part 9 and compared with the output of a timer 8 to generates an interruption signal 12 at acquisition time, and a program information acuisition part 14 is activated to store all pieces of information necessary for the program reexecution in a file 15. This operation is repeated to the end of the program. If a fault of the program is detected by a detector 11, an interruption 12 is caused to start a trace program 16 with a program recovery function. A return from an abnormal end occurrence point to the closest information acquisition start point is made automatically and the pieces of information in the file 15 are recovered; and then the program is reexecuted and the operation of the program is traced to output necessary pieces of information automatically. Thus, the cause of the abnormal end is investigated easily.

Description

【発明の詳細な説明】 発明の対象 本発明はプログラム実行中において、ある一定時間過ぎ
たら情報が自動的にファイルに格納され、プログラムバ
グ発生地点から最も近い地。
DETAILED DESCRIPTION OF THE INVENTION Object of the Invention According to the present invention, during program execution, information is automatically stored in a file after a certain period of time, and the information is automatically stored in a file at the location closest to the point where a program bug occurs.

点でとった情報が自動確定され、最も近い地点からプロ
グラム異常発生以前迄の結果データー。
The information taken at each point is automatically confirmed, and the result data is from the closest point to before the program error occurred.

が自動的にトレースされ、デパックに好適な情報自動収
得に関するものである。
is automatically traced and relates to automatic acquisition of information suitable for depacking.

従来技術 従来はプログラム処理実行中に異常が発生しり場合■再
度最初から実行していたためターンアラウンドタイムと
ジョブ依頼工数が必要となり1時間を多く使用していた
。■オペレーティングシステムの中にチェックポイント
リスタートという機能があるが、これはチェックポイン
トマクロの設定が必要条件であり、プロゲラ−r−に余
分なプログラミングh業が発生していた。
Conventional technology In the past, if an abnormality occurred during program processing, the program had to be executed again from the beginning, which required turnaround time and job request man-hours, which required an extra hour. ■The operating system has a function called checkpoint restart, but this requires the setting of a checkpoint macro, which creates extra programming work for Pro Gamer.

■異常発生した場合、異常発生以前の実行状態がどうい
う状態で実行されたのか軌跡が見えない。そのため原因
調査究明に多くの工数がかかっていた。
■When an abnormality occurs, it is not possible to see the trajectory of the execution state before the abnormality occurred. Therefore, it took a lot of man-hours to investigate the cause.

発明の目的 本発明の目的とするところは、上記の如き。Purpose of invention The object of the present invention is as described above.

従来の問題点を除去するものであり1次に示す。This method eliminates the problems of the conventional method and is shown below.

■第1図のチーツクポイントをプログラムが通過した後
、再実行に必要な全ての情報が自動的。
■After the program passes the cheek point in Figure 1, all the information necessary for re-execution is automatically obtained.

にプログラム情報ファイルに格納されること。be stored in the program information file.

■第1図のプログラムが異常終了した場合、■。■If the program in Figure 1 terminates abnormally, ■.

で格納した情報にプログラムの動作をトレースするのに
必要な情報を付加して、再実行可能に戻すことにある。
The purpose of this is to add the information necessary to trace the program's operations to the information stored in , and make it re-executable.

プログラム開発工程の中でもデバック工程は。The debugging process is part of the program development process.

全工程の約半分の期間をついやすとともあることから、
プログラム開発期間短縮策を図ってゆかねばならない。
Since it takes about half of the entire process,
Measures must be taken to shorten the program development period.

従って、バグ発生に対するデパック情報の自動収得及び
プログラム処理再実行時間を短縮出来ないかをデバック
工程に的を絞り検討したものである。
Therefore, we have focused on the debugging process to see if it is possible to automatically obtain depacking information for bug occurrences and shorten the program processing re-execution time.

発明の実施例 以下1本発明の全体概略図を第1図に、情報収得方法を
第2図、第3図により説明する。
EMBODIMENTS OF THE INVENTION Below 1 A general schematic diagram of the present invention will be explained with reference to FIG. 1, and an information acquisition method will be explained with reference to FIGS. 2 and 3.

第1図は、本発明の全体概略図であるプログラムの異常
発生時の自動情報収得方式を示すものである。プログラ
ムがt1時時間性しb地点に達したとき、第2図のタイ
マ8より割込みが発生し、h地点から再実行するのに必
要な全情報をプログラム情報格納ファイル15に格納す
る。
FIG. 1 is an overall schematic diagram of the present invention, showing an automatic information acquisition method when an abnormality occurs in a program. When the program reaches point b at time t1, an interrupt is generated by the timer 8 in FIG. 2, and all information necessary for re-execution from point h is stored in the program information storage file 15.

C地点に達した時も同様の処理を行う。プログラムが、
 Cxに達した時異常が発生したとすると。
The same process is performed when the point C is reached. The program is
Suppose that an abnormality occurs when Cx is reached.

プログラム情報格納ファイルの情報より、プログラムの
状態なC地点の状態に戻し再実行可能とする。再実行の
とぎは、プログラムの動作をトレースして、異常終了の
原因究明の助けとなる情報出力を行う。動作を第2図の
全体構成図と、第3図を用いてプログラムの実行を自動
トレースする方法を以下に述べる。
Based on the information in the program information storage file, the program is returned to the state at point C and can be re-executed. During re-execution, the program traces the program's behavior and outputs information that helps determine the cause of the abnormal termination. A method for automatically tracing the execution of a program will be described below using the general configuration diagram of FIG. 2 and FIG. 3.

プログラムが異常終了した時に再開始するための情報は
、第2図のプログラム情報収得部14で収得する。その
動作手順は。
Information for restarting the program when it terminates abnormally is acquired by the program information acquisition unit 14 shown in FIG. What are its operating procedures?

■プログラム再実行に必要な情報(以下プロ。■Information required to re-execute the program (hereinafter referred to as "pro").

ダラム情報と記−f)を収得する時間間隔を外部。Durham information and record-f) Obtain time interval externally.

からプログラム実行前にプログラム情報収得時間記憶部
9に設定する。
is set in the program information acquisition time storage section 9 before program execution.

■プログラム開始後、タイマ8とプログラム情報収得時
間記憶部の時間を比較部10で比較し収得時間であった
ら割込み発生部12に信号を送る。
(2) After the start of the program, the comparison section 10 compares the time in the timer 8 and the program information acquisition time storage section, and if it is the acquisition time, sends a signal to the interrupt generation section 12.

0割込み発生部は、プログラム情報収得部を。0 interrupt generation section is program information acquisition section.

起動する。to start.

■プログラム情報収得部は、プログラムを再。■Program information acquisition department re-programs.

開させるために必要な全情報を従来の方法でプログラム
情報ファイル15に収ifる。
All information necessary to open the program is stored in the program information file 15 in a conventional manner.

■プログラムが終了するまで、上記■〜■をくり返す・
                 1゜プログラムが
異常終了した場合、異常終了検出部11が検出して、割
込み発生部に信号を送り割込み発生部よりプログラム回
復機能付トレースプログラム部16を起動する。
■Repeat steps from ■ to ■ until the program ends.
1. If the program terminates abnormally, the abnormal termination detection section 11 detects it and sends a signal to the interrupt generation section, which starts the trace program section 16 with program recovery function.

その回復手順は、 ■トレースプログラムファイルから ■トレースプログラムをメモリ内のローデイングアドレ
スナリージUンサイズの後に格納する。
The recovery procedure is as follows: (1) From the trace program file; (2) Store the trace program in memory after the loading address information.

■■が以下■Oを回復させる。■■ recovers the following ■O.

■プログラム情報ファイルから ■再実行のためのデータ(p5rry、レジスタ他)を
トレースプログラム本体内の再実行デ。
■ Trace data for re-execution (p5rry, registers, etc.) from the program information file Re-execution data within the program itself.

−タエリアに格納。− Stored in the data area.

■実行中のセグメントを実行中プログラムに、0格納。■Storing the segment being executed to 0 in the program being executed.

回復後のプログラム回復機能付トレースプログラム16
の詳細を第3図に示す。
Trace program 16 with program recovery function after recovery
The details are shown in Figure 3.

次にトレース情報収得の動作実行手順を以下。Next, the procedure for acquiring trace information is as follows.

に述べる。I will explain.

■PSWからプログラムの実行アドレスを採取する。■Collect the program execution address from the PSW.

■実行中プログラムから命令採取する。■Collect instructions from the running program.

■トレースプログラムで■を実行させる。■Execute ■ using the trace program.

■デパックのトレース情報を出力する。■Output Depack trace information.

■プログラムの次の命令に戻る。■Return to the next instruction in the program.

■上記■から■を異常が発生した直前までくり返し、ト
レース情報を得る。
■Repeat steps from ■ to ■ above until just before the abnormality occurs to obtain trace information.

以上により本方法例によれば。According to the above method example.

■異常終了発生地点から、最も近い地点に自−1動的に
戻って処理を実行することにより、プログラムの実行を
最初から、実施しなくて済み、。
■By automatically returning to the nearest point from the point where the abnormal termination occurred and executing the process, there is no need to execute the program from the beginning.

再実行時間が短縮される。上記■の間に再実行。Rerun time is reduced. Re-run during ■ above.

されたプログラムのトレース情報が、自動的にラインプ
リンター等に出力されることにより。
The trace information of the executed program is automatically output to a line printer, etc.

ブOグラムバグ発生原因調査工数の低減が出来る効果が
ある。
This has the effect of reducing the number of man-hours required to investigate the cause of bug occurrence.

発明の効果 以上述べた如き構成であるから本発明にあたっては、次
の如き効果を得ることが出来る。
Effects of the Invention Since the structure is as described above, the following effects can be obtained with the present invention.

■従来のチェックポイントリスタートの様に。■Like a conventional checkpoint restart.

ユーザープログラムに特殊な命令を組み込まなくて済み
また、再実行するためのジ菖ブ依頼工数がなくなるので
、プログラ々に業務負担がかからない。
There is no need to incorporate special commands into the user program, and there is no need to request man-hours for re-execution, so there is no work burden on the programs.

■バグ発生等異常終了した時に、発生地点から最も近い
地点に戻って再実行するため、異常終了した時の原因究
明及び調査工数が低減出来。
■When an abnormal termination occurs due to a bug occurring, the process returns to the point closest to the point of occurrence and re-executes, reducing the number of man-hours required to investigate and investigate the cause of an abnormal termination.

デバック工数を含むプログラム開発期間の短縮になる。This shortens the program development period including debugging time.

■トレースプログラム本体のデパック機能を変えること
により、必要最小限の情報を採取する。
■Collect the minimum necessary information by changing the depacking function of the trace program itself.

ことが出来る。I can do it.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は1本発明の一実施例の全体概略図。 第2図は全体構成を説明するための例示ブロック図、第
3図は、プログラム情報ファイルから再実行のための回
復と自動トレースする実行方法を説明するためのブロッ
ク図である。 1・・・プログラム実行順。 2・・・チーツクポイント地点。 3・・・異常終了地点。 4・・・プログラム情報ファイル。 5・・・データ群。 6・・・トレース情報リスト。 8・・・タイマ。 900.プログラム情報収得時間記憶部。 10・・・比較部。 11・・・異常終了検出部。 12・・・割込み発生部。 13・・・ユーザープログラム。 14・・・プログラム情報収得部。 16・・・プログラム回復機能付レースプログラム。 17・・・トレースプログラムフアイル。 23・・・全フログラムファイル。 r1 24・・・再実行データエリア。 25・・・メモリ、 26・・・トレースプログラム部。 2B・・、トレースプログラム本体。 7  z  図 才  3  図 S
FIG. 1 is an overall schematic diagram of an embodiment of the present invention. FIG. 2 is an exemplary block diagram for explaining the overall configuration, and FIG. 3 is a block diagram for explaining an execution method of recovery for re-execution and automatic tracing from a program information file. 1...Program execution order. 2...Cheetsuku Point. 3...Abnormal termination point. 4...Program information file. 5...Data group. 6...Trace information list. 8...Timer. 900. Program information acquisition time storage unit. 10... Comparison section. 11...Abnormal termination detection section. 12...Interrupt generation section. 13...User program. 14...Program information acquisition section. 16...Race program with program recovery function. 17...Trace program file. 23...All phlog files. r1 24...Re-execution data area. 25...Memory, 26...Trace program section. 2B...Trace program body. 7 z Illustration 3 Illustration S

Claims (1)

【特許請求の範囲】 1 電子計算機で、あるプログラム処理実行中に、プロ
グラムの異常終了が発生した場合にお−いて。 ■プログラムを再実行するのに必要な全ての情報を、タ
イマーにより、クロックを発生させて。 一定時間過ぎたら自動的にファイルへ格納する。 手段と。 1(」 ■プログラムが異常終了した場合、■で格納した情報を
回復させ、トレースプログラムによる命令単位の読み込
み、トレース出力して再実行可能な状態に戻す手段と。 ■上記■の状態から再実行した時にプログラムノ動作を
トレースしてデパック時、プログラマ−に必要な情報を
自動出力する手段とからなることを特徴とする情報自動
収得方式。
[Scope of Claims] 1. In the case where an abnormal termination of a program occurs during the execution of a program in an electronic computer. ■Generate a clock using a timer to generate all the information necessary to re-execute the program. It is automatically saved to a file after a certain period of time. With means. 1 (" ■If the program terminates abnormally, a means to recover the information stored in ■, read each instruction by a trace program, output traces, and return to a state where it can be re-executed. ■Re-execute from the state of ■ above. 1. An automatic information acquisition system characterized by comprising means for automatically outputting information necessary to a programmer at the time of depacking by tracing the operation of the program when the program is depacked.
JP57083023A 1982-05-19 1982-05-19 Automatic information acquition system Pending JPS58201152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57083023A JPS58201152A (en) 1982-05-19 1982-05-19 Automatic information acquition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57083023A JPS58201152A (en) 1982-05-19 1982-05-19 Automatic information acquition system

Publications (1)

Publication Number Publication Date
JPS58201152A true JPS58201152A (en) 1983-11-22

Family

ID=13790634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57083023A Pending JPS58201152A (en) 1982-05-19 1982-05-19 Automatic information acquition system

Country Status (1)

Country Link
JP (1) JPS58201152A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61134850A (en) * 1984-12-05 1986-06-21 Sony Tektronix Corp Debugging method of subsequent processor
JPS6240547A (en) * 1985-08-16 1987-02-21 Yokogawa Hewlett Packard Ltd Error recovery device
JPH05250208A (en) * 1992-03-10 1993-09-28 Fujitsu Ltd Program reexecution processing system
JPH07311693A (en) * 1994-05-19 1995-11-28 Toshiba Corp Debugging system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61134850A (en) * 1984-12-05 1986-06-21 Sony Tektronix Corp Debugging method of subsequent processor
JPS6240547A (en) * 1985-08-16 1987-02-21 Yokogawa Hewlett Packard Ltd Error recovery device
JPH05250208A (en) * 1992-03-10 1993-09-28 Fujitsu Ltd Program reexecution processing system
JPH07311693A (en) * 1994-05-19 1995-11-28 Toshiba Corp Debugging system

Similar Documents

Publication Publication Date Title
JP3675802B2 (en) Method and system for reconfiguring the state of computation
US4703481A (en) Method and apparatus for fault recovery within a computing system
US6874138B1 (en) Method and apparatus for resuming execution of a failed computer program
JPH0820965B2 (en) How to continue running the program
CA2032067A1 (en) Fault-tolerant computer system with online reintegration and shutdown/restart
CN113127248A (en) Automatic crash recovery method and system for ROS program of robot
JPS58201152A (en) Automatic information acquition system
JPH09212385A (en) Parallel program debugging device
JPH07311693A (en) Debugging system
Zhang et al. Intermittent computing with efficient state backup by asynchronous dma
US7114097B2 (en) Autonomic method to resume multi-threaded preload imaging process
Tsai Fault tolerance via N-modular software redundancy
Arya et al. Semi-automated debugging via binary search through a process lifetime
CN110727577A (en) Debugging method, system and medium for probability recurrence problem in embedded system software
JPS6229820B2 (en)
CN115114117B (en) Data recording method and data recording device
JP2922981B2 (en) Task execution continuation method
JPH09204205A (en) Program control system
JPS5837583B2 (en) information processing equipment
Yeh et al. Improving Fault Tolerance through Crash Recovery
JPS6146535A (en) Pseudo error setting control system
JPH07109592B2 (en) CPU-IO parallel operation simulation method
JPH01161544A (en) Program tracing system
JPS58168163A (en) Machine check processing system
JPS61101845A (en) Test system of information processor