JPS63217436A - Abort dump collecting system for program - Google Patents

Abort dump collecting system for program

Info

Publication number
JPS63217436A
JPS63217436A JP62051674A JP5167487A JPS63217436A JP S63217436 A JPS63217436 A JP S63217436A JP 62051674 A JP62051674 A JP 62051674A JP 5167487 A JP5167487 A JP 5167487A JP S63217436 A JPS63217436 A JP S63217436A
Authority
JP
Japan
Prior art keywords
task
segment
tasks
child
information
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
JP62051674A
Other languages
Japanese (ja)
Inventor
Naomi Yamamura
山村 直美
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 JP62051674A priority Critical patent/JPS63217436A/en
Publication of JPS63217436A publication Critical patent/JPS63217436A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the dump of an undesired task occupied segment by securing such a constitution where a slave task information to an abnormal end processing part whether it collects the task occupied segments of its own task as the dump information after the start of its execution. CONSTITUTION:When it is considred that the contents of the task occupied segments of slave tasks 23 and 24 forming a program 21 are needed for analysis of the abnormal end causes of both tasks 23 and 24, this fact is informed to an abnormal end processing part after both tasks 23 and 24 started their execution. When said contents are not needed, this fact is also information to the abnormal end processing part after the tasks 23 and 24 started their executions. Thus it is decided whether the task occupied segment should be collected or not when the both tasks 23 and 24 end in an abnormal state. At the same time, the information on the control of the tasks 23 and 24 are collected among those contents of the segment shared among tasks when both tasks 23 and 24 end abnormally. This it is possible to select the collection or non-collection of task occupied segment for each of both tasks 23 and 24. Then the output of the segment shared by tasks just by collecting the desired information only.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラムのアポートダンプ採取方式に関し、
特に多重タスクにおける子タスクの異常終了時における
アポートダンプ採取方式に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a program aport dump collection method,
In particular, it relates to an aport dump collection method when a child task in a multiple task terminates abnormally.

〔従来の技術〕[Conventional technology]

従来、親タスクと一つ以上の子タスクとで構成される多
重タスク構成のプログラムにおけるアポートダンプ採取
方式としては、異常終了したタスクが親タスクであれば
そのタスク間共有セグメント及びそのタスク専有セグメ
ントを採取し、異常終了したタスクが子タスクであれば
そのタスク専有セグメントを採取する方式が知られてい
る。これは、多くの場合従来は、親タスクの異常終了原
因の解析にはその専有セグメントと共有セグメントの内
容があれば足り、子タスクの異常終了原因の解析にはそ
の専有セグメントの内容があれば足りると考えられてい
たことによる。
Conventionally, the aport dump collection method for a program with a multi-task configuration consisting of a parent task and one or more child tasks is to collect the inter-task shared segment and the task exclusive segment if the abnormally terminated task is the parent task. There is a known method in which a task exclusive segment is collected, and if the abnormally terminated task is a child task, the task exclusive segment is collected. This is because in most cases, conventionally, to analyze the cause of a parent task's abnormal termination, it is sufficient to have the contents of its private segment and shared segment, and to analyze the cause of a child task's abnormal termination, it is sufficient to have the contents of its private segment. Because it was considered sufficient.

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

上述した従来のアポートダンプ採取方式において、子タ
スクが異常終了したとき、無条件でその子タスクが専有
しているタスク専有セグメントが採取され出力されてい
た。これは前述したように、子タスクの異常終了原因の
解析にはその専有セグメントの内容があれば通常は足り
ると考えられていたことによる。しかし、共有セグメン
トには子タスクの制御に関する情報が含まれているので
、共有セグメントの内容も採取した方が、子タスクの異
常終了原因の解析が容易になるものである。
In the conventional port dump collection method described above, when a child task terminates abnormally, the task exclusive segment owned by the child task is unconditionally collected and output. This is because, as mentioned above, it was thought that the contents of the private segment would normally be sufficient to analyze the cause of abnormal termination of a child task. However, since the shared segment contains information regarding the control of the child task, it is easier to analyze the cause of the abnormal termination of the child task if the contents of the shared segment are also collected.

