JPS63129429A - Program abnormality processing system - Google Patents

Program abnormality processing system

Info

Publication number
JPS63129429A
JPS63129429A JP61275842A JP27584286A JPS63129429A JP S63129429 A JPS63129429 A JP S63129429A JP 61275842 A JP61275842 A JP 61275842A JP 27584286 A JP27584286 A JP 27584286A JP S63129429 A JPS63129429 A JP S63129429A
Authority
JP
Japan
Prior art keywords
program
area
state
stored
abnormality
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
JP61275842A
Other languages
Japanese (ja)
Inventor
Hiroyuki Komiya
小宮 宏之
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP61275842A priority Critical patent/JPS63129429A/en
Publication of JPS63129429A publication Critical patent/JPS63129429A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent compulsory interruption from being generated at the time of CT (Crises Time) when runaway happens, by providing an area in which a branching destination by every plural control programs at an abnormal time is stored and the area in which the state of the control program just before being branched is stored, in a table which manages the state of the control program. CONSTITUTION:In the table PIC (Program Index Chart) on an OS (Operating System) which manages the state of each program, the area RP in which the branching destination by every program at the abnormal time is stored, and the area PSW(S) in which the state of the program just before being branched is stored, are provided. In other words, the area 1 has a PI (Program Information), the area 2 the RP (Reentry Point), the area 3a PSW (Program Status Word), the area 4 an RP(S) (Saved Recentry Point), the area 5 the PSW(S) (Saved Program Status Word), and the area 6 other managing information. In such way, it is possible to perform the setting, the cancelation, and the movement of the branching destination when the program itself falls in the abnormality.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、マルチプログラミングシステム中のプログラ
ムにおいて、異常動作に陥ったプログラムの復帰処理に
係り、各プログラム自身が異常に陥った場合の分岐先に
ついて設定、解除、移動等が行えるプログラム異常処理
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (A) Industrial Application Field The present invention relates to recovery processing for programs in a multiprogramming system that have run into abnormal operations, and is directed to branching when each program itself has run into an abnormality. This invention relates to a program abnormality processing method that allows setting, cancellation, movement, etc. of a destination.

(ロ)従来の技術 一般にマルチプログラミングシステムでは、複数のプロ
グラム(ユーザープログラム UserProgram
に相当し、以下UPと略称する)が見掛は上並行して動
作している様に見えるものの、実際には各Un制御する
プログラム(オペレーティングシステムOperati
ng Systemで、以下O8と略称する)が存在し
、各UPに対してコンピュータのハードウェア、例えば
CPU(中央情報処理装置)の使用時間、物理的にデー
タを格納するメモリ、入出カポ−)(Ilo)、ディス
ク(データ格納用のファイル)等を適当に割当て、シス
テム全体として最大の効果?発揮できるように動作して
いる。
(b) Conventional technology Generally, in a multiprogramming system, multiple programs (UserProgram)
Although it appears that the programs corresponding to UP (hereinafter abbreviated as UP) are running in parallel, in reality, the programs controlling each Un (operating system
ng System (hereinafter abbreviated as O8) exists, and for each UP there are computer hardware such as CPU (Central Information Processing Unit) usage time, memory that physically stores data, input/output capo) ( Ilo), disks (files for storing data), etc., to achieve the maximum effect on the entire system? He is working to his full potential.

ここで前記O8により複数のUPを制御するマルチプロ
グラミングシステムにおいて、一部のUPに異常が発生
した場合、即ちプログラムの異常、あるいは暴走等に対
する対策として種々の方法が提案されている。その−例
として特開昭5’9−140568号公報があげられる
In a multiprogramming system in which a plurality of UPs are controlled by the O8, various methods have been proposed as countermeasures against abnormalities occurring in some UPs, that is, program abnormalities or runaways. An example thereof is JP-A-5'9-140568.

e−1発明が解決しようとする問題点 前述の従来例では1次のような問題点が発生する。Problems that the e-1 invention attempts to solve In the conventional example described above, the following first-order problem occurs.

■ O8としてはUPの処理を中断(abortと称す
る)することが一般的な対策方法であるが、UPの個々
の事情を認識することは困難である。
(2) A common countermeasure for O8 is to interrupt UP processing (referred to as abort), but it is difficult to recognize the individual circumstances of UP.

