Process fault detection method, device and equipment of robot system and storage medium

By periodically checking and terminating abnormal processes, generating and analyzing core dump files, the accuracy of process failure detection in the robot system is solved, and resource utilization efficiency and data security are improved.

CN118897749APending Publication Date: 2024-11-05LONGWOOD VALLEY MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411082722.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The prior art is difficult to accurately detect the causes and location of process failures in robot systems, resulting in waste of resources and data security issues.

Method used

By periodically checking the running process status, terminating the abnormal process and generating a core dump file, analyzing the file to determine the cause and location of the failure, sending early warning information, and optionally generating a processing report.

Benefits of technology

Accurate detection of the causes and locations of process failures is achieved, resource utilization efficiency is improved, data security and system stability are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897749A_ABST
    Figure CN118897749A_ABST
Patent Text Reader

Abstract

The invention provides a process fault detection method, device and equipment of a robot system and a computer readable storage medium. The process fault detection method of the robot system comprises the following steps: periodically checking all running process states; if the process state of the process is abnormal, sending a corresponding signal to the process in the abnormal state so as to terminate the process in the abnormal state, and generating a corresponding core dump file; wherein the abnormal states at least comprise a non-response state, a dead state, memory leakage and an abnormally high CPU utilization rate; signal processing functions are preset in all the running processes so as to be used for receiving processing signals; the core dump file comprises all memory states and call stack information before the process is terminated; and analyzing the core dump file, determining the reason and position of the process in the abnormal state, and sending early warning information. According to the embodiment of the invention, the reason and the position of the process fault can be accurately detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of process fault detection of robot systems, and in particular, relates to a process fault detection method, device, equipment and computer-readable storage medium for a robot system. Background Art

[0002] As the functionality and complexity of robotic systems continue to increase, the number and complexity of processes running in the system are also increasing. This makes the mutual influence and dependency between processes more complicated. Once a process fails, it may affect the stability and operating efficiency of the entire system. Among them, a process is a running activity of a program in a computer on a certain data set, and a process is an instance of a running program.

[0003] Applications and services in modern computer systems are often interdependent and interactive. If a critical process fails, it may cause the entire service link to be interrupted, affecting user experience and business operations.

[0004] Resources in the robot system, such as memory and CPU, are limited and need to be managed and utilized effectively. Faulty processes may consume a large amount of resources or block the release of resources, affecting the normal operation of other processes. Therefore, timely resolution of faulty processes can improve resource utilization efficiency and enhance the performance of the entire system.

[0005] Many processes handle important data or involve sensitive operations. Faulty processes may cause data loss, leakage, or inconsistency, which may affect the security of the system and the integrity of the data. Resolving faulty processes helps ensure data security and stable system operation.

[0006] Currently, in the related art, the timer method is used to detect process failures, which can only indicate that the process has not completed the task or responded within the scheduled time, but cannot provide information about the cause and location of the failure.

[0007] Therefore, how to accurately detect the cause and location of a process failure is a technical problem that those skilled in the art need to solve urgently. Summary of the invention

[0008] The embodiments of the present application provide a process fault detection method, apparatus, device and computer-readable storage medium for a robot system, which can accurately detect the cause and location of a process fault.

[0009] In a first aspect, an embodiment of the present application provides a process fault detection method of a robot system, comprising:

[0010] Periodically check the status of all running processes;

[0011] If the process state of a process is abnormal, a corresponding signal is sent to the process in the abnormal state to terminate the process in the abnormal state and generate a corresponding core dump file; wherein the abnormal state at least includes: no response, zombie state, memory leak, abnormally high CPU utilization; all running processes are pre-set with a signal processing function to receive and process signals; the core dump file includes all memory states and call stack information before the process is terminated;

[0012] Analyze core dump files, determine the cause and location of abnormal process status, and send warning information.

[0013] Optionally, after determining the cause and location of the abnormal state of the process, the following is also included:

[0014] Based on the cause and location of the abnormal state, the abnormal state is processed and a corresponding report is generated.

[0015] Optionally, periodically check the status of all running processes, including:

[0016] Get a list of all currently running processes every preset time period;

[0017] Traverse the obtained process list one by one and query the status of the process.

[0018] Optionally, traverse the obtained process list one by one and query the status of the process, including:

[0019] Traverse the process list one by one to obtain the process ID, memory usage, CPU utilization and running time;

[0020] Determine the status of a process based on its process ID, memory usage, CPU utilization, and uptime.

[0021] Optionally, if the process state of a process is an abnormal state, a corresponding signal is sent to the process in the abnormal state to terminate the process in the abnormal state, and a corresponding core dump file is generated, including:

[0022] If the process state of a process is abnormal, the monitoring program sends a termination signal to it;

[0023] After confirming that the abnormal process has been terminated, trigger the operating system to generate a core dump file of the process;

