CN103425576A - Information feedback method and terminal - Google Patents
Information feedback method and terminal Download PDFInfo
- Publication number
- CN103425576A CN103425576A CN2012101657187A CN201210165718A CN103425576A CN 103425576 A CN103425576 A CN 103425576A CN 2012101657187 A CN2012101657187 A CN 2012101657187A CN 201210165718 A CN201210165718 A CN 201210165718A CN 103425576 A CN103425576 A CN 103425576A
- Authority
- CN
- China
- Prior art keywords
- program
- abnormal
- terminal
- signal
- monitoring
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an information feedback method and a terminal, and belongs to the field of program safety testing. The method includes when a program runs on the terminal, monitoring whether the program is abnormal or not; when abnormality of the program is detected, acquiring an abnormality reason and sending the abnormality reason to a website appointed by a developer of the program. By the information feedback method and the terminal, the abnormality reason when the abnormality is generated in the process of running of the program is submitted to the website appointed by the developer, so that the developer can acquire the abnormality reason of the program in the process of running timely, and the program can be improved timely according to the abnormality reason to guarantee safety of the program and using experience of a user.
Description
Technical field
The present invention relates to the program safety field tests, particularly a kind of method and terminal of information feedback.
Background technology
At present, increasing program is developed and applies, and enriches and facilitated greatly people's life.Generally, the program of developing is before being applied by formal input, and the slip-stick artist need to be tested it, detect the program of developing and whether have defect, in order to before formal input application, according to test result, it is updated, is guaranteed user's experience.Afterwards, will be through the program issue of test, the user just can be in the program that terminal is installed and application is issued.
In realizing process of the present invention, the inventor finds: the program of the test of process of installing in terminal is when operation, abnormal (Crash) that still there will be some not run in test, this makes troubles to user's use, and in prior art, what for program, in operational process, occur is abnormal, and the mechanism that monitoring is not provided at present and reports makes the developer extremely to program, to do further improvement for above-mentioned.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of method and terminal of information feedback.Described technical scheme is as follows:
On the one hand, the embodiment of the present invention provides a kind of method of information feedback, and described method comprises:
When program is moved on terminal, monitor described program and whether exist extremely;
Exist when abnormal when described program being detected, obtain abnormal cause;
Described abnormal cause is sent in the specified network address of the developer of described program.
Whether the described program of described monitoring exists extremely and comprises:
Monitor the operating system signal of described terminal;
When monitoring abnormal signal, determine that described program exists abnormal.
The described abnormal cause that obtains comprises:
Search corresponding relation between signal and abnormal cause according to the abnormal signal monitored, obtain abnormal cause.
Described method also comprises:
Described program to be detected and exist when abnormal, and read described program and have operating path when abnormal;
Exist operating path when abnormal to be sent in the specified network address of the developer of described program described program.
Described abnormal cause comprises: routine access illegal address, program carried out disable instruction, program produce fatal arithmetic operation error, program attempt internal memory, program that access is not yet assigned to self attempt to the memory address that there is no write permission write data, call exit the abort function, the program operation occurs that trap trap instruction appears in break-poing instruction or program operation.
On the other hand, the embodiment of the present invention provides a kind of terminal of information feedback, and described terminal comprises: monitoring module, acquisition module and the first reporting module;
Whether described monitoring module, for when program is moved on described terminal, monitor described program and exist extremely;
Described acquisition module, for existing when abnormal when described program being detected, obtain abnormal cause;
Described the first reporting module, for being sent to described abnormal cause the specified network address of developer of described program.
Described monitoring module, specifically for monitoring the operating system signal of described terminal, when monitoring abnormal signal, determine that described program exists abnormal.
Described acquisition module, search corresponding relation between signal and abnormal cause specifically for the abnormal signal according to monitoring, and obtains abnormal cause.
Described terminal also comprises:
The off path acquisition module, exist when abnormal for described program being detected, reads described program and have operating path when abnormal;
The second reporting module, operating path when abnormal for described program is existed is sent to the specified network address of developer of described program.
Described abnormal cause comprises: routine access illegal address, program carried out disable instruction, program produce fatal arithmetic operation error, program attempt internal memory, program that access is not yet assigned to self attempt to the memory address that there is no write permission write data, call exit the abort function, the program operation occurs that trap trap instruction appears in break-poing instruction or program operation.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: by when program is moved on terminal, whether monitor described program exists extremely, when described program being detected, exist when abnormal, obtain abnormal cause, and described abnormal cause is sent to the realization of the technical scheme of the specified network address of the developer of described program, make the developer can obtain timely the abnormal cause of program in operational process, thereby can to program, carry out timely according to this abnormal cause perfect, with the safety that guarantees program and user's experience.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, in below describing embodiment, the accompanying drawing of required use is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow schematic diagram of a kind of information feedback that provides of the embodiment of the present invention one;
Fig. 2 is the method flow schematic diagram of a kind of information feedback that provides of the embodiment of the present invention two;
Fig. 3 is the terminal structure schematic diagram of a kind of information feedback that provides of the embodiment of the present invention three;
Fig. 4 is the terminal structure schematic diagram of a kind of information feedback that provides of the embodiment of the present invention four.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
Referring to Fig. 1, a kind of method of information feedback comprises:
Step 101: when program is moved on terminal, monitor described program and whether exist extremely;
Step 102: exist when abnormal when described program being detected, obtain abnormal cause;
Step 103: described abnormal cause is sent in the specified network address of the developer of described program.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: by when program is moved on terminal, whether monitor described program exists extremely, when described program being detected, exist when abnormal, obtain abnormal cause, and described abnormal cause is sent to the realization of the technical scheme of the specified network address of the developer of described program, make the developer can obtain timely the abnormal cause of program in operational process, thereby can to program, carry out timely according to this abnormal cause perfect, with the safety that guarantees program and user's experience.
Embodiment bis-
In the embodiment of the present invention, program is when terminal operating appearance abnormal (Crash), abnormal signal appears in operating system that will triggering terminal, the present invention just can be by this abnormal signal of monitoring, come determine procedures whether to occur extremely, and can the operation process of program know abnormal cause when detecting this abnormal signal and occur, afterwards, just the abnormal cause obtained can be reported to the network address of developer's appointment, so that the developer causes abnormal reason in the time of can immediately knowing the program operation, so that program is improved.Below, describe in conjunction with specific embodiments the implementation that realizes this process in detail:
Referring to Fig. 2, the embodiment of the present invention provides a kind of method of information feedback, and described method can have terminal to complete, further, described method specifically can be completed by exception reporting entrained in the program of moving on terminal (CrashReporter) plug-in unit, comprising:
Step 201: the abnormal signal produced when program is moved is registered;
The embodiment of the present invention, when specific implementation, can be processed function static int fatal_signals by registration signal and carry out the registration abnormity signal, and specific code is achieved as follows:
Further, can, by the data structure linux api:int sigaction (int signum, const struct sigaction*act, struct sigaction*oldact) set, register new signal process function.
Wherein, data structure sigaction is defined as follows:
When specific implementation, the sa_sigaction field can be inserted the readjustment callback function pointer of registered abnormal signal signal, for example: static void signal_handler (int signal, siginfo_t*info, void*uapVoid), to realize the registration of new abnormal signal.
Step 202: set up corresponding relation between abnormal signal and abnormal cause;
The embodiment of the present invention is when specific implementation, the operating system signal of monitor terminal, when monitoring abnormal signal, check the now operation process of program, program operation process now may be exactly the reason that abnormal signal occurs, corresponding relation between recording exceptional signal and abnormal cause, wherein, between abnormal signal and abnormal cause, corresponding relation can be as shown in table 1.
Table 1
Step 203: when program is moved on terminal, monitor described program and whether occur extremely;
Do not occur when abnormal when monitoring described program, continue execution step 203;
When monitoring described program, occur performing step 204 when abnormal;
Can be known by above description, monitor described program and whether exist extremely and can comprise: the operating system signal of monitor terminal; When monitoring abnormal signal, determine that described program exists abnormal.
Step 204: obtain abnormal cause, particularly, according to the abnormal signal monitored, search corresponding relation between signal and abnormal cause, obtain abnormal cause;
For example, when monitoring registered abnormal signal SIGABRT, can, by searching corresponding relation between abnormal signal and abnormal cause, obtain abnormal cause " the abort function is exited in routine call ".
Step 205: the abnormal cause obtained is sent in the specified network address of the developer of program, so that the developer is can be instant or abnormal cause program, with the abnormal cause according to being known, program is improved;
The embodiment of the present invention, when specific implementation, can also comprise following operation:
The program that will detect exists when abnormal, and there is operating path when abnormal in the fetch program;
Exist operating path when abnormal to be sent in the specified network address of the developer of program program, so that can there be operating path when abnormal in the developer by program, operation when abnormal appears in finder fast;
For example, the program reported occur operating path when abnormal be D: AndroidQQMusic src MQQmusic1.0-Android-Muild0001.Ap, the developer can locate extremely and occur when calling MQQmusic1.0-Android-Muild0001.Ap fast, can carry out test analysis to the part of calling MQQmusic1.0-Android-Muild0001.Ap by emphasis, to reduce the workload of anomaly analysis.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: by when program is moved, whether monitor described program exists extremely, when described program being detected, exist when abnormal, obtain abnormal cause, and described abnormal cause is sent to the realization of the technical scheme of the specified network address of the developer of described program, make the developer can obtain timely the abnormal cause of program in operational process, thereby can to program, carry out timely according to this abnormal cause perfect, with the safety that guarantees program and user's experience.
Embodiment tri-
Referring to Fig. 3, the embodiment of the present invention provides a kind of terminal of information feedback, and this terminal comprises: monitoring module 301, acquisition module 302 and the first reporting module 303;
Whether monitoring module 301, for when program is moved on terminal, monitor described program and exist extremely;
Wherein, described abnormal cause comprises: routine access illegal address, program carried out disable instruction, program produce fatal arithmetic operation error, program attempt internal memory, program that access is not yet assigned to self attempt to the memory address that there is no write permission write data, call exit the abort function, the program operation occurs that trap trap instruction appears in break-poing instruction or program operation.
The first reporting module 303, for being sent to described abnormal cause the specified network address of developer of described program.
In the embodiment of the present invention, monitoring module 301, specifically for the operating system signal of monitor terminal, when monitoring abnormal signal, determine that described program exists abnormal.
Further, referring to Fig. 4, embodiment of the present invention terminal as shown in Figure 3 also comprises:
Off path acquisition module 304, exist when abnormal for described program being detected, reads described program and have operating path when abnormal;
The second reporting module 305, operating path when abnormal for described program is existed is sent to the specified network address of developer of described program.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: by when program is moved, whether monitor described program exists extremely, when described program being detected, exist when abnormal, obtain abnormal cause, and described abnormal cause is sent to the realization of the technical scheme of the specified network address of the developer of described program, make the developer can obtain timely the abnormal cause of program in operational process, thereby can to program, carry out timely according to this abnormal cause perfect, with the safety that guarantees program and user's experience.
It should be noted that: the terminal of the information feedback that above-described embodiment provides is when the information of carrying out is fed back, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, the inner structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, the terminal of the information feedback that above-described embodiment provides and the embodiment of the method for information feedback belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. the method for an information feedback, is characterized in that, described method comprises:
When program is moved on terminal, monitor described program and whether exist extremely;
Exist when abnormal when described program being detected, obtain abnormal cause;
Described abnormal cause is sent in the specified network address of the developer of described program.
2. method according to claim 1, is characterized in that, whether the described program of described monitoring exists extremely and comprise:
Monitor the operating system signal of described terminal;
When monitoring abnormal signal, determine that described program exists abnormal.
3. method according to claim 2, is characterized in that, the described abnormal cause that obtains comprises:
Search corresponding relation between signal and abnormal cause according to the abnormal signal monitored, obtain abnormal cause.
4. method according to claim 1, is characterized in that, described method also comprises:
Described program to be detected and exist when abnormal, and read described program and have operating path when abnormal;
Exist operating path when abnormal to be sent in the specified network address of the developer of described program described program.
5. according to the described method of claim 1 to 4, it is characterized in that, described abnormal cause comprises: routine access illegal address, program produce fatal arithmetic operation error, program carried out disable instruction, program attempt internal memory, program that access is not yet assigned to self attempt to the memory address that there is no write permission write data, call exit the abort function, the program operation occurs that trap trap instruction appears in break-poing instruction or program operation.
6. the terminal of an information feedback, is characterized in that, described terminal comprises: monitoring module, acquisition module and the first reporting module;
Whether described monitoring module, when moving on the described terminal of program, monitor described program and exist extremely;
Described acquisition module, for existing when abnormal when described program being detected, obtain abnormal cause;
Described the first reporting module, for being sent to described abnormal cause the specified network address of developer of described program.
7. terminal according to claim 6, is characterized in that, described monitoring module, specifically for monitoring the operating system signal of described terminal, when monitoring abnormal signal, determines that described program exists abnormal.
8. terminal according to claim 7, is characterized in that, described acquisition module is searched corresponding relation between signal and abnormal cause specifically for the abnormal signal according to monitoring, and obtains abnormal cause.
9. terminal according to claim 6, is characterized in that, described terminal also comprises:
The off path acquisition module, exist when abnormal for described program being detected, reads described program and have operating path when abnormal;
The second reporting module, operating path when abnormal for described program is existed is sent to the specified network address of developer of described program.
10. according to the described terminal of claim 6 to 9, it is characterized in that, described abnormal cause comprises: routine access illegal address, program carried out disable instruction, program produce fatal arithmetic operation error, program attempt internal memory, program that access is not yet assigned to self attempt to the memory address that there is no write permission write data, call exit the abort function, the program operation occurs that trap trap instruction appears in break-poing instruction or program operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101657187A CN103425576A (en) | 2012-05-25 | 2012-05-25 | Information feedback method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101657187A CN103425576A (en) | 2012-05-25 | 2012-05-25 | Information feedback method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103425576A true CN103425576A (en) | 2013-12-04 |
Family
ID=49650360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101657187A Pending CN103425576A (en) | 2012-05-25 | 2012-05-25 | Information feedback method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103425576A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016061941A1 (en) * | 2014-10-24 | 2016-04-28 | 中兴通讯股份有限公司 | Exception handling method and device, and storage medium |
CN106598804A (en) * | 2016-11-29 | 2017-04-26 | 武汉斗鱼网络科技有限公司 | Abnormality processing method and apparatus |
CN106959842A (en) * | 2016-01-08 | 2017-07-18 | 阿里巴巴集团控股有限公司 | A kind of information cuing method and device |
CN108446185A (en) * | 2018-03-27 | 2018-08-24 | 武汉斗鱼网络科技有限公司 | Abnormality eliminating method, device, electric terminal and readable storage medium storing program for executing |
CN109614290A (en) * | 2018-12-10 | 2019-04-12 | 苏州思必驰信息科技有限公司 | Process exception information recording method and system in container |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7210123B2 (en) * | 2001-09-19 | 2007-04-24 | Nec Corporation | Software evaluation system having source code and function unit identification information in stored administration information |
CN1971599A (en) * | 2005-11-25 | 2007-05-30 | 腾讯科技(深圳)有限公司 | Error monitoring method and system of software application |
CN101499031A (en) * | 2008-01-30 | 2009-08-05 | 鸿富锦精密工业(深圳)有限公司 | Software bug feedback system and method |
TW201015308A (en) * | 2008-10-06 | 2010-04-16 | Inventec Corp | Application program error report and solution response system and method thereof |
-
2012
- 2012-05-25 CN CN2012101657187A patent/CN103425576A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7210123B2 (en) * | 2001-09-19 | 2007-04-24 | Nec Corporation | Software evaluation system having source code and function unit identification information in stored administration information |
CN1971599A (en) * | 2005-11-25 | 2007-05-30 | 腾讯科技(深圳)有限公司 | Error monitoring method and system of software application |
CN101499031A (en) * | 2008-01-30 | 2009-08-05 | 鸿富锦精密工业(深圳)有限公司 | Software bug feedback system and method |
TW201015308A (en) * | 2008-10-06 | 2010-04-16 | Inventec Corp | Application program error report and solution response system and method thereof |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016061941A1 (en) * | 2014-10-24 | 2016-04-28 | 中兴通讯股份有限公司 | Exception handling method and device, and storage medium |
CN105589794A (en) * | 2014-10-24 | 2016-05-18 | 中兴通讯股份有限公司 | Exception handling method and exception handling device |
CN106959842A (en) * | 2016-01-08 | 2017-07-18 | 阿里巴巴集团控股有限公司 | A kind of information cuing method and device |
CN106598804A (en) * | 2016-11-29 | 2017-04-26 | 武汉斗鱼网络科技有限公司 | Abnormality processing method and apparatus |
CN108446185A (en) * | 2018-03-27 | 2018-08-24 | 武汉斗鱼网络科技有限公司 | Abnormality eliminating method, device, electric terminal and readable storage medium storing program for executing |
CN108446185B (en) * | 2018-03-27 | 2021-07-23 | 武汉斗鱼网络科技有限公司 | Exception handling method and device, electronic terminal and readable storage medium |
CN109614290A (en) * | 2018-12-10 | 2019-04-12 | 苏州思必驰信息科技有限公司 | Process exception information recording method and system in container |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9529701B2 (en) | Performance testing of software applications | |
US9471474B2 (en) | Cloud deployment infrastructure validation engine | |
Yang et al. | Are slice-based cohesion metrics actually useful in effort-aware post-release fault-proneness prediction? An empirical study | |
US8578340B1 (en) | Recording and replaying computer program execution with recorded execution event breakpoints | |
US8495427B2 (en) | Detecting defects in deployed systems | |
US7882495B2 (en) | Bounded program failure analysis and correction | |
US20130019171A1 (en) | Automating execution of arbitrary graphical interface applications | |
Dean et al. | Perfcompass: Online performance anomaly fault localization and inference in infrastructure-as-a-service clouds | |
US9355003B2 (en) | Capturing trace information using annotated trace output | |
US20140380280A1 (en) | Debugging tool with predictive fault location | |
CN103699480A (en) | WEB dynamic security flaw detection method based on JAVA | |
US20160274997A1 (en) | End user monitoring to automate issue tracking | |
US8402446B2 (en) | Associating probes with test cases | |
US20050160405A1 (en) | System and method for generating code coverage information | |
CN103425576A (en) | Information feedback method and terminal | |
KR101976629B1 (en) | Commit sensitive tests | |
JP2015011372A (en) | Debug support system, method, program, and recording medium | |
CN109542444B (en) | JAVA application monitoring method, device, server and storage medium | |
US10846206B2 (en) | Adaptive software testing | |
US9075921B2 (en) | Error simulation | |
US11449408B2 (en) | Method, device, and computer program product for obtaining diagnostic information | |
US7415560B2 (en) | Method of automatically monitoring computer system debugging routine | |
US10467131B1 (en) | Method and system for performance analysis by test automation frameworks | |
CN113031969B (en) | Equipment deployment inspection method and device, computer equipment and storage medium | |
US11036624B2 (en) | Self healing software utilizing regression test fingerprints |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20131204 |