然るに従来の方式では、−律にタスク専有セグメントの
採取しか行なっていなかったので、効率良く原因を解析
することができない場合が生じる欠点があった。また、
子タスクによっては専有セグメントの内容を知らなくて
も、共有セグメントの内容を知れば異常終了原因の解析
が可能なものもあり(例えば大部分の情報が共有セグメ
ントにあり、専有セグメントにはその写しなどがある場
合)、そのような場合でも従来方式では一律にタスク専
有セグメントの採取が行なわれるので、特に子タスクが
専有セグメントとして容量の大きな大セグメントを有し
ているときに異常終了すると、大量のダンプ情報が出力
されてしまう欠点がある。
However, in the conventional method, only the task exclusive segment was collected, which had the disadvantage that the cause could not be efficiently analyzed. Also,
For some child tasks, it is possible to analyze the cause of abnormal termination by knowing the contents of the shared segment without knowing the contents of the proprietary segment (for example, most of the information is in the shared segment, and a copy of it is in the proprietary segment). Even in such cases, the conventional method collects task-only segments uniformly, so if a child task terminates abnormally when it has a large segment with a large capacity as a private segment, a large amount of data will be collected. The disadvantage is that dump information is output.

本発明はこのような事情に鑑みて為されたものであり、
その目的は、子タスク毎にタスク専有セグメントの採取
の有無の選択が可能であり、且つ、タスク間共有セグメ
ントについても必要な情報だけを採取して出力するプロ
グラムのアポートダンプ採取方式を提供することにある
The present invention has been made in view of these circumstances,
The purpose is to provide an aport dump collection method for a program that allows selection of whether or not to collect task-specific segments for each child task, and also collects and outputs only necessary information regarding inter-task shared segments. It is in.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記目的を達成するために、多重タスク構成の
プログラムにおける子タスクの異常終了時のアポートダ
ンプ採取方式において、前記子タスクはその実行開始後
、自タスクが異常終了した際に自タスクのタスク専有セ
グメントをダンプ情報として採取するか否かを異常終了
処理部に通知するように構成され、 前記異常終了処理部は、前記子タスクが異常終了する際
、前記通知により前記子タスクのタスク専有セグメント
の採取が指示されている場合に限り前記タスク専有セグ
メントの採取を行ない、且つ、前記子タスクのタスク間
共有セグメントのうち前記子タスクの制御に関する情報
を採取する構成を有する。
In order to achieve the above object, the present invention provides an aport dump collection method when a child task abnormally terminates in a program with a multi-task configuration. The abnormal termination processing unit is configured to notify the abnormal termination processing unit whether or not to collect the task exclusive segment as dump information, and when the child task terminates abnormally, the abnormal termination processing unit performs task exclusive use of the child task by the notification. The task-specific segment is collected only when segment collection is instructed, and information related to the control of the child task is collected from among the inter-task shared segments of the child task.

〔作用〕[Effect]

子タスクの異常終了原因の解析にそのタスク専有セグメ
ントの内容が必要と思われるときは、その子タスクが実
行開始後その旨を異常終了処理部に通知するように構成
し、反対に不要と思われるときはその子タスクが実行開
始後その旨を異常終了処理部に通知するように構成して
おくことにより、その子タスクの異常終了時にタスク専
有セグメントの採取が行なわれるか否かが決定される。
If the contents of the task-specific segment are considered necessary to analyze the cause of abnormal termination of a child task, the contents of the task-specific segment are configured to notify the abnormal termination processing module after the child task starts execution, and conversely, if the contents of the task-specific segment are deemed to be unnecessary. In this case, by configuring the child task to notify the abnormal termination processing unit of this fact after the child task starts execution, it is determined whether or not the task exclusive segment is to be collected when the child task abnormally terminates.

また、子タスクの異常終了時、タスク間共有セグメント
の内容のうち、その子タスクの制御に関する情報が採取
される。
Further, when a child task terminates abnormally, information related to control of the child task is collected from among the contents of the inter-task shared segment.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第2図は多重タスク構成のプログラム(PR○G)21
の構成例を示す図であり、プログラム21は、親タスク
(MA I N) 22と、子タスク(SUBX)23
と、子タスク(SUBY)24とから構成されている。
Figure 2 shows a program (PR○G) 21 with a multi-task configuration.
is a diagram showing a configuration example of a program 21, a parent task (MAIN) 22 and a child task (SUBX) 23.
and a child task (SUBY) 24.