[0024] The monitoring program records the operation log, including the result of the termination signal sending, whether the core dump file is successfully generated, and the related timestamp and process information.

[0025] Optionally, analyze the core dump file to determine why and where the process is in an abnormal state, including:

[0026] Use analysis tools to analyze core dump files and view memory status, register values, and call stack information;

[0027] Based on the memory state, determine the contents of each memory area before the process terminates;

[0028] Based on the register values, determining the status of key registers such as the program counter and stack pointer helps locate the execution location when the program crashes.

[0029] Optionally, also include:

[0030] Based on the call stack information, determine the specific function and call path that caused the program crash;

[0031] Determine the cause of the abnormal condition based on the specific function and call path that caused the program to crash.

[0032] In a second aspect, an embodiment of the present application provides a process fault detection device for a robot system, comprising:

[0033] Status check module, used to periodically check the status of all running processes;

[0034] The abnormal process termination module is used to send a corresponding signal to the process in the abnormal state if the process state of the existing process is in the abnormal state, so as to terminate the process in the abnormal state and generate a corresponding core dump file; wherein the abnormal state at least includes: no response, zombie state, memory leak, abnormally high CPU utilization; all running processes are pre-set with a signal processing function to receive and process signals; the core dump file includes all memory states and call stack information before the process is terminated;

[0035] The abnormal process cause and location determination module is used to analyze the core dump file, determine the cause and location of the abnormal process state, and send warning information.

[0036] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0037] The processor implements a process fault detection method for a robot system when executing the computer program instructions.

[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions, when executed by a processor, implement a process fault detection method for a robot system.

[0039] The process fault detection method, device, equipment and computer-readable storage medium of the robot system of the embodiments of the present application can accurately detect the cause and location of the process fault.

[0040] The process fault detection method of the robot system includes:

[0041] Periodically check the status of all running processes;

[0042] If the process state of a process is abnormal, a corresponding signal is sent to the process in the abnormal state to terminate the process in the abnormal state and generate a corresponding core dump file; wherein the abnormal state at least includes: no response, zombie state, memory leak, abnormally high CPU utilization; all running processes are pre-set with a signal processing function to receive and process signals; the core dump file includes all memory states and call stack information before the process is terminated;

[0043] Analyze core dump files, determine the cause and location of abnormal process status, and send warning information. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 It is a flowchart of a process fault detection method of a robot system provided by an embodiment of the present application;

[0046] Figure 2 is a structural diagram of a process fault detection device for a robot system provided by an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0048] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0049] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0050] In order to solve the problems of the prior art, the embodiments of the present application provide a process fault detection method, device, equipment and computer readable storage medium for a robot system. The process fault detection method for a robot system provided by the embodiments of the present application is first introduced below.

[0051] Figure 1 FIG. 1 is a flow chart of a process fault detection method for a robot system provided by an embodiment of the present application. Figure 1 As shown, the process fault detection method of the robot system includes:

[0052] S101, periodically checking the status of all running processes;

[0053] S102. If the process state of a process is an abnormal state, a corresponding signal is sent to the process in the abnormal state to terminate the process in the abnormal state and generate a corresponding core dump file; wherein the abnormal state at least includes: no response, zombie state, memory leak, and abnormally high CPU utilization; all running processes are pre-set with a signal processing function to receive and process signals; the core dump file includes all memory states and call stack information before the process is terminated;

[0054] S103: Analyze the core dump file, determine the reason and location of the abnormal state of the process, and send a warning message.

[0055] In one embodiment, after determining the reason and location of the process being in an abnormal state, the method further includes:

[0056] Based on the cause and location of the abnormal state, the abnormal state is processed and a corresponding report is generated.

[0057] In one embodiment, the status of all running processes is periodically checked, including:

[0058] Get a list of all currently running processes every preset time period;

[0059] Traverse the obtained process list one by one and query the status of the process.

[0060] In one embodiment, the obtained process list is traversed one by one to query the status of the process, including:

[0061] Traverse the process list one by one to obtain the process ID, memory usage, CPU utilization and running time;

[0062] Determine the status of a process based on its process ID, memory usage, CPU utilization, and uptime.

[0063] In one embodiment, if the process state of a process is an abnormal state, a corresponding signal is sent to the process in the abnormal state to terminate the process in the abnormal state, and a corresponding core dump file is generated, including:

[0064] If the process state of a process is abnormal, the monitoring program sends a termination signal to it;

[0065] After confirming that the abnormal process has been terminated, trigger the operating system to generate a core dump file of the process;

[0066] The monitoring program records the operation log, including the result of the termination signal sending, whether the core dump file is successfully generated, and the related timestamp and process information.

[0067] In one embodiment, analyzing the core dump file to determine the reason and location of the abnormal state of the process includes:

[0068] Use analysis tools to analyze core dump files and view memory status, register values, and call stack information;

[0069] Based on the memory state, determine the contents of each memory area before the process terminates;

