Hotfix repairing method used in communication system linux environment

A technology of a communication system and a repair method, applied in the directions of instruments, electrical digital data processing, program control devices, etc., can solve the problems of error-prone, troublesome operation, and long service suspension time, so as to reduce the impact, reduce the complexity, reduce the The effect of the time the service was suspended

Inactive Publication Date: 2017-05-31
WUHAN HONGXIN TELECOMM TECH CO LTD
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Using this patching method, the patch file is parsed by the patching program, the operation will be more troublesome, and it is also prone to errors
In addition, since attaching the service program will cause the service to be suspended, the parsing of the patch file by the patching program will cause the service to be suspended for a long time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hotfix repairing method used in communication system linux environment
  • Hotfix repairing method used in communication system linux environment
  • Hotfix repairing method used in communication system linux environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The technical solutions of the present invention are described in detail below in conjunction with the accompanying drawings and embodiments, and details for a comprehensive understanding of the embodiments are provided.

[0027] For the hot patch technology, the code used to fix the bug is first compiled into an so file. The traditional method is to parse the patch file by the patching program and write it into the memory space of the service program, such as figure 1 Shown:

[0028] Patch program Attach service program, after which the service program suspends execution;

[0029] Parse the patch file;

[0030] Write the parsed patch file to the memory space of the service program;

[0031] Find addresses of bug functions and patch functions in the memory space of the service program;

[0032] Write the jmp command at the position of the bug function;

[0033] After the patch is completed, the service program resumes execution.

[0034] In this way, parsing the pa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a hotfix repairing method used in the communication system linux environment. The hotfix repairing method includes the steps that a hotfix for repairing a program bug is set to be a so file capable of being loaded dynamically, and a service program carries out hotfix operation after loading the hotfix file; the hotfix file loading process includes the substeps that the service program operates already, a command is sent to the service program, and after receiving the command, the service program loads the fix so file into memory space; the process of executing hotfix operation includes the substep of starting a hotfixing program, and the hotfix program calls the service program on the mount through a system; the addresses of the function in the fix and the function to be replaced are searched for in the memory space of the service program, a jmp command is written in according to address difference, when getting access to the function, a program skips to the fix function. Fix file analysis can be completed without affecting service, the complexity of analyzing the fix file is reduced, and the interrupting time of service is shortened.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method for repairing bugs in running processes based on a Linux system. Background technique [0002] In the communication system, in order to ensure the continuity of communication services, the programs providing communication services should be restarted less and not interrupt the service, and run 7*24 hours as much as possible. But when the service program has a bug (error) and needs to be repaired, the traditional method is to replace the original program file with the repaired program file to execute, so that restarting and service interruption will inevitably occur. [0003] Service interruption can be avoided by using hot patching technology. Compile the bug-correcting code into a small patch file, and compile it into a dynamically loadable so (a file format) file in the Linux system, and then let the service program load the patch file without interrupting the s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
CPCG06F8/658
Inventor 王鑫鹏陈辉陶琴秦燕婷
Owner WUHAN HONGXIN TELECOMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products