CN101060686B - A method and device for the anomaly diagnosis and error playback in a mobile terminal - Google Patents

A method and device for the anomaly diagnosis and error playback in a mobile terminal Download PDF

Info

Publication number
CN101060686B
CN101060686B CN200710111337XA CN200710111337A CN101060686B CN 101060686 B CN101060686 B CN 101060686B CN 200710111337X A CN200710111337X A CN 200710111337XA CN 200710111337 A CN200710111337 A CN 200710111337A CN 101060686 B CN101060686 B CN 101060686B
Authority
CN
China
Prior art keywords
environmental information
information
unusual
unit
portable terminal
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.)
Active
Application number
CN200710111337XA
Other languages
Chinese (zh)
Other versions
CN101060686A (en
Inventor
陈岩
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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN200710111337XA priority Critical patent/CN101060686B/en
Publication of CN101060686A publication Critical patent/CN101060686A/en
Application granted granted Critical
Publication of CN101060686B publication Critical patent/CN101060686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosed method for reproducing the abnormal diagnosis and error environment in mobile terminal comprises: detecting abnormal condition, extracting and recording current environment message, and thereby reproducing the environment message according to record. This invention tracks system error efficiently to make maintenance staff analyze and repair the error conveniently.

Description

Abnormity diagnosis and wrong environment reproduce in a kind of portable terminal method and device
Technical field
The present invention relates to abnormality detection and analytical technology, be meant abnormity diagnosis and wrong environment reproduce in a kind of portable terminal method and device especially.
Background technology
The portable terminal of present various standards all extensive use with evolution Reduced Instruction Set Computer system (ARM, Advanced RISC (Reduced Instruction Set Computer) Machines) is the baseband processor of kernel, on it, can realizes multiple task real-time operation system.But, in multiple task real-time operation system, all depend on (the JTAG of combined testing action group for unusual particularly some fatal unusual tracking and analysis always, Joint Test Action Group) debugging interface, when run into that some can't reappear for a long time unusual or occur at random be difficult to follow the tracks of unusual, the JTAG debugging just is difficult to prove effective.Owing to can't just can't analyze unusually effectively following the tracks of, and then also just can't repair to corresponding mistake to the mistake of exception throw.
Summary of the invention
In view of this, main purpose of the present invention is to provide method and the device that abnormity diagnosis and wrong environment reproduce in a kind of portable terminal, effectively to following the tracks of unusually and wrong environment being reappeared.
For achieving the above object, technical scheme of the present invention is achieved in that
The method of abnormity diagnosis and wrong environment reproduction in a kind of portable terminal, this method comprises: it is unusual to detect appearance, extracts and write down current environmental information, according to the environmental information of record, the environmental information when the reproduction appearance is unusual; Described environmental information comprises: evolution Reduced Instruction Set Computer system ARM register information or mission bit stream or Exception Type or abnormal patterns or stack information, or above combination in any; Environmental information when unusual appears in described reproduction, comprise steps A: display device and input equipment to portable terminal carry out initialization, after the initialization success, environmental information by display device displayed record successively, show the function of each input mode to the attendant, the attendant operates according to the function of input mode.
Wherein, describedly comprise unusually at least: undefined pattern, software interrupt pattern, prefetch mode, peek aborted pattern.
Wherein, when described environmental information comprised the ARM register information, the current ARM register information of described extraction was: obtain the ARM register information by visit ARM register; When described environmental information comprised mission bit stream, described extraction mission bit stream was: obtain mission bit stream by the current task signal; When described environmental information comprised Exception Type, described extraction Exception Type was: determine Exception Type by exception error vector or current process information; When described environmental information comprised abnormal patterns, described extraction abnormal patterns was: obtain abnormal patterns by the condition handler that reads ARM; When described environmental information comprised stack information, described extraction stack information was: the current stack register that reads when occurring unusually obtains stack information.
Wherein, further comprising before environmental information when unusual appears in described reproduction: carry out integrity check, during the integrity check success, continue to carry out and reappear the step that the environmental information when unusual occurs.
Wherein, further comprise step B after the described steps A: described environmental information is stored among the ROM of portable terminal.
Wherein, further comprise step C after the described step B: portable terminal normally starts, and the environmental information of storing among the ROM is write in the file system of portable terminal.
The device that abnormity diagnosis and wrong environment reproduce in a kind of portable terminal, it is characterized in that this device comprises: detecting unit, extraction unit, buffer unit and reproducing unit, wherein, whether described detecting unit is used for detecting and occurs unusually, sends notice to extraction unit detecting when unusual; Described extraction unit is used for extracting current environmental information from the notice of detecting unit, and the environmental information of extraction is provided to buffer unit; Described buffer unit is used for the environmental information that comes from extraction unit is carried out buffer memory; Described reproducing unit is used for obtaining the environmental information of buffer unit buffer memory, the environmental information when the reproduction appearance is unusual; Environmental information when unusual appears in described reproduction, comprise: display device and input equipment to portable terminal carry out initialization, after the initialization success, environmental information by display device displayed record successively, show the function of each input mode to the attendant, the attendant operates according to the function of input mode; Described environmental information comprises: ARM register information or mission bit stream or Exception Type or abnormal patterns or stack information.
Wherein, described reproducing unit comprises display unit, and further comprises: input unit, be used for providing input mode to the attendant, and operating personnel are operated according to input mode.
Among the present invention, detect and occur when unusual, extract and record current environment information, environmental information when reappearing unusual the generation according to the environmental information of record, effectively to following the tracks of unusually and reappearing, thereby make the attendant can be, and then the attendant can repair to the mistake of exception throw according to analysis result according to the environmental information of record to analyzing unusually.
Description of drawings
Fig. 1 is the unusual flow chart that reappears among the present invention;
The flow chart of environmental information when Fig. 2 occurs unusually for reappearing among the present invention;
Fig. 3 is unusual reproducer structural representation among the present invention.
Embodiment
Among the present invention, detect and occur extracting also record current environment information when unusual, thus the environmental information can reappear unusual the generation according to the environmental information of record the time, and then according to the environmental information of record to analyzing unusually.
Fig. 1 is the unusual flow chart that reappears among the present invention, and as shown in Figure 1, unusual concrete processing procedure of reappearing may further comprise the steps:
Step 101: it is unusual to detect appearance.4 kinds of exception error interrupt modes that can comprise ARM unusually, as undefined pattern (Undefined Mode), software interrupt pattern (SWI (SoftWare Interrupt) Mode), prefetch mode (Prefetch Mode), peek aborted pattern (Abort Mode), can also comprise other exception errors, as remove zero, operand for empty, internal memory overflows etc.
Step 102: extract and write down current environmental information.Environmental information is meant the relevant service data when appearance is unusual, can comprise ARM register information, mission bit stream, Exception Type, abnormal patterns, stack information etc.The ARM register can be visited at any time, therefore can obtain the ARM register information by the visit to the ARM register; Mission bit stream can obtain by current task (curr_task) signal; Exception Type can determine by exception error vector or current process information, the exception error vector is aimed at 4 kinds of exception error interrupt modes, and current process information is aimed at other exception errors; Abnormal patterns can obtain by the condition handler that reads ARM; Current stack register when stack information occurs unusually by reading obtains.
Step 103: when the environmental information when unusual need to reappear occurring, judge whether success of integrity check,, then continue execution in step 104 if successful; If failure finishes current flow process.Carrying out integrity check is can not carry out misoperation in order to guarantee, to the check of self whether normally carrying out.For software program, whether integrity check is exactly to check the program code of self to be distorted or destroy, if do not distorted or destroyed, and then integrity check success.
Step 104: according to the environmental information of record, the environmental information when the reproduction appearance is unusual.
Further, the attendant can be according to environmental information when unusual occurring to analyzing unusually of occurring, thereby the mistake of exception throw is repaired.
The concrete processing procedure that reappear to occur the environmental information when unusual in the step 104 is as shown in Figure 2:
Step 201: display device is carried out initialization, as display devices such as initialization LCD, if successful initialization then continues execution in step 202; If the initialization failure then finishes current flow process, finish further to show error message before the current flow process to the attendant.
Step 202: input equipment is carried out initialization, as keyboard is carried out initialization, if successful initialization then continues execution in step 203; If the initialization failure then finishes current flow process, finish further to show error message before the current flow process to the attendant.
Step 201 and step 202 do not have tangible execution sequence, more than are first execution in step 201, and then execution in step 202; Also can first execution in step 202, and then execution in step 201.
Step 203: show the function of each input mode to the attendant, so that the follow-up maintenance personnel operate.
Step 204: by the environmental information of display device displayed record successively, show ARM register information, mission bit stream, Exception Type, abnormal patterns, stack information etc. successively as display device, if successfully show successively, then realize occurring the reproduction of environmental information when unusual, continued execution in step 205 then; If show failure successively, then finish current flow process, finish can further show error message before the current flow process to the attendant.During the environmental information of displayed record successively, the attendant can operate by corresponding input mode, as operation such as advances, retreats.
Step 205: whether prompting the attendant need to store, and storage then continues execution in step 206 if desired; If do not need storage, then finish current flow process.
Step 206: the environmental information that will occur when unusual is stored among the ROM of portable terminal, if store successfully, then points out to the attendant and stores successfully; If the storage failure then finishes current flow process, finish further to show error message before the current flow process to the attendant.
Owing to occur when unusual, can't normally visit the file system of portable terminal, for example, and encrypted file system (EFS, Encrypting File System), therefore, the environmental information that occurs when unusual need be stored among the ROM.For the attendant can be obtained when these environmental informations of needs, just need to be stored in the environmental information of ROM when portable terminal normally starts, be written in the file system of portable terminal: concrete processing procedure is: read the environmental information of storing among the ROM, this environmental information is write the file system of portable terminal.In the specific implementation, can store 4 files, respectively storage: the environmental information that before showed specifically can be the ASCII character form; The task control block of current task (TCB, Task Main Controller) information specifically can be binary format, and TCB is used to store various states and the signal message relevant with current task; The TCB information of task management part (TMC, Task Main Controller) task specifically can be binary format; The TCB information of user interface (UI, User Interface) task specifically can be binary format.
Fig. 3 is unusual reproducer structural representation among the present invention, and as shown in Figure 3, unusual reproducer comprises detecting unit, extraction unit, buffer unit and reproducing unit.Wherein, whether detecting unit is used for detecting and occurs unusually, sends notice to extraction unit detecting when unusual; Extraction unit is used for extracting current environmental information from the notice of detecting unit, and the environmental information of extraction is provided to buffer unit; Buffer unit is used for the environmental information that comes from extraction unit is carried out buffer memory; Reproducing unit is used for obtaining the environmental information of buffer unit buffer memory, the environmental information when the reproduction appearance is unusual.Reproducing unit comprises display unit, is used for being convenient to the attendant environmental information being analyzed to attendant's display environment information.Reproducing unit can further comprise input unit, is used for providing input mode to the attendant, is convenient to the attendant and operates.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (8)

1. the method that abnormity diagnosis and wrong environment reproduce in the portable terminal is characterized in that this method comprises:
It is unusual to detect appearance, extracts and write down current environmental information, according to the environmental information of self record, and the environmental information when the reproduction appearance is unusual;
Described environmental information comprises: evolution Reduced Instruction Set Computer system ARM register information or mission bit stream or Exception Type or abnormal patterns or stack information, or above combination in any;
Environmental information when unusual appears in described reproduction, comprising:
A, the display device and the input equipment of portable terminal carried out initialization, after the initialization success, by the environmental information of display device displayed record successively, show the function of each input mode to the attendant, the attendant operates according to the function of input mode.
2. method according to claim 1 is characterized in that, describedly comprises unusually at least: undefined pattern, software interrupt pattern, prefetch mode, peek aborted pattern.
3. method according to claim 1 is characterized in that,
When described environmental information comprised the ARM register information, the current ARM register information of described extraction was: obtain the ARM register information by visit ARM register;
When described environmental information comprised mission bit stream, described extraction mission bit stream was: obtain mission bit stream by the current task signal;
When described environmental information comprised Exception Type, described extraction Exception Type was: determine Exception Type by exception error vector or current process information;
When described environmental information comprised abnormal patterns, described extraction abnormal patterns was: obtain abnormal patterns by the condition handler that reads ARM;
When described environmental information comprised stack information, described extraction stack information was: the current stack register that reads when occurring unusually obtains stack information.
4. method according to claim 1 is characterized in that, further comprising before environmental information when unusual appears in described reproduction: carry out integrity check, during the integrity check success, continue to carry out and reappear the step that the environmental information when unusual occurs.
5. method according to claim 1 is characterized in that, further comprises after the described steps A:
B, described environmental information is stored among the ROM of portable terminal.
6. method according to claim 5 is characterized in that, further comprises after the described step B:
C, portable terminal normally start, and the environmental information of storing among the ROM are write in the file system of portable terminal.
7. the device that abnormity diagnosis and wrong environment reproduce in the portable terminal is characterized in that this device comprises: detecting unit, extraction unit, buffer unit and reproducing unit, wherein,
Whether described detecting unit is used for detecting and occurs unusually, sends notice to extraction unit detecting when unusual;
Described extraction unit is used for extracting current environmental information from the notice of detecting unit, and the environmental information of extraction is provided to buffer unit;
Described buffer unit is used for the environmental information that comes from extraction unit is carried out buffer memory;
Described reproducing unit is used for obtaining the environmental information of buffer unit buffer memory, the environmental information when the reproduction appearance is unusual; Environmental information when unusual appears in described reproduction, comprise: display device and input equipment to portable terminal carry out initialization, after the initialization success, environmental information by display device displayed record successively, show the function of each input mode to the attendant, the attendant operates according to the function of input mode;
Described environmental information comprises: ARM register information or mission bit stream or Exception Type or abnormal patterns or stack information.
8. device according to claim 7 is characterized in that, described reproducing unit comprises display unit, and further comprises: input unit, be used for providing input mode to the attendant, and operating personnel are operated according to input mode.
CN200710111337XA 2007-06-15 2007-06-15 A method and device for the anomaly diagnosis and error playback in a mobile terminal Active CN101060686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710111337XA CN101060686B (en) 2007-06-15 2007-06-15 A method and device for the anomaly diagnosis and error playback in a mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710111337XA CN101060686B (en) 2007-06-15 2007-06-15 A method and device for the anomaly diagnosis and error playback in a mobile terminal

Publications (2)

Publication Number Publication Date
CN101060686A CN101060686A (en) 2007-10-24
CN101060686B true CN101060686B (en) 2011-05-11

Family

ID=38866523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710111337XA Active CN101060686B (en) 2007-06-15 2007-06-15 A method and device for the anomaly diagnosis and error playback in a mobile terminal

Country Status (1)

Country Link
CN (1) CN101060686B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023139B (en) * 2014-06-19 2020-05-15 陈惠金 Mobile terminal and exception handling method thereof
CN106407103A (en) * 2016-07-20 2017-02-15 平安科技(深圳)有限公司 Abnormal signal processing method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254128A (en) * 1998-11-13 2000-05-24 英业达集团(西安)电子技术有限公司 Error automatic detection device and method of personal digilal assistant device
CN1414711A (en) * 2002-05-23 2003-04-30 华为技术有限公司 Fault location method of program mode
CN1949188A (en) * 2006-09-21 2007-04-18 伍超 Universal system method of reappearing-free quick problem positioning and system diagnosis

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254128A (en) * 1998-11-13 2000-05-24 英业达集团(西安)电子技术有限公司 Error automatic detection device and method of personal digilal assistant device
CN1414711A (en) * 2002-05-23 2003-04-30 华为技术有限公司 Fault location method of program mode
CN1949188A (en) * 2006-09-21 2007-04-18 伍超 Universal system method of reappearing-free quick problem positioning and system diagnosis

Also Published As

Publication number Publication date
CN101060686A (en) 2007-10-24

Similar Documents

Publication Publication Date Title
JP5430570B2 (en) Method for test suite reduction by system call coverage criteria
WO2017124808A1 (en) Fault information reproduction method and reproduction apparatus
US7210123B2 (en) Software evaluation system having source code and function unit identification information in stored administration information
CN100440163C (en) Method and system for analysis processing of computer program
CN103186461A (en) Storage method and recover method for field data, and related devices
CN110543420B (en) Software testing method, system, terminal and storage medium
CN113268427B (en) Crash analysis method and system for binary program
CN113835643B (en) Data storage method and device, electronic equipment and readable storage medium
CN110597704B (en) Pressure test method, device, server and medium for application program
CN115328796A (en) Software vulnerability auxiliary positioning method and system for ARM architecture
CN115686961A (en) Processor testing method and device and electronic equipment
CN101060686B (en) A method and device for the anomaly diagnosis and error playback in a mobile terminal
CN105512562A (en) Vulnerability mining method and device and electronic equipment
CN108595332B (en) Software testing method and device
US7415560B2 (en) Method of automatically monitoring computer system debugging routine
CN109857583A (en) A kind of processing method and processing device
CN113377719B (en) System abnormal shutdown time acquisition method and system
JPH08227372A (en) Data processor
CN111258875A (en) Interface test method and system, electronic device and storage medium
CN107391358B (en) Abnormal data processing method and system
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN113127242A (en) Application crash processing method and processing device
CN110647473A (en) Anti-interference method and device for automatic regression test, computer equipment and storage medium
KR101601414B1 (en) Run-time fault detecting method using execution hooking and information tag
JP2008262473A (en) Equipment maintenance management system

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