第3図は上記多重タスク構成のプログラム21のアドレ
ス空間を示す図であり、親タスク22はタスクに固有な
タスク専有セグメント34とタスク間の共有セグメント
であるタスク間共有セグメント37とを有し、子タスク
23はタスク専有セグメント35とタスク間共有セグメ
ント37とを有し、子タスク24はタスク専有セグメン
ト36とタスク間共有セグメント37とを存している。
FIG. 3 is a diagram showing the address space of the program 21 having the multi-task configuration, in which the parent task 22 has a task exclusive segment 34 unique to the task and an inter-task shared segment 37 which is a shared segment between tasks. The child task 23 has a task exclusive segment 35 and an inter-task shared segment 37, and the child task 24 has a task exclusive segment 36 and an inter-task shared segment 37.

第1図は本発明の実施例のブロック図であり、以下各図
を参照して本実施例の構成および動作を説明する。
FIG. 1 is a block diagram of an embodiment of the present invention, and the configuration and operation of this embodiment will be explained below with reference to each figure.

プログラム21の実行を開始させるに際しては、その前
に、プログラム21を構成する子タスク23゜24の異
常終了時にそのタスク専有セグメント35゜36をダン
プ情報として採取するか否かを例えばパラメータで予め
指定しておく。以下では説明の便宜上、子タスク23に
ついてはタスク専有セグメント35の採取を指示するパ
ラメータを入力し、子りスフ24についてはタスク専有
セグメント36の採取を指示しないパラメータを入力し
たものとして説明する。
Before starting the execution of the program 21, for example, specify in advance with a parameter whether or not the task exclusive segment 35-36 is to be collected as dump information when the child task 23-24 constituting the program 21 terminates abnormally. I'll keep it. For convenience of explanation, the following description assumes that a parameter that instructs the collection of the task exclusive segment 35 is input for the child task 23, and a parameter that does not instruct the collection of the task exclusive segment 36 is input for the child task 24.

多重タスク構成のプログラム21の実行が開始されると
、第1図に示すように、先ず親タスク22の実行が開始
される(SL)、次に親タスク22において子タスク例
えば子タスク23を起動する命令によって子タスク23
の起動が行なわれ(32)、子タスク23の実行が開始
される(S3)。
When the execution of the program 21 having a multi-task configuration is started, as shown in FIG. Child task 23
is activated (32), and execution of the child task 23 is started (S3).

子タスク23では、先ず自タスクが異常終了したときに
、自タスクに固有なセグメント35のダンプを採取する
か否かを自タスク23中に設けられたタスク専有セグメ
ントの採取指示処理によって、異常終了処理部11に与
える(S4)、いまの例では、子タスク23はタスク専
有セグメント35の採取を指示し、異常終了処理部11
はこの情報を保持する。
The child task 23 first determines whether or not to collect a dump of the segment 35 unique to the self-task when the self-task terminates abnormally, using the task-specific segment collection instruction processing provided in the self-task 23. In the present example, the child task 23 instructs the collection of the task exclusive segment 35 to the processing unit 11 (S4), and
retains this information.

同様に、親タスク22において子タスク24を起動する
命令によって子タスク24が起動され、子タスク24が
実行開始すると、子タスク24は自タスク中に設けられ
たタスク専有セグメントの採取指示処理(S4)によっ
て、異常終了処理部11に、いまの例ではタスク専有セ
グメント36を採取しない指示を出し、異常終了処理部
11はこの情報を保持する。
Similarly, when the child task 24 is activated by a command to activate the child task 24 in the parent task 22 and the child task 24 starts execution, the child task 24 performs the collection instruction process (S4 ) instructs the abnormal termination processing unit 11 not to collect the task exclusive segment 36 in this example, and the abnormal termination processing unit 11 retains this information.