[0070] Based on the register values, determining the status of key registers such as the program counter and stack pointer helps locate the execution location when the program crashes.

[0071] In one embodiment, it further includes:

[0072] Based on the call stack information, determine the specific function and call path that caused the program crash;

[0073] Determine the cause of the abnormal condition based on the specific function and call path that caused the program to crash.

[0074] Figure 21 is a schematic diagram of a process fault detection device for a robot system provided by an embodiment of the present application; the process fault detection device for the robot system comprises:

[0075] The status checking module 201 is used to periodically check the status of all running processes;

[0076] The abnormal process termination module 202 is used to send a corresponding signal to the process in the abnormal state if the process state of the existing process is in the abnormal state, so as to terminate the process in the abnormal state and generate a corresponding core dump file; wherein the abnormal state at least includes: no response, zombie state, memory leak, and abnormally high CPU utilization; all running processes are pre-set with a signal processing function to receive and process signals; the core dump file includes all memory states and call stack information before the process is terminated;

[0077] The abnormal process cause and location determination module 203 is used to analyze the core dump file, determine the cause and location of the abnormal state of the process, and send warning information.

[0078] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown.

[0079] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.

[0080] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0081] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 302 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 302 may be inside or outside the electronic device. In a particular embodiment, the memory 302 may be a non-volatile solid-state memory.

[0082] In one embodiment, the memory 302 may be a read-only memory (ROM). In one embodiment, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0083] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any one of the process fault detection methods for the robot system in the above embodiments.

[0084] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0085] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0086] Bus 310 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0087] In addition, in combination with the process fault detection method of the robot system in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the process fault detection methods of the robot system in the above embodiment is implemented.

[0088] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0089] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0090] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0091] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0092] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A process fault detection method for a robot system, It is characterized in that include: Periodically check the status of all running processes; If the process state of a process is abnormal, a corresponding signal is sent to the process in the abnormal state to terminate the process in the abnormal state and generate a corresponding core dump file; wherein the abnormal state at least includes: no response, zombie state, memory leak, abnormally high CPU utilization; all running processes are pre-set with a signal processing function to receive and process signals; the core dump file includes all memory states and call stack information before the process is terminated; Analyze core dump files, determine the cause and location of abnormal process status, and send warning information.

2. The process fault detection method of the robot system according to claim 1, It is characterized in that After determining the cause and location of the abnormal state of the process, it also includes: Based on the cause and location of the abnormal state, the abnormal state is processed and a corresponding report is generated.

3. The process fault detection method of the robot system according to claim 1, It is characterized in that Periodically check the status of all running processes, including: Get a list of all currently running processes every preset time period; Traverse the obtained process list one by one and query the status of the process.

4. The process fault detection method of the robot system according to claim 3, It is characterized in that Traverse the obtained process list one by one and query the status of the process, including: Traverse the process list one by one to obtain the process ID, memory usage, CPU utilization and running time; Determine the status of a process based on its process ID, memory usage, CPU utilization, and uptime.

5. The process fault detection method of the robot system according to claim 1, It is characterized in that If the process state of a process is abnormal, a corresponding signal is sent to the process in the abnormal state to terminate the process in the abnormal state, and a corresponding core dump file is generated, including: If the process state of a process is abnormal, the monitoring program sends a termination signal to it; After confirming that the abnormal process has been terminated, trigger the operating system to generate a core dump file of the process; The monitoring program records the operation log, including the result of the termination signal sending, whether the core dump file is successfully generated, and the related timestamp and process information.

6. The process fault detection method of the robot system according to claim 5, It is characterized in that Analyze the core dump file to determine why and where the process is in an abnormal state, including: Use analysis tools to analyze core dump files and view memory status, register values, and call stack information; Based on the memory state, determine the contents of each memory area before the process terminates; Based on the register values, determining the status of key registers such as the program counter and stack pointer helps locate the execution location when the program crashes.

7. The process fault detection method of the robot system according to claim 6, It is characterized in that Also includes: Based on the call stack information, determine the specific function and call path that caused the program crash; Determine the cause of the abnormal condition based on the specific function and call path that caused the program to crash.

8. A process fault detection device for a robot system, It is characterized in that The device comprises: Status check module, used to periodically check the status of all running processes; The abnormal process termination module is used to send a corresponding signal to the process in the abnormal state if the process state of the existing process is in the abnormal state, so as to terminate the process in the abnormal state and generate a corresponding core dump file; wherein the abnormal state at least includes: no response, zombie state, memory leak, abnormally high CPU utilization; all running processes are pre-set with a signal processing function to receive and process signals; the core dump file includes all memory states and call stack information before the process is terminated; The abnormal process cause and location determination module is used to analyze the core dump file, determine the cause and location of the process in an abnormal state, and send an early warning message.

9. An electronic device, It is characterized in that The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the process fault detection method of the robot system according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the process fault detection method of the robot system according to any one of claims 1 to 7 is implemented.