JPS63155236A - Detecting method for runaway of software - Google Patents
Detecting method for runaway of softwareInfo
- Publication number
- JPS63155236A JPS63155236A JP61300067A JP30006786A JPS63155236A JP S63155236 A JPS63155236 A JP S63155236A JP 61300067 A JP61300067 A JP 61300067A JP 30006786 A JP30006786 A JP 30006786A JP S63155236 A JPS63155236 A JP S63155236A
- Authority
- JP
- Japan
- Prior art keywords
- program
- instruction
- software
- address
- area
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野1
本発明はソフトウェアの暴走検知方法に関するものであ
る。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field 1] The present invention relates to a software runaway detection method.
[従来技術とその問題点]
従来、コンピュータの動作中、ノイズ等種々の要因によ
ってソフトウェアが暴走し、CPUによる制御が困難に
なることかあった。しかも暴走した結果、プログラムの
他の場所へ実行がりり仲々その処理が終らなかったり、
処理がプログラム領域の未使用の部分に移ってプログラ
ムの実行が停滞してしまい、プログラムの正規の実行が
なされているかどうか判別できず、コンピュータのオペ
レータがソフトウェアの暴走を認識し難いという問題が
あった。[Prior Art and its Problems] Conventionally, during the operation of a computer, various factors such as noise can cause the software to run out of control, making it difficult to control the computer by the CPU. Moreover, as a result of the program running out of control, the program may end up running somewhere else, and the process may not finish.
There is a problem in that the processing moves to an unused part of the program area and program execution stalls, making it impossible to determine whether the program is being executed properly or not, making it difficult for the computer operator to recognize when the software is running out of control. Ta.
[目的]
そこで、本発明はかかる問題点を除去し、ソフトウェア
の暴走を確実に検知して、オペレータがこれを容易に認
識してこれに対処し得るようにしたソフトウェアの暴走
検知方法を提供することを目的とする。[Objective] Therefore, the present invention provides a software runaway detection method that eliminates such problems, reliably detects software runaway, and allows an operator to easily recognize and deal with it. The purpose is to
E問題点を解決するための手段]
そのため、本発明では、メモリ空間上のプログラム領域
において使用されていない空き領域のすべてに異常時の
処理を起動するだめの命令を書込むことを特徴とする。Means for Solving Problem E] Therefore, the present invention is characterized in that an instruction for starting processing in the event of an abnormality is written in all unused free areas in the program area in the memory space. .
[作 用]
以上の構成によれば、ソフトウェアが暴走してプログラ
ムの実行かプログラムの空き領域に移行したときに異常
時の処理が起動されることになる。[Operation] According to the above configuration, when the software goes out of control and moves to the program execution or empty area of the program, the abnormality processing is activated.
[実施例]
以下、図面に示す実施2例に基づき本発明の詳細な説明
する。[Example] Hereinafter, the present invention will be described in detail based on two embodiments shown in the drawings.
尚、本実施例では、CPUとしてインテル社の8085
、あるいはザイロク社のZ−80等、所謂80系のもの
を用いた場合について説明を行う。In this embodiment, Intel's 8085 CPU is used as the CPU.
, or the so-called 80 series, such as Ziroku's Z-80, will be explained.
第1図は本発明を適用可能なコンピュータシステムの一
構成例を示すブロック図である。ここで、−6,7およ
び8は、それぞれ、データバス、アドレスバスおよびコ
ントロールバス、9は80系のCPt1 、10はプロ
グラムやデータを格納するメモリ、11はキーボード等
の入力装置、12は表示器等の出力装置である。FIG. 1 is a block diagram showing an example of the configuration of a computer system to which the present invention can be applied. Here, -6, 7 and 8 are data bus, address bus and control bus respectively, 9 is 80 series CPt1, 10 is memory for storing programs and data, 11 is input device such as keyboard, 12 is display It is an output device such as a device.
かかる構成において、例えばデータバス6やアドレスバ
ス7がノイズ等の影響を受けると、データやアドレスが
変化してメモリlOの記憶領域に展開された神々の命令
に付加された行き先番地や戻り番地が書ぎ換えられてし
まい、実行が他の場所に移ってしまうことになる。そこ
で、本例にあっては以下のように記憶領域を構成する。In such a configuration, if the data bus 6 or the address bus 7 is affected by noise or the like, for example, the data or addresses change, and the destination address or return address added to the God's command developed in the storage area of the memory IO changes. It will be rewritten and execution will be moved to another location. Therefore, in this example, the storage area is configured as follows.
第2図は本発明の一実施例におけるメモリ10の内容の
一例を示すメモリマツプである。FIG. 2 is a memory map showing an example of the contents of the memory 10 in one embodiment of the present invention.
第2図において、Pはプログラムエリア、lはコンピュ
ータシステムを制御するCPU 10が実行すべくプロ
グラムエリアPに展開されたプログラムである。2はア
ドレス0038+1 (”H”は16進数を示す。以下
間し。)番地およびそのデータを示しており、プログラ
ムの実行が後述されるプログラム異常処理を行う命令を
格納した番地へ無条件に分00388番地には、プログ
ラムにおいて割込みを使用しているならば割込み禁止命
令DIを置いてから、異常処理を行う番地へ径行するジ
ャンプ命令を入れておく。In FIG. 2, P is a program area, and l is a program developed in the program area P to be executed by the CPU 10 that controls the computer system. 2 indicates the address 0038+1 (“H” indicates a hexadecimal number. The following is the rest) address and its data, and the execution of the program is unconditionally branched to the address storing the instruction to handle the program abnormality described later. If the program uses interrupts, an interrupt disabling instruction DI is placed at address 00388, and then a jump instruction is placed to proceed to the address where abnormality processing is to be performed.
3はプログラムエリアPの空き部分を示しており、本実
施例においてはこの、全ての部分にリスタート命令”R
5T7”(オブジェクトコートでFFH)を格納してお
く。4は異常処理を行うプログラムを格納した領域、5
はデータメモリ領域である。3 indicates an empty part of the program area P, and in this embodiment, the restart command "R" is applied to all of this part.
5T7" (FFH in object code) is stored. 4 is the area where the program that performs abnormality processing is stored, and 5
is the data memory area.
ここで、ノイズ等の影テによりソフトウェア上での暴走
が生じ、処理がプログラムエリアPの空き部分3に移行
すると、すなわちR5T7命令を実行することになるか
ら、必ずリスタート番地の0038H番地に制御が移る
。Here, if a runaway occurs in the software due to the influence of noise, etc., and the processing moves to the empty part 3 of the program area P, that is, the R5T7 instruction will be executed, so the control will always go to address 0038H, which is the restart address. will move.
このことにより、プログラムに実行は003811番地
から異常処理を行うプログラムを格納した領域4へ移行
し、所定の異常処理か行われる。As a result, execution of the program moves from address 003811 to area 4 where a program for performing abnormality processing is stored, and predetermined abnormality processing is performed.
この異常処理としては、例えば人出力を全てクリアし、
システムによっては運転中ランプをOFFとしCPuを
停止(ホールド)させるなどがある。To handle this abnormality, for example, clear all human output,
Depending on the system, the lamp may be turned off during operation to stop (hold) the CPU.
また、出力装置12の形態によっては、表示による警告
あるいは音による警告等を行うようにしてもよい。この
ような異常処理が行われることによって、システムのオ
ペレータはソフトウェアが3走したことを容易かつ速か
に認識でき、適切な対策を施すことが可能となる。Further, depending on the form of the output device 12, a display warning or a sound warning may be given. By performing such abnormality processing, the system operator can easily and quickly recognize that the software has run three times, and can take appropriate measures.
[発明の効果コ
以上説明したことから明らかなように、本発明によれば
ソフトウェアが暴走してプログラムの実行がプログラム
の空き領域に移行したときに異常時の処理が起動される
ことになる。このことにより、ソフトウェアが暴走した
場合にその検知を非常に高い確率で行うことができ、さ
らに異常時の処理が行われることによって、オペレータ
はソフトウェアが暴走したことを容易に認識でき、従っ
て異常時以後の対処を早急に行うことができるようにな
る。[Effects of the Invention] As is clear from the above explanation, according to the present invention, when the software runs out of control and the execution of the program shifts to an empty area of the program, abnormality processing is activated. This makes it possible to detect with a very high probability when the software runs out of control.Furthermore, by handling the abnormality, the operator can easily recognize that the software has runaway, and therefore This will allow you to take immediate action in the future.
第1図はコンピュータ構成の一例を示すブロック図、
第2図は本発明の一実施例におけるメモリマツプである
。
1・・・プログラム、
2・・・003811番地の内容、
3・・・プログラム空き領域、
4・・・プログラムの異常処理領域、
5・・・データメモリ領域、
6・・・データバス、
7・・・アドレスバス、
8・・・コントロールバス、
9・・・cpu 。
10・・・メモリ、
II・・・人力装置、
12・・・出力装置。
第1図
實Tt1g1口こお′L丁3メtリフツフ゛第2図FIG. 1 is a block diagram showing an example of a computer configuration, and FIG. 2 is a memory map in an embodiment of the present invention. 1... Program, 2... Contents of address 003811, 3... Program free area, 4... Program error processing area, 5... Data memory area, 6... Data bus, 7. ...address bus, 8...control bus, 9...cpu. 10...Memory, II...Human power device, 12...Output device. Figure 1 Actual Tt1g1 Mouth 3 Meters Lift Figure 2
Claims (1)
いない空き領域のすべてに異常時の処理を起動するため
の命令を書込むことを特徴とするソフトウェアの暴走検
知方法。 2)特許請求の範囲第1項記載のソフトウェアの暴走検
知方法において、前記空き領域の全てに、ソフトウェア
刷込みを発生させる割込み命令を書き込み、 プログラムの実行が前記空き領域に移行したときに、前
記割り込み命令によって規定される前記メモリ空間上の
所定の番地へプログラムの実行を移行させ、 前記所定の番地から前記異常時の処理を実行するプログ
ラムへ分岐させることを特徴とするソフトウェアの暴走
検知方法。 3)特許請求の範囲第1項または第2項記載のソフトウ
ェアの暴走検知方法において、前記割込み命令が1バイ
ト命令であることを特徴とするソフトウェアの暴走検知
方法。[Scope of Claims] 1) A software runaway detection method characterized by writing an instruction for starting processing in the event of an abnormality into all unused free areas in a program area in a memory space. 2) In the software runaway detection method as set forth in claim 1, an interrupt command that causes software imprinting is written in all of the free areas, and when the execution of the program moves to the free area, the interrupt A method for detecting software runaway, characterized by moving execution of a program to a predetermined address in the memory space defined by an instruction, and branching from the predetermined address to a program that executes processing at the time of the abnormality. 3) A software runaway detection method according to claim 1 or 2, wherein the interrupt instruction is a 1-byte instruction.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61300067A JPS63155236A (en) | 1986-12-18 | 1986-12-18 | Detecting method for runaway of software |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP61300067A JPS63155236A (en) | 1986-12-18 | 1986-12-18 | Detecting method for runaway of software |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS63155236A true JPS63155236A (en) | 1988-06-28 |
Family
ID=17880299
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP61300067A Pending JPS63155236A (en) | 1986-12-18 | 1986-12-18 | Detecting method for runaway of software |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS63155236A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0359849A1 (en) * | 1988-09-21 | 1990-03-28 | Robert Bosch Gmbh | Method of detecting program counter malfunction |
| JPH03167634A (en) * | 1989-11-28 | 1991-07-19 | Nec Niigata Ltd | Protection mechanism for driver circuit |
| JPH0482732U (en) * | 1990-11-28 | 1992-07-17 | ||
| US7246206B2 (en) | 2002-06-28 | 2007-07-17 | Robert Bosch Gmbh | Method and device for storing a computer program in a program memory of a control unit |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6014345A (en) * | 1983-07-05 | 1985-01-24 | Fuji Xerox Co Ltd | Protecting system of program runaway |
| JPS60112148A (en) * | 1983-11-24 | 1985-06-18 | Mitsubishi Electric Corp | Memory device |
| JPS61264444A (en) * | 1985-05-20 | 1986-11-22 | Mitsubishi Electric Corp | Data processing method of central processing unit |
-
1986
- 1986-12-18 JP JP61300067A patent/JPS63155236A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6014345A (en) * | 1983-07-05 | 1985-01-24 | Fuji Xerox Co Ltd | Protecting system of program runaway |
| JPS60112148A (en) * | 1983-11-24 | 1985-06-18 | Mitsubishi Electric Corp | Memory device |
| JPS61264444A (en) * | 1985-05-20 | 1986-11-22 | Mitsubishi Electric Corp | Data processing method of central processing unit |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0359849A1 (en) * | 1988-09-21 | 1990-03-28 | Robert Bosch Gmbh | Method of detecting program counter malfunction |
| JPH03167634A (en) * | 1989-11-28 | 1991-07-19 | Nec Niigata Ltd | Protection mechanism for driver circuit |
| JPH0482732U (en) * | 1990-11-28 | 1992-07-17 | ||
| US7246206B2 (en) | 2002-06-28 | 2007-07-17 | Robert Bosch Gmbh | Method and device for storing a computer program in a program memory of a control unit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6028015B2 (en) | information processing equipment | |
| JP2018526720A5 (en) | ||
| JPS63155236A (en) | Detecting method for runaway of software | |
| JP2848060B2 (en) | Programmable controller and sequence control method | |
| JP2880658B2 (en) | Runaway detection device for multitask program | |
| WO1990007739A1 (en) | Control method for robot | |
| JPH07105043A (en) | Program error detector | |
| JPH08249019A (en) | Arithmetic device and programmable controller using the arithmetic device | |
| JPS5835648A (en) | Program execution controlling system | |
| JPS6232540A (en) | Information processor | |
| JPS638841A (en) | Interruption accepting system | |
| JPS60126731A (en) | Program control method | |
| JPH02110744A (en) | Information processor | |
| JPH04290130A (en) | Error control system of processor | |
| JPH02260082A (en) | Computer system | |
| JPH0715662B2 (en) | Information processing device for prefetching instructions | |
| JPH04178734A (en) | Program language processor | |
| JPH0335323A (en) | Control system for execution of instruction | |
| JPH0323597A (en) | ROM random writing device | |
| JPS5835293B2 (en) | Program frequency monitoring method | |
| JPH0782447B2 (en) | DMA data transfer control device | |
| JPH0378833A (en) | Data processor using list processing language | |
| JPS61202239A (en) | Information processor | |
| JPH02187822A (en) | System for managing postmortem processing | |
| JPS5968067A (en) | Specifying system for number of run steps |