CN101175109A - System abnormal information processing method and device - Google Patents
System abnormal information processing method and device Download PDFInfo
- Publication number
- CN101175109A CN101175109A CNA2006101504504A CN200610150450A CN101175109A CN 101175109 A CN101175109 A CN 101175109A CN A2006101504504 A CNA2006101504504 A CN A2006101504504A CN 200610150450 A CN200610150450 A CN 200610150450A CN 101175109 A CN101175109 A CN 101175109A
- Authority
- CN
- China
- Prior art keywords
- error detection
- detection module
- error
- module
- operation module
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a treatment method and a device for system abnormal information. At least one operation module of the system registers the corresponding error detection module. The system comprises an error recording interface for recording the abnormal information. When the system detects the abnormal condition, the system calls the error detection module to test the error of the corresponding operation module and records the test result to the record area via the error recording interface. The invention tests the possible and supposed error during the abnormal situation of system and records the abnormal result after test, thereby assuring of finding the real source of error after the restart of the system.
Description
Technical field
The present invention relates to the system mistake detection range, relate in particular to a kind of system abnormal information processing method and device.
Background technology
Software systems are because huge leading to errors constantly now.For positioning program error, each system development a lot of positioning means.Such as in order to detect memory overwriting, internal memory end to end portion label, when discharging, judge.
And in a lot of communication apparatus, because unattended operation, unusual back horse back is restarted the assurance business and can be restarted.Along with restarting, possible information has all disappeared.For the energy orientation problem, a lot of systems all have a module to carry out current running environment record.
But in case wrong the diffusion is difficult to search real wrong root after causing makeing mistakes.Rewritten the internal memory of B program such as A program error memory overwriting, but system does not make mistakes when the A program running.During B program running by the time, owing to internal memory is made mistakes by rewriting, but the error message of at this moment seeing is B.Why make mistakes as for B and then to have no way of learning; And the A program also can't detect the A program error owing to also do not discharge internal memory.If at this moment the record running environment, what obtain is the mistake of B, rather than the mistake of A, thus cause analyzing invalid.
Therefore, need the abnormal information collection method before a kind of the deadlock, help the real origin that notes abnormalities, thereby quick positioning question is accelerated the system development debugging and the progress of correcting mistakes.
Summary of the invention
Main purpose of the present invention is to provide a kind of system abnormal information processing method and device, is used for unusual back detection mistake occurring and preserving abnormal information in system, thereby guarantees also can find real wrong root after system restarts.
To achieve these goals, according to a first aspect of the invention, the invention provides a kind of system abnormal information processing method.System abnormal information processing method may further comprise the steps:
Step S102, at least one the operation module registration corresponding error detection module in the system;
Step S104 is provided with the error logging interface, is used for recording exceptional information;
Step S106, when system detects when unusual, the call error detection module detects the mistake of pairing operation module, and by the error logging interface testing result is recorded recording areas.
Alternatively, in step S102, in the system the operation module that might lead to system abnormity all register the corresponding error detection module.
Alternatively, in step S102, corresponding at least one error detection module of operation module registration, a kind of type of error of the corresponding operation of each error detection module module.
In step S106, call all error detection module in order successively, if the current error detection module of calling detects mistake, then by error logging interface misregistration information.
After step S106, the testing result that preservation or transmission are write down, system restarts then.
To achieve these goals, according to a second aspect of the invention, the invention provides a kind of system exception information processor.The system exception information processor comprises: registering unit, and at least one the operation module that is used for system is registered corresponding error detection module; The error logging interface is used for recording exceptional information; Exception processing unit is used for detecting when unusual when system, and the call error detection module detects the mistake of pairing operation module, and by the error logging interface testing result is recorded recording areas.
Registering unit can be used for making system the operation module that might lead to system abnormity all register the corresponding error detection module.
Registering unit can be used to make corresponding at least one error detection module of operation module registration, a kind of type of error of the corresponding operation of each error detection module module.
Exception processing unit calls all error detection module in order successively, if the current error detection module of calling detects mistake, then by error logging interface misregistration information.
Exception processing unit is preserved or is sent the testing result that is write down after error detection and record are finished, and system is restarted.
By technique scheme, the present invention all detects all possible errors of supposition in advance when system exception, and detection is thought that unusual result carries out recorded and stored, has guaranteed also can find after system restarts real wrong root.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to system abnormal information processing method of the present invention;
Fig. 2 is the block diagram according to system exception information processor of the present invention; And
Fig. 3 collects flow chart according to the abnormal information of the embodiment of the invention.
Embodiment
Describe the present invention below with reference to the accompanying drawings in detail.
With reference to Fig. 1, system abnormal information processing method according to the present invention may further comprise the steps:
Step S102, at least one the operation module registration corresponding error detection module in the system.
Alternatively, in the system the operation module that might lead to system abnormity all register the corresponding error detection module.
Alternatively, corresponding at least one error detection module of operation module registration, a kind of type of error of the corresponding operation of each error detection module module.
Step S104 is provided with the error logging interface, is used for recording exceptional information.
Step S106, when system detects when unusual, the call error detection module detects the mistake of pairing operation module, and by the error logging interface testing result is recorded recording areas.
Call all error detection module in order successively, if the current error detection module of calling detects mistake, then by error logging interface misregistration information.
After step S106, the testing result that preservation or transmission are write down, system restarts then.
With reference to Fig. 2, system exception information processor 10 according to the present invention comprises: registering unit 20, and at least one the operation module that is used for system is registered corresponding error detection module; Error logging interface 30 is used for recording exceptional information; Exception processing unit 40 is used for detecting when unusual when system, and the call error detection module detects the mistake of pairing operation module, and by error logging interface 30 testing result is recorded recording areas.
Alternatively, registering unit 20 be used for making system the operation module that might lead to system abnormity all register the corresponding error detection module.Registering unit 20 is used to make corresponding at least one error detection module of operation module registration, a kind of type of error of the corresponding operation of each error detection module module.
Exception processing unit 40 calls all error detection module in order successively, if the current error detection module of calling detects mistake, then by error logging interface 30 misregistration information.
Exception processing unit 40 is preserved or is sent the testing result that is write down after error detection and record are finished, and system is restarted.
The present invention registers by a kind of error detection function, when system exception all possible errors of supposition is in advance all detected, and detection is thought that unusual result carries out recorded and stored, guarantees also can find after system restarts real wrong root.
A software is divided into a lot of modules, and each module all has the wrong unusual of oneself.When system exception,, probably can find real unusual if unusually all detect one time all possible.
The invention provides a kind of method, an error detection function registration is provided, the error logging interface, mistake is preserved.Each module is registered the possible abnormality detection function of this module by this interface.Whether can register a function such as memory modules, being used to detect internal memory that current system distributed has and crosses the border; A residue situation that is used to detect the internal memory of current system is used to judge the current situations such as low memory that whether exist.Whether communication module detects the current network connection state good.Whether business module can detect the significant variable value of this module accurate.
Think have when unusual when each error detection function detects, call error logging function provided by the invention, by agreement form writing information, such as the error module name, error detection function name, type of error, the parameter of agreement etc.The error logging function is saved in this information in the place of appointment.
System detects unusual needs restart before, call all registered error detection functions in order.Finish when all detection functions move, system writes the information of preserving testing result local file or sends to other place by network and preserves, and normally restarts then.
With reference to Fig. 3, the present invention specifically implements as follows:
1, system provides error detection function registration interface.Each module provides detection function and registration as required.
2, system provides the error logging interface.Each module is undertaken record to relevant information by record interface detecting when unusual.
3, system detect restart unusually before, call all registered error detection functions.
4, system preserves the record result that the error logging interface provides.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a system abnormal information processing method is characterized in that, may further comprise the steps:
Step S102, at least one the operation module registration corresponding error detection module in the system;
Step S104 is provided with the error logging interface, is used for recording exceptional information;
Step S106 when system detects when unusual, calls described error detection module, detects the mistake of pairing operation module, and by described error logging interface testing result is recorded recording areas.
2. system abnormal information processing method according to claim 1 is characterized in that, in step S102, in the system the operation module that might lead to system abnormity all register the corresponding error detection module.
3. system abnormal information processing method according to claim 1, it is characterized in that, in step S102, corresponding at least one error detection module of operation module registration, a kind of type of error of the corresponding described operation module of each described error detection module.
4. according to each described system abnormal information processing method in the claim 1 to 3, it is characterized in that, in step S106, call all described error detection module in order successively, if the current described error detection module of calling detects mistake, then by described error logging interface misregistration information.
5. according to each described system abnormal information processing method in the claim 1 to 3, it is characterized in that, after step S106, the testing result that preservation or transmission are write down, system restarts then.
6. a system exception information processor is characterized in that, comprising:
Registering unit, at least one the operation module that is used for system is registered corresponding error detection module;
The error logging interface is used for recording exceptional information;
Exception processing unit is used for detecting when unusual when system, calls described error detection module, detects the mistake of pairing operation module, and by described error logging interface testing result is recorded recording areas.
7. system exception information processor according to claim 6 is characterized in that,
Described registering unit be used for making system the operation module that might lead to system abnormity all register the corresponding error detection module.
8. system exception information processor according to claim 6 is characterized in that,
Described registering unit is used to make corresponding at least one error detection module of operation module registration, a kind of type of error of the corresponding described operation module of each described error detection module.
9. according to each described system exception information processor in the claim 6 to 8,
It is characterized in that described exception processing unit calls all described error detection module in order successively, if the current described error detection module of calling detects mistake, then by described error logging interface misregistration information.
10. according to each described system exception information processor in the claim 6 to 8,
It is characterized in that described exception processing unit is preserved or sent the testing result that is write down, and system is restarted after error detection and record are finished.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101504504A CN101175109B (en) | 2006-10-31 | 2006-10-31 | System abnormal information processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101504504A CN101175109B (en) | 2006-10-31 | 2006-10-31 | System abnormal information processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101175109A true CN101175109A (en) | 2008-05-07 |
CN101175109B CN101175109B (en) | 2011-05-11 |
Family
ID=39423360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006101504504A Expired - Fee Related CN101175109B (en) | 2006-10-31 | 2006-10-31 | System abnormal information processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101175109B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428333A (en) * | 2012-05-15 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, server and error restoration method |
CN112486719A (en) * | 2020-12-14 | 2021-03-12 | 上海悦易网络信息技术有限公司 | Method and equipment for RPC interface call failure processing |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1180551C (en) * | 2002-05-23 | 2004-12-15 | 华为技术有限公司 | Fault location method of program mode |
CN1275155C (en) * | 2002-08-24 | 2006-09-13 | 中兴通讯股份有限公司 | Abnormal failure location method in embedded operationi system |
CN1295600C (en) * | 2002-10-25 | 2007-01-17 | 华为技术有限公司 | Windows program abnormality capturing and positioning method |
-
2006
- 2006-10-31 CN CN2006101504504A patent/CN101175109B/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428333A (en) * | 2012-05-15 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, server and error restoration method |
CN103428333B (en) * | 2012-05-15 | 2015-12-16 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, server and errors repair method |
CN112486719A (en) * | 2020-12-14 | 2021-03-12 | 上海悦易网络信息技术有限公司 | Method and equipment for RPC interface call failure processing |
Also Published As
Publication number | Publication date |
---|---|
CN101175109B (en) | 2011-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6944796B2 (en) | Method and system to implement a system event log for system manageability | |
KR101331935B1 (en) | Method and system of fault diagnosis and repair using based-on tracepoint | |
CN108038039B (en) | Method for recording log and micro-service system | |
US20190087251A1 (en) | Runtime failure detection and correction | |
CN104899111A (en) | Method and system for dealing with kernel panic of home gateway system | |
CN106021014A (en) | Memory management method and device | |
CN105159819A (en) | Method and system for recording kernel exception stack and debugging information | |
CN112231130B (en) | Method, system, equipment and medium for positioning fault according to log | |
CN107590017B (en) | Detection method and device for electronic equipment | |
CN101175109B (en) | System abnormal information processing method and device | |
CN110888731A (en) | Route data acquisition method, device, equipment and storage medium | |
CN114546881A (en) | Application software testing method, electronic device and computer readable storage medium | |
CN114003417A (en) | Method, device and storage medium for realizing automatic unloading of RAID card fault | |
CN105743725A (en) | Method and device for testing application programs | |
CN105159810B (en) | The method and device that the BIOS of computer system is tested | |
CN110688173B (en) | Positioning method and device of components in cross-platform interface framework and electronic equipment | |
CN112346918A (en) | Method and application for assisting waveform debug in chip verification | |
US6715103B1 (en) | Automatic fault diagnostic network system and automatic fault diagnostic method for networks | |
CN100487669C (en) | Locating method and system for repeated memory release | |
CN102023916B (en) | Computer system detection method | |
CN105391602B (en) | A kind of data acquisition test method and apparatus | |
CN100561953C (en) | A kind of method of recording and diagnosing data | |
CN106933545A (en) | Application system and its starting protection method and device | |
CN117609024A (en) | Method and device for automatically positioning abnormal part, electronic equipment and storage medium | |
CN115416593A (en) | Vehicle restart fault monitoring method and device, vehicle and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110511 Termination date: 20191031 |