JPS6355644A - Preventing system for program runaway - Google Patents

Preventing system for program runaway

Info

Publication number
JPS6355644A
JPS6355644A JP61198953A JP19895386A JPS6355644A JP S6355644 A JPS6355644 A JP S6355644A JP 61198953 A JP61198953 A JP 61198953A JP 19895386 A JP19895386 A JP 19895386A JP S6355644 A JPS6355644 A JP S6355644A
Authority
JP
Japan
Prior art keywords
address
branch
program
branch instruction
instruction
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
JP61198953A
Other languages
Japanese (ja)
Inventor
Yukio Ishihara
幸雄 石原
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP61198953A priority Critical patent/JPS6355644A/en
Publication of JPS6355644A publication Critical patent/JPS6355644A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the recovery processing speed and also to decrease the service interruption and forcible discontinuation frequencies, by limiting the program breakdown, i.e., a big factor of the program runaway down to a small range between branch instructions. CONSTITUTION:When a branch instruction J2 of an address A6 is carried out and an executing address is equal to A7, this address A7 is stored in a latest branch address register 105. Then an address A3 is obtained and an instruction J3 is extracted. Thus a branch instruction detecting circuit 106 sends an address A8 of the instruction J3 to a branch instruction address comparator 107. Then the comparator 107 gives an access to a branch instruction address memory device 103 to perform comparison. In this case, the address A8 is not stored in the device 103 and the comparator 107 sends an abnormal signal showing discordance to an instruction executing circuit 109 together with a recent normal branch address A9.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、蓄積プログラム制御方式を用いた電子交換機
システムに関し、特にプログラム暴走防止方式に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic switching system using a storage program control method, and particularly to a program runaway prevention method.

〔従来の技術〕[Conventional technology]