さて、子タスク23の実行中に異常が発生すると(35
)、異常終了処理部11の処理が開始され、タスク専有
セグメントの採取判定処理によって子タスク23に固有
なセグメント35のダンプを採取するか否かが判定され
(S6)、いまの例では採取有りが指示されているので
、タスク専有セグメント35のダンプの採取が行なわれ
る(37)、また、タスク間共有セグメントの必要情報
採取処理S8によって、タスク間共有セグメント37の
内容のうち、子タスク23の制御に関する情報だけが必
要情報として採取される。そして、このタスク間共有セ
グメント37の必要情報採取処理によるダンプの採取が
終了すると、異常終了処理部11の処理が完了し、子タ
スク23の実行が終了させられる(S9)。
Now, if an error occurs during the execution of child task 23 (35
), the processing of the abnormal termination processing unit 11 is started, and it is determined whether or not to collect a dump of the segment 35 unique to the child task 23 by the task exclusive segment collection determination process (S6), and in the present example, collection is possible. is instructed, a dump of the task exclusive segment 35 is collected (37). Also, by the inter-task shared segment necessary information collection process S8, the contents of the inter-task shared segment 37 are collected from the child task 23. Only information related to control is collected as necessary information. When the collection of the dump by the necessary information collection process of the inter-task shared segment 37 is completed, the processing of the abnormal termination processing unit 11 is completed, and the execution of the child task 23 is ended (S9).

その後、親タスク22の実行が終了すると(S to)
、異常終了処理部11で採取された情報つまり子タスク
23のタスク専有セグメント35の内容とタスク間共有
セグメント37中の必要情報とが、アポートダンプ出力
手段によってダンプ情報記憶装置等に出力される(Sl
l) 。
After that, when the execution of the parent task 22 is finished (S to)
The information collected by the abnormal termination processing unit 11, that is, the contents of the task exclusive segment 35 of the child task 23 and the necessary information in the inter-task shared segment 37, are output to a dump information storage device or the like by the aport dump output means ( Sl
l).

他方、タスク専有セグメントの採取指示を行なわなかっ
た子タスク24に異常が発生した場合、異常終了処理部
11のタスク専有セグメントの採取判定処理で子タスク
24に固有なセグメント35のダンプを採取しないこと
が判定され(36)、タスク間共有セグメントの必要情
報採取処理S8によって、タスク間共有セグメント37
の内容のうち、子タスク24の制御に関する情報だけが
必要情報として採取され、親タスク22の実行終了後異
常終了処理部11で採取されたタスク間共有セグメント
37中の必要情報だけが、アポートダンプ情報として出
力され、タスク専有セグメント36の内容は出力されな
い。
On the other hand, if an abnormality occurs in a child task 24 that has not been instructed to collect a task-only segment, a dump of the segment 35 unique to the child task 24 is not collected in the task-only segment collection determination process of the abnormal termination processing unit 11. is determined (36), and by the inter-task shared segment necessary information collection process S8, the inter-task shared segment 37
Among the contents, only the information related to the control of the child task 24 is collected as necessary information, and only the necessary information in the inter-task shared segment 37 collected by the abnormal termination processing unit 11 after the execution of the parent task 22 is collected as the aport dump. It is output as information, and the contents of the task exclusive segment 36 are not output.

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

以上説明したように、本発明は、子タスク毎にその異常
終了時にタスク専有セグメントの採取を行なうか否かを
決定することができるので、異常終了原因の解析にタス
ク専有セグメントの内容が不要な子タスクについては予
めその採取を指示しないことにより、不要なタスク専有
セグメントのダンプをなくすことがで、きる効果がある
As explained above, the present invention makes it possible to decide for each child task whether or not to collect a task-only segment at the time of its abnormal termination, so that the contents of the task-only segment are not necessary for analyzing the cause of abnormal termination. By not instructing child tasks to be collected in advance, there is an effect that unnecessary dumping of task exclusive segments can be eliminated.

また、子タスクの異常終了時にタスク間共有セグメント
の内容の内、その子タスクの制御に関する情報を採取す
るようにしたので、子タスクの異常終了原因の解析を効
率良く行なうことができる効果がある。
Furthermore, since information related to the control of the child task is collected from the contents of the inter-task shared segment when a child task terminates abnormally, the cause of the abnormal termination of the child task can be efficiently analyzed.

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