そこでUP異常として前記UPの処理の中断(abor
t )以外の対策方式が分っていても、画一的に中断さ
れてしまい、異常の原因、調査等が困難となる場合が多
い。
Therefore, the UP processing is interrupted (abor) as a UP abnormality.
Even if countermeasures other than t) are known, they are often interrupted uniformly, making it difficult to investigate the cause of the abnormality.

■ O8側からUPを中断する際、その後の矛盾を無く
すためのハードウェア資源の返却処理等もO8で行うこ
とから、O8は各UP自体を常時監視する必要があり、
O8の巨大化、CPU及びメモリ等のハードウェアの無
駄使いの一因になっている。
■ When interrupting an UP from the O8 side, the O8 also handles the return processing of hardware resources to eliminate subsequent conflicts, so the O8 must constantly monitor each UP itself.
This is one of the causes of the huge size of O8 and the wasteful use of hardware such as the CPU and memory.

■ 中断されては矛盾の生じる時間、例えばデータとデ
ータのチェーン結合の途中等(難局の状態の時間でCr
1ses Time と呼ばれ、CTと略称する)があ
り、この時間はO8から判別することは困難である。
■ The time when an interruption would cause a contradiction, for example, in the middle of a data chain connection (when Cr is in a difficult situation)
1ses Time (abbreviated as CT), and it is difficult to determine this time from O8.

従ってこれを防止するため、現状のシステムでは割込み
禁止処理等、特殊な処理を余儀な(されている。
Therefore, in order to prevent this, current systems are forced to perform special processing such as interrupt disabling processing.

に)作用 本発明のプログラム異常処理方式では、マルチプログラ
ミングを提供しながら、限られたハードウェアの上で動
作するオフィスコンピュータにおいて、小規模のO8で
、プログラム異常時、従来のような中断(abort 
) k実現し得る。
Function The program abnormality handling method of the present invention provides multiprogramming and is capable of using a small-scale O8 in an office computer that operates on limited hardware.
) k can be realized.

(ホ)実施例 図面に従って本発明な説明すると、第1図は本発明のプ
ログラム異常処理方式な採用したプログラムインデック
スチャート(Program IndexChart以
下PICと略称する)、第2図は同方式を使用したコン
ピュータにおけるO8とUPの関連図、第3図はRP 
E (Reentry Po1nt Entry)及び
RT N (Return from Reentry
 Po1nt ) コマンド実行時のPICの動きを示