従来、蓄積プログラム制御方式を用いた電子交換機シス
テムにおいて、プログラムの破壊等によるプログラムの
暴走を防ぐ障害処理の方式は、プログラムの異常走行を
検出する手段と、検出結果を中央制御装置に報告する手
段によって行われている。以下この従来方式を第2図に
示す。図中、201は中央制御装置、202は記憶装置
、203はタイマをそれぞれ示す。中央制御装置201
は、記憶装置202に格納されているプログラムを逐次
実行して行くが、実行途中でプログラムにより定期的に
タイマ203をリセットするようにしている。タイマ2
03は、オーバフローすると中央制御装置201に割り
込みを出すようになっており、プログラムが正常であれ
ば定期的にリセットされるので割り込みはおこらないが
、プログラム暴走等でリセットが行われなくなると、タ
イマ203がオーバフローし中央制御装置201に割り
込みをかけるので暴走が検出できる。
Conventionally, in an electronic exchange system using a storage program control method, the fault handling method for preventing program runaway due to program destruction, etc., has a means for detecting abnormal running of the program and a means for reporting the detection result to a central control unit. It is carried out by This conventional method is shown in FIG. 2 below. In the figure, 201 is a central control unit, 202 is a storage device, and 203 is a timer. Central control device 201
The program sequentially executes the programs stored in the storage device 202, and the timer 203 is periodically reset by the program during execution. timer 2
03 is designed to issue an interrupt to the central control unit 201 when it overflows.If the program is normal, it will be reset periodically and no interrupt will occur, but if the program is not reset due to runaway etc. 203 overflows and interrupts the central control unit 201, so runaway can be detected.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のプログラム暴走防止方式によれば、プロ
グラム暴走の検出は可能であるが、暴走の検出がタイマ
のオーバフローといも手段によっているため、暴走の原
因となったプログラムが特定できず、回復するには全プ
ログラムの再ロードによる手段しかとり得ない。このた
めサービスの継続性が保てず、更に中断時間が長(なる
問題点があった。
According to the conventional program runaway prevention method described above, it is possible to detect program runaway, but because the runaway is detected by timer overflow, the program that caused the runaway cannot be identified and recovery is required. The only option available is to reload the entire program. As a result, continuity of service could not be maintained, and the interruption time was long.

本発明の目的は、蓄積プログラム制御方式の電子交換機
システムにおいて、プログラム暴走による障害処理の従
来方式の欠点を除き、暴走の発生点を特定でき、かつサ
ービスの中断時間を短くするプログラムの暴走防止方式
を提供することにある。
An object of the present invention is to provide a program runaway prevention method that eliminates the shortcomings of the conventional method of troubleshooting due to program runaway in an electronic exchange system based on the storage program control method, allows the point of runaway occurrence to be identified, and shortens service interruption time. Our goal is to provide the following.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明は、蓄積プログラム制御方式を用いた電子交換機
システムにおけるプログラム暴走防止方式において、 プログラムの分岐点を検出する検出手段と、この検出手
段により検出されたプログラムの分岐点から分岐点まで
のデータを記憶するデータ記憶手段と、交換処理を記述
したプログラムの分岐命令アドレスをあらかじめ記憶し
ておく分岐命令アドレス記憶手段と、分岐命令が発生し
た時にこの分岐命令アドレスと前記分岐命令アドレス記
憶手段に記憶されている分岐命令アドレスとを比較する
比較手段とを備え、 プログラム実行において分岐命令が発生した時にこの分
岐命令アドレスと前記分岐命令アドレス記憶手段に記t
なされている分岐命令アドレスとを比較し、不一致のと
きは、前分岐点から次分岐点までのプログラムを外部記
憶からロードし、前記データ記憶手段から旧データを戻
し、かつ前の分岐点から走行を開始することによってプ
ログラムの暴走を防止し、回復を速やかに行うことを特
徴としている。
The present invention provides a program runaway prevention method in an electronic exchange system using a storage program control method, which includes a detection means for detecting a program branch point, and data from the program branch point to the branch point detected by the detection means. A data storage means for storing data, a branch instruction address storage means for storing in advance a branch instruction address of a program that describes an exchange process, and a branch instruction address storage means for storing the branch instruction address and the branch instruction address in the branch instruction address storage means when a branch instruction is generated. and a comparison means for comparing the branch instruction address with the branch instruction address stored in the branch instruction address storage means when a branch instruction occurs during program execution.
If there is a mismatch, the program from the previous branch point to the next branch point is loaded from external storage, the old data is returned from the data storage means, and the program starts running from the previous branch point. This feature prevents the program from running out of control and speeds up recovery.

〔実施例〕〔Example〕

次に本発明の実施例を図を用いて詳細に亭明する。 Next, embodiments of the present invention will be explained in detail using figures.

第1図は、本発明の一実施例を示す図であり、交換処理
を行うためのプログラムが格納されている記憶装置10
2と、このプログラムに奉づき交換処理を行う中央制御
装置101と、分岐命令が格納されている記憶装置10
2のアドレスを格納する分岐命令アドレス記憶装置10
3と、書込命令によってデータを書き込む記憶装置10
2のアドレスおよびこのアドレスに格納されていたデー
タ、つまり旧データを格納する書込データ記憶装置10
4と、交換処理プログラムが格納されている外部記憶装
置110とによって構成されている。中央制御装置10
1はさらに、最新の分岐命令アドレスを記憶する最新分
岐アドレスレジスタ105と、分岐命令を検出する分岐
命令検出回路106と、分岐命令アドレス記憶装置10
3に格納されている分岐命令アドレスと分岐命令検出回
路106からの分岐命令アドレスとを比較する分岐命令
アドレス比較回路107と、書込命令を検出する書込命
令検出回路108と、記憶装置102から読み込んだ種
々の命令を実行し、さらにプログラムおよびデータの復
旧を行う命令実行回路109とを有している。
FIG. 1 is a diagram showing an embodiment of the present invention, in which a storage device 10 in which a program for performing exchange processing is stored.
2, a central control unit 101 that performs exchange processing based on this program, and a storage device 10 that stores branch instructions.
Branch instruction address storage device 10 that stores addresses of 2
3, and a storage device 10 into which data is written in accordance with a write command.
A write data storage device 10 that stores address No. 2 and the data stored at this address, that is, old data.
4, and an external storage device 110 in which the exchange processing program is stored. Central control device 10
1 further includes a latest branch address register 105 that stores the latest branch instruction address, a branch instruction detection circuit 106 that detects a branch instruction, and a branch instruction address storage device 10.
a branch instruction address comparison circuit 107 that compares the branch instruction address stored in the memory device 3 with the branch instruction address from the branch instruction detection circuit 106; a write instruction detection circuit 108 that detects a write instruction; It has an instruction execution circuit 109 that executes various instructions that have been read and also recovers programs and data.

記憶装置102には、説明のため第1図に示すようなプ
ログラムが格納されているものとする。ここでA1〜A
9はアドレス、J1〜J4は分岐命令、Wl、W2は書
込命令、5l−33はその他の命令をそれぞれ示してい
る。アドレスA8に格納されている分岐命令J3は本来
は分岐命令でなかったものがプログラム破壊が発生し分
岐命令J3に変化したものである。分岐命令アドレス記
憶装置103にはこのプログラムに本来含まれる分岐命
令が格納されているアドレスA3.A6.A9があらか
じめ書き込まれている。
For the sake of explanation, it is assumed that the storage device 102 stores a program as shown in FIG. Here A1-A
9 is an address, J1 to J4 are branch instructions, Wl and W2 are write instructions, and 5l-33 are other instructions. The branch instruction J3 stored at address A8 was originally not a branch instruction, but was changed to branch instruction J3 due to program destruction. The branch instruction address storage device 103 stores addresses A3. A6. A9 is written in advance.

中央制御装置101は記憶装置102のアドレスA1か
ら順次命令を読み込み、命令実行回路109においてそ
れらを実行する。分岐命令検出回路106は記憶装置1
02からの命令をチェックし、それが分岐命令である場
合にのみ分岐先のアドレスを最新分岐アドレスレジスタ
105に格納するが、プログラムの実行開始時には、最
初に読み込まれた命令のアドレスを無条件に最新分岐ナ
ドレスレジスク105に格納する。次のアドレスA2か
ら書込命令W1が中央制御装置101に取り込まれるど
書込命令検出回路10日はこれを検出し、この命令によ
ってデータが書き込まれるアドレスと、このアドレスに
すでに書き込まれている旧データを書込データ記憶装置
104に記憶させる。次のアドレスA3に格納されてい
る分岐命令J1が中央制御装置101に入力されると、
分岐命令検出回路106はこれを検出し、このアドレス
A3を分岐命令アドレス比較回路107に出力する。分
岐命令アドレス比較回路107はこれを受けると、分岐
命令アドレス記憶装置103に記憶されているアドレス
と比較し、アドレスA3に一致するアドレスが記憶され
ているかチェックする。この場合には一致するアドレス
A3がみつかるので、分岐命令アドレス比較回路107
はこの分岐命令は正しいと判断し、そのことを示す正常
信号を命令実行回路109に送る。命令実行回路109
′はこれを受けて分岐命令Jlを実行する。分岐命令J
1が実行され分岐先アドレスがA4(分岐命令J1の分
岐先のアドレスはA4であるとする)になったとすると
、最新分岐アドレスレジスタ105にはアドレスA4が
格納される。
The central control unit 101 sequentially reads instructions from address A1 of the storage device 102 and executes them in the instruction execution circuit 109. The branch instruction detection circuit 106 is connected to the storage device 1
The instruction from 02 is checked, and only if it is a branch instruction, the branch destination address is stored in the latest branch address register 105, but when the program starts executing, the address of the first instruction read is unconditionally stored. It is stored in the latest branch address register 105. When the write command W1 is taken into the central control unit 101 from the next address A2, the write command detection circuit 10 detects this and identifies the address to which data is written by this command and the old data already written to this address. The data is stored in the write data storage device 104. When the branch instruction J1 stored at the next address A3 is input to the central controller 101,
Branch instruction detection circuit 106 detects this and outputs this address A3 to branch instruction address comparison circuit 107. When branch instruction address comparison circuit 107 receives this, it compares it with the address stored in branch instruction address storage device 103 to check whether an address matching address A3 is stored. In this case, since a matching address A3 is found, the branch instruction address comparison circuit 107
determines that this branch instruction is correct, and sends a normal signal indicating this to instruction execution circuit 109. Instruction execution circuit 109
' receives this and executes the branch instruction Jl. Branch instruction J
1 is executed and the branch destination address becomes A4 (assuming that the branch destination address of branch instruction J1 is A4), address A4 is stored in the latest branch address register 105.

また同時に書込データ記憶装置104の内容はクリアさ
れる。アドレスA4からプログラムが走行すると、アド
レスA5にある書込命令W2が書込命令検出回路108
によって検出され、前述したように書込命令W2がアク
セスするアドレスと、そのアドレスの内容が旧データと
して書込データ記憶装置104に記憶される。次にアド
レスA6にある分岐命令J2が取り出されると、分岐命
令アドレス比較回路107は分岐命令アドレス記憶装置
103に記憶されている分岐命令アドレスと比較し、正
常信号が出され処理が続行する。このようにして、記憶
装置102に格納されているプログラムが正常の場合は
処理が続行する。
At the same time, the contents of the write data storage device 104 are cleared. When the program runs from address A4, the write command W2 at address A5 is detected by the write command detection circuit 108.
As described above, the address accessed by the write command W2 and the contents of that address are stored in the write data storage device 104 as old data. Next, when the branch instruction J2 at address A6 is retrieved, the branch instruction address comparison circuit 107 compares it with the branch instruction address stored in the branch instruction address storage device 103, outputs a normal signal, and continues processing. In this way, if the program stored in the storage device 102 is normal, processing continues.

次にプログラムが異常な場合の説明を行う。アドレスA
6の分岐命令J2が実行されて実行アドレスがA7 (
分岐命令J2の分岐先のアドレスはA7であるとする)
になったとすると、最新分岐アドレスレジスタ105に
はこのアドレスA7が記憶される。また、書込データ記
憶装置104の内容がクリアされることは前に説明した
通りである。
Next, we will explain what happens when the program is abnormal. Address A
6 branch instruction J2 is executed and the execution address is A7 (
Assume that the branch destination address of branch instruction J2 is A7)
, this address A7 is stored in the latest branch address register 105. Furthermore, as described above, the contents of the write data storage device 104 are cleared.

アドレスが八8になり命令J3が取り出されると、この
命令は分岐命令なので分岐命令検出回路106は、この
命令のアドレスA8を分岐命令アドレス比較回路107
に送出する。分岐命令アドレス比較回路107は分岐命
令アドレス記憶装置103にアクセスして比較を行う。
When the address reaches 88 and the instruction J3 is fetched, since this instruction is a branch instruction, the branch instruction detection circuit 106 converts the address A8 of this instruction to the branch instruction address comparison circuit 107.
Send to. Branch instruction address comparison circuit 107 accesses branch instruction address storage device 103 and performs comparison.

この場合、分岐命令アドレス記憶装置103にアドレス
A8は記憶されていないので、分岐命令アドレス比較回
路107は、不一致情報を示す異常信号と、最も近い正
常の分岐アドレスA9を中央制御装置101の命令実行
回路1゜9に送出する。命令実行回路109がこの不一
致情報を受けると、書込データ記憶装置104に記憶さ
れている情報により異常検出までに書き換えたアドレス
に旧データを書き込む。旧データへの復旧処理終了後、
最新分岐アドレスレジスタ105に入っているアドレス
から、分岐命令アドレス比較回路によって出力された正
常の分岐アドレス、この場合A7からA9までのアドレ
スのプログラムを外部記憶装置110から記憶装置10
2にロードする。
In this case, since the address A8 is not stored in the branch instruction address storage device 103, the branch instruction address comparison circuit 107 uses the abnormal signal indicating mismatch information and the nearest normal branch address A9 to execute the instruction of the central controller 101. Send to circuit 1°9. When the instruction execution circuit 109 receives this mismatch information, it writes the old data to the address that was rewritten before the abnormality was detected, based on the information stored in the write data storage device 104. After the restoration process to the old data is completed,
From the address stored in the latest branch address register 105, the program of normal branch addresses output by the branch instruction address comparison circuit, in this case addresses A7 to A9, is transferred from the external storage device 110 to the storage device 10.
Load into 2.

ロード終了後、最新分岐アドレスレジスタ105に記憶
されているアドレスA7を開始アドレスとしてプログラ
ムの走行を開始する。
After the loading is completed, the program starts running using the address A7 stored in the latest branch address register 105 as the starting address.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、プログラム暴走の大きな
原因となるプログラム破壊を分岐命令間の小さな範囲に
限定することで回復処理が速やかにでき、かつサービス
の中断2強制切断を少なくできる効果がある。
As explained above, the present invention has the effect that by limiting program destruction, which is a major cause of program runaway, to a small range between branch instructions, recovery processing can be performed quickly, and service interruptions and forced disconnections can be reduced. .

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

第1図は本発明の一実施例のブロック図、第2図は従来
のプログラム暴走防止方式のブロック図である。 101、201・・・中央制御装置 102、202・・・記憶装置 103  ・・・・・分岐命令アドレス記憶装置104
  ・・・・・書込データ記憶装置105  ・・・・
・最新分岐アドレスレジスタ106  ・・・・・分岐
命令検出回路107  ・・・・・分岐命令アドレス比
較回路108  ・・・・・書込命令検出回路109 
 ・・・・・命令実行回路 110  ・・・・・外部記憶装置 203 ・・・・・タイマ
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional program runaway prevention system. 101, 201...Central control unit 102, 202...Storage device 103...Branch instruction address storage device 104
...Write data storage device 105...
-Latest branch address register 106...Branch instruction detection circuit 107...Branch instruction address comparison circuit 108...Write instruction detection circuit 109
...Instruction execution circuit 110 ...External storage device 203 ...Timer

Claims (1)

【特許請求の範囲】[Claims] (1)蓄積プログラム制御方式を用いた電子交換機シス
テムにおけるプログラム暴走防止方式において、 プログラムの分岐点を検出する検出手段と、この検出手
段により検出されたプログラムの分岐点から分岐点まで
のデータを記憶するデータ記憶手段と、交換処理を記述
したプログラムの分岐命令アドレスをあらかじめ記憶し
ておく分岐命令アドレス記憶手段と、分岐命令が発生し
た時にこの分岐命令アドレスと前記分岐命令アドレス記
憶手段に記憶されている分岐命令アドレスとを比較する
比較手段とを備え、 プログラム実行において分岐命令が発生した時にこの分
岐命令アドレスと前記分岐命令アドレス記憶手段に記憶
されている分岐命令アドレスとを比較し、不一致のとき
は、前分岐点から次分岐点までのプログラムを外部記憶
からロードし、前記データ記憶手段から旧データを戻し
、かつ前の分岐点から走行を開始することによってプロ
グラムの暴走を防止し、回復を速やかに行うことを特徴
とするプログラム暴走防止方式。
(1) In a program runaway prevention method in an electronic switching system using a storage program control method, a detection means for detecting a program branch point and data stored from the program branch point detected by the detection means to the branch point are stored. a branch instruction address storage means for storing in advance a branch instruction address of a program that describes an exchange process; and a branch instruction address storage means for storing in advance a branch instruction address of a program that describes an exchange process; and comparing means for comparing the branch instruction address stored in the branch instruction address storage means when a branch instruction occurs during program execution, and when there is a mismatch, the branch instruction address is compared with the branch instruction address stored in the branch instruction address storage means. Loads the program from the previous branch point to the next branch point from external storage, returns the old data from the data storage means, and starts running from the previous branch point, thereby preventing program runaway and recovery. A program runaway prevention method that is characterized by rapid execution.
JP61198953A 1986-08-27 1986-08-27 Preventing system for program runaway Pending JPS6355644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61198953A JPS6355644A (en) 1986-08-27 1986-08-27 Preventing system for program runaway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61198953A JPS6355644A (en) 1986-08-27 1986-08-27 Preventing system for program runaway

Publications (1)

Publication Number Publication Date
JPS6355644A true JPS6355644A (en) 1988-03-10

Family

ID=16399685

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61198953A Pending JPS6355644A (en) 1986-08-27 1986-08-27 Preventing system for program runaway

Country Status (1)

Country Link
JP (1) JPS6355644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021157594A (en) * 2020-03-27 2021-10-07 パナソニックIpマネジメント株式会社 Abnormality detection method, abnormality detection program, abnormality detection device, rewriting method, rewriting program, and rewriting device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021157594A (en) * 2020-03-27 2021-10-07 パナソニックIpマネジメント株式会社 Abnormality detection method, abnormality detection program, abnormality detection device, rewriting method, rewriting program, and rewriting device
US11947408B2 (en) 2020-03-27 2024-04-02 Panasonic Intellectual Property Management Co., Ltd. Anomaly detection method, anomaly detection recording medium, anomaly detection device, rewriting method, and rewriting device

Similar Documents

Publication Publication Date Title
US20050015672A1 (en) Identifying affected program threads and enabling error containment and recovery
US5261084A (en) Error judgment method
JPH02156357A (en) Program destruction preventing method
JPS6355644A (en) Preventing system for program runaway
US20040268332A1 (en) Memory access control method and processing system with memory access check function
JPH01286029A (en) Microprogram patching system
JPH04266141A (en) Stack overflow detection system
JPS6146543A (en) Fault processing system of transfer device
JPH04332055A (en) Method for detecting program runaway
JPH05189255A (en) Program runaway detection method
JPH06266648A (en) Data transfer control system
JPH0395634A (en) Restart control system for computer system
JP3102381B2 (en) Task debugging device, task debugging method, and recording medium therefor
JPH04125753A (en) On-lined diagnostic system for memory
JPS61101844A (en) Fault processing system
JPH02297235A (en) Memory data protecting circuit
JPS608954A (en) Hang-up detecting method of computer program
JPS59191662A (en) Detecting system for program runaway
JPH04117528A (en) Data collation processor
JPH0784786A (en) Program execution control method
JPH02245937A (en) Information processor
JPS62166451A (en) History analyzing device for logical unit
JPH0564933U (en) Electronic computer
JPS63285656A (en) Method for detecting memory abnormality
JPS63136240A (en) Hard trouble identifying system