第1図は本発明の実施例の構成図、 第2図は多重タスク構成のプログラムの構成例を示す図
および、 第3図は多重タスク構成のプログラムのアドレス空間を
示す図である。 図において、81〜311は処理ステップ、11・・・
異常終了処理部、21・・・多重タスク構成のプログラ
ム、22・・・親タスク、23.24・・・子タスク、
34.35゜36・・・タスク専有セグメント、37・
・・タスク間共有セグメント。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing an example of the structure of a program with a multi-task structure, and FIG. 3 is a diagram showing an address space of a program with a multi-task structure. In the figure, 81 to 311 are processing steps, 11...
Abnormal termination processing unit, 21... Program with multi-task configuration, 22... Parent task, 23.24... Child task,
34.35°36...Task exclusive segment, 37.
...A shared segment between tasks.

Claims (1)

【特許請求の範囲】 多重タスク構成のプログラムにおける子タスクの異常終
了時のアポートダンプ採取方式において、前記子タスク
はその実行開始後、自タスクが異常終了した際に自タス
クのタスク専有セグメントをダンプ情報として採取する
か否かを異常終了処理部に通知するように構成され、 前記異常終了処理部は、前記子タスクが異常終了する際
、前記通知により前記子タスクのタスク専有セグメント
の採取が指示されている場合に限り前記タスク専有セグ
メントの採取を行ない、且つ、前記子タスクのタスク間
共有セグメントのうち前記子タスクの制御に関する情報
を採取することを特徴とするプログラムのアポートダン
プ採取方式。
[Claims] In an aport dump collection method when a child task abnormally terminates in a program with a multi-task configuration, the child task dumps the task exclusive segment of the self-task when the self-task terminates abnormally after starting its execution. The abnormal termination processing unit is configured to notify whether or not to collect the information as information to an abnormal termination processing unit, and the abnormal termination processing unit is configured to instruct collection of the task exclusive segment of the child task by the notification when the child task terminates abnormally. A method for collecting an aport dump of a program, characterized in that the task exclusive segment is collected only when the task is executed, and information related to the control of the child task is collected from the inter-task shared segment of the child task.
JP62051674A 1987-03-06 1987-03-06 Abort dump collecting system for program Pending JPS63217436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62051674A JPS63217436A (en) 1987-03-06 1987-03-06 Abort dump collecting system for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62051674A JPS63217436A (en) 1987-03-06 1987-03-06 Abort dump collecting system for program

Publications (1)

Publication Number Publication Date
JPS63217436A true JPS63217436A (en) 1988-09-09

Family

ID=12893427

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62051674A Pending JPS63217436A (en) 1987-03-06 1987-03-06 Abort dump collecting system for program

Country Status (1)

Country Link
JP (1) JPS63217436A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007265137A (en) * 2006-03-29 2007-10-11 Oki Electric Ind Co Ltd Multi-task processing method and multi-task processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007265137A (en) * 2006-03-29 2007-10-11 Oki Electric Ind Co Ltd Multi-task processing method and multi-task processing apparatus

Similar Documents

Publication Publication Date Title
JPS60136833A (en) Switching method of operating system
JPS63217436A (en) Abort dump collecting system for program
JP3143330B2 (en) Programmable controller
JP2522057B2 (en) Distributed control system
EP0738969B1 (en) System starter unit and method
JPS61114345A (en) Diagnosis system of information processor
JPH10320201A (en) Computer system, information processing method and recording medium
JP3149904B2 (en) OS switching device
JPS63238619A (en) Terminal state control system
JPH03231338A (en) Control system for memory dump area
JPS62212743A (en) Memory dump system
JP2551075B2 (en) Overlay structure program execution method
JPS6371761A (en) System for defining system condition of online system
JPH0350633A (en) Post-processing system for stall program
JP2020021255A (en) Numerical control device
JPH0426503B2 (en)
JPS62274439A (en) Monitoring system for program under execution
JPS5822765B2 (en) Program loading method in electronic computer system
JPH06250870A (en) Digital signal processor
JPH09305431A (en) Debugging sentence acquiring method
JPH0311431A (en) Overlay system
JPH02129721A (en) Software constructing system
JPH01253039A (en) Residence time monitoring system for job
JPS61168010A (en) Numerical control device
JPH06250732A (en) Programmable controller