す状態図、第4図は同方式の動作説明図である。
(E) The present invention will be explained with reference to the drawings. Fig. 1 shows a program index chart (hereinafter abbreviated as PIC) employing the program abnormality processing method of the present invention, and Fig. 2 shows a computer using the same method. The relation diagram of O8 and UP in , Figure 3 is RP
E (Reentry Point Entry) and RT N (Return from Reentry
Figure 4 is a state diagram showing the movement of the PIC when a command is executed.

次に本発明方式の動作について説明すると、各フログラ
ムの状態を管理するO8上のテーブルを示すPICで、
各プログラム毎の異常時の分岐先を記憶する領域(RP
)と分岐する直前のプログラムの状態を格納する領域(
PSW(S))を設けである。
Next, to explain the operation of the method of the present invention, the PIC showing the table on O8 that manages the status of each program,
Area for storing the branch destination in the event of an error for each program (RP
) and the area that stores the state of the program immediately before branching (
PSW(S)) is provided.

又UP同志の情報伝送手段として従来から存在するメツ
七−ジパス(Message Path以下MSG−P
athと略称する)を利用してメツセージ(以下MSG
と略称する)の伝達を行う。(第1図及び第2図) 図中領域(1)はP I (Program Info
rmation )、(2)はRP (Reentry
 Po1nt )、(3)はP S W (Progr
amS tatus Word ) 、(4)はRP 
(S) (5aved RecentryPoint 
) 、 (5)はP S W (S) (5aved 
Program3 tatus Word )、(6)
はその他の管理データを有する領域、(力はU P 1
 、 (8)はUP2を示す。
In addition, Message Path (hereinafter referred to as MSG-P), which has existed for a long time as a means of transmitting information between UP members,
Message (hereinafter referred to as MSG) using
(abbreviated as ). (Figures 1 and 2) Area (1) in the figure is P I (Program Info
rmation ), (2) is RP (Reentry
Po1nt), (3) is PSW (Progr
amS status Word), (4) is RP
(S) (5avedRecentryPoint
), (5) is P S W (S) (5aved
Program3 tatus Word), (6)
is an area with other management data, (force is U P 1
, (8) indicates UP2.

先ず異常が発生する可能性のあるプログラムをU P 
I (7)とし該UPI(71を復帰させるプログラム
をU P 2 (8)とする。
First, upload the program where the error may occur.
I (7), and the program that restores the UPI (71) is U P 2 (8).

また異常が発生した場合に分岐したい前記プログラムU
 P I (7)内のアドレスをRP (Reentr
yPoint )とする。次にU P I (7)で発
行されるコマンドな以下に示し、第3図を用いてフロー
を説明すると、異常発生時の分岐先を設定又は移動をR
P S (Reentry Po1nt Set )に
よって行う。
Also, the program U that you want to branch when an abnormality occurs
The address in P I (7) is RP (Reentr
yPoint). Next, the command issued in U P I (7) is shown below, and the flow is explained using Figure 3.
This is performed using P S (Reentry Point Set).

このコマンドによって、PICIのRP (2)に指定
されたアドレスがスットされる。
This command sets the address specified in RP (2) of PICI.

コマンドRP R(Reentry Po1nt Re
5et )によりPICIのRP (2)がリセットさ
れ、RPRコマンド発信後、RPSコマンド発信発信間
は%UPI(7)はその処理を中断される可能性はない
Command RP R (Reentry Point Re
5et), RP(2) of PICI is reset, and after the RPR command is issued, there is no possibility that the processing of %UPI(7) will be interrupted while the RPS command is issued.

コマンドRT N (Return from Ree
ntry Po1nt )はプログラムU P (2)
(8)によりRPに分岐したUPI(7)が前記プログ
ラム異常の原因を取除いた後に元の処理に復帰するもの
である。
Command RT N (Return from Ree
ntry Po1nt) is the program U P (2)
UPI (7), which branches to RP due to (8), returns to the original process after removing the cause of the program abnormality.

コマンドRP E (Reentry Po1nt E
ntry )は、プログラム異常の発生したプログラム
の名称と数値を指定する。指定プログラム(本実施例で
はUP 1 (7) )は、このコマンドRPEにより
、UPI(力自身が指定したR P C2)に制御を移
される。
Command RP E (Reentry Point E
ntry ) specifies the name and numerical value of the program in which the program error has occurred. The designated program (UP 1 (7) in this embodiment) is transferred to UPI (R P C2 designated by the program itself) by this command RPE.

前述のコマンドを用いてプログラム異常は正常の状態に
復帰するが、この様子を第3図に従って以下説明する。
The program abnormality is restored to a normal state using the above-mentioned command, and this process will be explained below with reference to FIG.

UPIは起動直後に前記RPS処理を行い、その後にプ
ログラム異常が発生して暴走な始め、抜は出せない状態
になったとする。
It is assumed that the UPI performs the RPS process immediately after startup, and then a program error occurs and the program starts to run out of control, making it impossible to remove the program.

これに伴ってオペレータはU P 2 (8)を起動し
、U P 1 (7)に対してRPEコマンドを発行す
る。これと同時にM S G −path k通じて数
値(0,1,2,・・・のいずれか)kUPl(7)に
渡す。このときPICIの動きは第3図に示す通り、R
PはRP (S)に格納され、元のRPはリセットされ
るため、異常処理中に他のプログラムからのRPEコマ
ンドは無効となる。またP S W (S)にはRPに
制御を移す直前のアドレス又はレジスタの値が保持され
る。前記RPに制御が移ることにより、前記暴走状態か
ら抜は出したU P 1 C7)にUP2(8)から指
定(オペレータの操作にょる)された前記数値(0,1
,2,・・・のいずれか)に従いU P I (7)は
abort (中断)処理又はデバッグ処理を行う。
Along with this, the operator activates U P 2 (8) and issues an RPE command to U P 1 (7). At the same time, a numerical value (any one of 0, 1, 2, . . . ) is passed to kUPl (7) through M S G -path k. At this time, the movement of PICI is as shown in Figure 3, R
Since P is stored in RP (S) and the original RP is reset, RPE commands from other programs become invalid during abnormal processing. Further, the address or register value immediately before control is transferred to the RP is held in P S W (S). As control is transferred to the RP, the numerical value (0, 1) specified (by operator's operation) from UP2 (8) is transferred to U P 1 C7), which has been pulled out of the runaway state.
, 2, . . .), U P I (7) performs abort processing or debug processing.

例えば前述の処理で数値が0”であれば資源を返却しa
bort (中断)し、UP2(8)に対してその連絡
があり、UPIはabort Lだ連絡の結果「終り」
に至る。
For example, in the above process, if the value is 0'', the resource is returned.
bort (abort), UP2 (8) is notified, and UPI is abort L. As a result of the notification, "end"
leading to.

一方数値が“O”でない場合、数値は”1”かのステッ
プに進み、1”のときはデバッガを呼び前記プログラム
異常の障害調査、復旧を行い、RTNによって元の処理
に戻る。前記RTN処理では元のRP、PSWが各k 
RP (S) 、 P 5W(S)から復元され、DP
I(7)は元の処理を継続できる。
On the other hand, if the numerical value is not "O", proceed to the step if the numerical value is "1", and if it is "1", the debugger is called, the fault investigation and recovery of the program abnormality is carried out, and the return is made to the original process by RTN.The RTN process Then, the original RP and PSW are each k
Restored from RP (S), P 5W (S), DP
I(7) can continue the original processing.

従ってU P I (7)は復旧したの連絡がUP2に
対して行われる。これらの数値及び動作結果は、前記M
 S G  P athを通じて連絡され、その結果に
応じた対策を行うことができる。
Therefore, UPI (7) notifies UP2 that it has been restored. These numerical values and operation results are based on the above M
The information will be communicated through the SGP path, and countermeasures can be taken according to the results.

(ト) 発明の効果 本発明のプログラム異常処理方式によれば、第1にユー
ザプログラム(UP)自身の異常時、例えば暴走したと
き、CT (Cr1ses Time)時間における強
制的な中断(abort )が防止で1、第2゛に同ユ
ーザプログラム自身による資源即ちIlo、ファイル、
データ用メモリの返却等の処理が可能となり、O8によ
り従来のように全ての資源な監視又は管理する必要がな
く 、 ’o sのコンパクト化が図れる。
(G) Effects of the Invention According to the program abnormality processing method of the present invention, firstly, when the user program (UP) itself is abnormal, for example, when it runs out of control, a forced abort at CT (Cr1ses Time) time can be performed. The first and second prevention is to prevent the user program from using its own resources, such as Ilo, files, etc.
Processing such as returning data memory becomes possible, and with O8 there is no need to monitor or manage all resources as in the past, making it possible to make the OS more compact.

又第3に他のプログラムを強制的に中断(abort)
させるものではないので、一般ユーザーでも使用可能で
あり、前記RPSが所望の位置、タイミングでセット可
能となり、特にSE(システムエンジニア)によらな(
てもプログラム異常の対応が可能である。
Third, forcibly interrupting other programs (abort)
Since it is not intended to be used by SEs (system engineers), it can be used even by general users, and the RPS can be set at the desired position and timing.
It is possible to deal with program abnormalities even if

第4に前述のプログラム異常が発生したUPに対し他の
UPから数値をオペレータの操作、例えばRPE  U
PI  O”のキーイン操作で単なる中断(abort
 )にとどまらず、デバッガの起動又は修復処理の実行
等、正常復帰又は前記異常の原因調査に係る手段の提供
が可能になり、更にRPEコマンドな発行したプログラ
ムに対してその結果な通知できるので、次善策が順次講
じ得、最悪の場合でも中断(abort )させるとい
う処理も可能である。
Fourth, for the UP where the above-mentioned program abnormality has occurred, the numerical values are transferred from other UPs by the operator's operation, for example, RPE U
A simple interruption (abort) can be made by key-in operation of PI
), it is also possible to provide means for returning to normality or investigating the cause of the abnormality, such as starting a debugger or executing repair processing, and furthermore, it is possible to notify the program that issued the RPE command of the results. Workarounds can be taken sequentially, and even in the worst case, it is possible to abort the process.

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

第1図は本発明のプログラム異常方式を使用したプログ
ラムインデックスチャー)(PIC)の構成図、第2図
は同方式を使用したコンビーータにおけるオペレーティ
ングシステム(O8)とユーザプログラム(UP )と
の説明関連図、第3図は同方式におけるリエントリポイ
ントエントリ(RPE)及びリターンフロムリエントリ
ポイン)(RTN)の各コマンド実行時の説明図、第4
図は同方式の動作説明図な示す。 (1)−P I領域、 (2)−RP領領域 (3)−
psw領域、 (4)−RP (S)領域、 (5)−
P S W (S) 領域、 (6)・・・その他の管
理データを有する領域。
Figure 1 is a block diagram of a program indexer (PIC) using the program abnormality method of the present invention, and Figure 2 is an explanation of the relationship between the operating system (O8) and user program (UP) in a conbeater using the same method. Figure 3 is an explanatory diagram of the execution of each command of reentry point entry (RPE) and return from reentry point (RTN) in the same method, and Figure 4
The figure is an explanatory diagram of the operation of the same system. (1)-PI area, (2)-RP area (3)-
psw area, (4)-RP (S) area, (5)-
PSW (S) area, (6)...area containing other management data.

Claims (1)

【特許請求の範囲】[Claims] 1、複数のプログラムを制御する制御プログラムにより
、コンピュータを構成するCPU、記憶素子及びファイ
ル格納用のディスク等の記憶手段を管理し、プログラム
の異常動作に対応する異常プログラムの処理方式におい
て、前記制御プログラムの状態を管理するテーブルに前
記複数のプログラム毎の異常時の分岐先を記憶する領域
及び分岐する直前のプログラムの状態を格納する領域を
設け、前記複数のプログラムにおける異常プログラムの
処理を行うことを特徴としたプログラム異常処理方式。
1. A control program that controls a plurality of programs manages storage means such as a CPU, a storage element, and a disk for storing files that constitute a computer, and handles abnormal program operations in response to abnormal program operations. An area for storing a branch destination in the event of an abnormality for each of the plurality of programs and an area for storing the state of the program immediately before branching are provided in a table for managing program states, and an abnormal program in the plurality of programs is processed. A program abnormality handling method featuring the following.
JP61275842A 1986-11-19 1986-11-19 Program abnormality processing system Pending JPS63129429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61275842A JPS63129429A (en) 1986-11-19 1986-11-19 Program abnormality processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61275842A JPS63129429A (en) 1986-11-19 1986-11-19 Program abnormality processing system

Publications (1)

Publication Number Publication Date
JPS63129429A true JPS63129429A (en) 1988-06-01

Family

ID=17561193

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61275842A Pending JPS63129429A (en) 1986-11-19 1986-11-19 Program abnormality processing system

Country Status (1)

Country Link
JP (1) JPS63129429A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58149547A (en) * 1982-03-01 1983-09-05 Hitachi Constr Mach Co Ltd Safety device for controller
JPS6048545A (en) * 1983-08-26 1985-03-16 Nec Corp Microcomputer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58149547A (en) * 1982-03-01 1983-09-05 Hitachi Constr Mach Co Ltd Safety device for controller
JPS6048545A (en) * 1983-08-26 1985-03-16 Nec Corp Microcomputer

Similar Documents

Publication Publication Date Title
US5748959A (en) Method of conducting asynchronous distributed collective operations
US7228544B2 (en) Job processing method, job processing unit, and storage managing system
US20080307265A1 (en) Method for Managing a Software Process, Method and System for Redistribution or for Continuity of Operation in a Multi-Computer Architecture
US9015534B2 (en) Generation of memory dump of a computer process without terminating the computer process
JP2005242404A (en) Method for switching system of computer system
JP2018200731A (en) Support device and support program
CA1212478A (en) Data processor with interrupt facility
US6332199B1 (en) Restoring checkpointed processes including adjusting environment variables of the processes
CN115237728B (en) Visual monitoring method for real-time operating system running state
US6785883B1 (en) Software system for tracing data
JPS63129429A (en) Program abnormality processing system
US5790872A (en) Interrupt control handler for a RISC-type microprocessor
US6938115B2 (en) Method and computer device with different criticality
CN114047976A (en) Plug-in loading method and device, electronic equipment and storage medium
JPH05314075A (en) On-line computer system
JPS6376028A (en) Method for controlling execution of instruction step in virtual computer system
JPH1040123A (en) System and method for job management
JPH0675957A (en) Restoration mechanism of fault during editing
JPH03240831A (en) Interruption processing system
EP1777620A2 (en) Method for incorporating new device in information processing apparatus, information processing apparatus, program and computer readable information recording medium
JP2001051854A (en) Information management system
JP2001147910A (en) Distributed batch job processing continuing system and recording medium therefor
JP3102381B2 (en) Task debugging device, task debugging method, and recording medium therefor
JP3098325B2 (en) Failure information storage method
JPH06187217A (en) System for synchronization between data base and normal file