Fault handling methods, devices, equipment, and storage media

By determining the identification in the UEFI firmware and obtaining the target information from the debugging information set, the cause of the fault is directly analyzed, which solves the problem that the UEFI firmware debugging method cannot meet the demand in time, and achieves fast and efficient fault handling.

CN113760617BActive Publication Date: 2024-08-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110945075.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2024-08-23
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

Existing debugging methods for UEFI firmware cannot meet the growing number of products and user needs in terms of resolution time, and it is difficult to quickly analyze the causes of faults.

Method used

By determining the identification during booting the system and obtaining the target debugging information associated with the identification from the pre-stored debugging information set, the cause of the fault is directly determined, avoiding recompiling to obtain the debugging information, and saving time.

Benefits of technology

It enables quick analysis of the causes of faults, reduces labor expenditure and time consumption, and improves fault handling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760617B
    Figure CN113760617B
Patent Text Reader

Abstract

The embodiments of the present application disclose a fault handling method and apparatus, a device, and a storage medium, wherein the method comprises: starting a boot system; when a fault occurs during the boot system startup process, determining an identifier of the boot system; acquiring target debugging information associated with the identifier from a pre-stored debugging information set; and determining the cause of the fault based on the target debugging information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and relate to but are not limited to fault handling methods and devices, equipment, and storage media. Background Art

[0002] Unified Extensible Firmware Interface (UEFI) is a personal computer system specification that is used to define the software interface between the operating system and the system firmware. It has the advantages of good scalability and high system performance.

[0003] With the use of the UEFI standard, many companies are able to produce UEFI firmware for computer systems and thus gain the benefits provided by UEFI firmware. However, the current debugging methods for UEFI firmware cannot meet the increasing number of products and user needs in terms of resolution time. Summary of the invention

[0004] In view of this, the fault handling method, device, equipment, and storage medium provided in the embodiments of the present application can quickly analyze the cause of the fault. The fault handling method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:

[0005] The fault handling method provided in the embodiment of the present application includes: starting the boot system; when a fault occurs during the boot system startup process, determining the identification of the boot system; obtaining target debugging information associated with the identification from a pre-stored debugging information set; and determining the cause of the fault based on the target debugging information.

[0006] The fault handling device provided in the embodiment of the present application includes: a startup module, which is used to start the boot system; a determination module, which is used to determine the identification of the boot system when a fault occurs during the startup of the boot system; an acquisition module, which is used to obtain target debugging information associated with the identification from a pre-stored debugging information set; the determination module is also used to determine the cause of the fault based on the target debugging information.

[0007] An electronic device provided in an embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.

[0008] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0009] In the embodiment of the present application, when a fault occurs during the booting process of the boot system, the target debugging information associated with the boot system identifier is found in the debugging information set according to the boot system identifier, and the cause of the fault is determined according to the target debugging information, without the need to compile the boot system again to obtain the target debugging information again. This can save time and quickly analyze the cause of the fault. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0011] Figure 1 A schematic diagram of an implementation flow of a fault handling method provided in an embodiment of the present application;

[0012] Figure 2 A schematic diagram of an implementation flow of a fault handling method provided in an embodiment of the present application;

[0013] Figure 3 A schematic diagram of an implementation flow of a fault handling method provided in an embodiment of the present application;

[0014] Figure 4 A conceptual diagram of a fault handling method provided in an embodiment of the present application;

[0015] Figure 5 This is a schematic diagram of the structure of the fault handling device according to an embodiment of the present application;

[0016] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0019] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0020] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0021] The embodiment of the present application provides a fault handling method, which is applied to an electronic device, which can be various types of devices with information processing capabilities during implementation, for example, the electronic device can include a personal computer (such as a desktop, a laptop, a small laptop, a tablet computer, and an ultrabook, etc.), a mobile phone, a personal digital assistant (Personal Digital Assistant, PDA), a server or a cluster server, etc. The function implemented by the method can be implemented by calling a program code by a processor in the electronic device, and of course the program code can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.

[0022] Figure 1 A schematic diagram of the implementation flow of the fault handling method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the method may include the following steps 101 to 104:

[0023] Step 101, start the boot system.

[0024] In the embodiment of the present application, the boot system can be various types of systems, which are not limited to this. For example, the boot system is UEFI, Basic Input Output System (BIOS) or Extensible Firmware Interface (EFI).

[0025] Step 102: When a failure occurs during the boot system startup, determine the boot system identifier.

[0026] In the embodiment of the present application, a failure occurs in the boot system during the startup process, which may be a hardware failure or a software failure.

[0027] In some embodiments, the identifier of the boot system can be the release version number of the boot system, or the name of an electronic device that includes the boot system, or the name of a source code file used when compiling the boot system. There is no limitation on this, as long as the pre-stored target debugging information associated with the identifier can be obtained through the identifier.

[0028] Step 103: Acquire target debugging information associated with the identifier from a pre-stored debugging information set.

[0029] Taking the boot system identifier as the version number as an example, it can be understood that after compiling each version of the boot system, the corresponding target debugging information can be generated; then, the target debugging information of each boot system is associated with the corresponding version number and stored to obtain a debugging information set. It can be seen that the debugging information set stores identifiers corresponding to multiple different boot systems and target debugging information associated with the identifiers.

[0030] In some embodiments, target debugging information is obtained by executing steps 304 to 305 in the following embodiments.

[0031] In some embodiments, the target debugging information includes at least one of the following: the correspondence between the binary code and the source code file used by the processor when executing the compilation function, and the correspondence between the binary code and the source code line number, the version number corresponding to the boot system, and the name of the source code file used when compiling the boot system.

[0032] Step 104, determining the cause of the fault according to the target debugging information of the boot system.

[0033] In some embodiments, if it is determined that the cause of the fault is a hardware failure, relevant personnel can be notified to check or replace the corresponding hardware equipment; if it is determined that the cause of the fault is a software failure (such as incorrect code execution), the location of the incorrectly executed source code can be further determined through steps 2051 to 2053 in the following embodiment for the user to view.

[0034] In the embodiment of the present application, when a fault occurs during the booting process of the boot system, the target debugging information associated with the boot system identifier is found in the debugging information set according to the boot system identifier, and the cause of the fault is determined according to the target debugging information, without the need to compile the boot system again to obtain the target debugging information again. This can save time and quickly analyze the cause of the fault.

[0035] Figure 2 A schematic diagram of the implementation flow of the fault handling method provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the method may include the following steps 201 to 205:

[0036] Step 201, start the boot system;

[0037] Step 202, when a failure occurs during the boot system startup, determining the boot system identifier;

[0038] Step 203: Send an access request carrying an identifier to a server storing a debugging information set; and receive target debugging information associated with the identifier returned by the server.

[0039] In some embodiments, the debugging information set is stored in a server. In this way, whether it is a near-end device or a remote device, when it needs to obtain target debugging information, it can send an access request carrying an identifier corresponding to the guidance system to the server; after receiving the access request, the server can search for the target debugging information associated with the identifier from the debugging information set stored therein according to the identifier in the access request.

[0040] In some embodiments, the debugging information set may also be stored in a local database. Of course, the storage method may be offline storage or online storage, and there is no limitation on this.

[0041] In some embodiments, for a remote device, when a boot system deployed thereon fails during the startup process, the cause of the failure can be determined by executing the following steps 204 to 205. That is, a fault log generated when the boot system fails is obtained, and the fault log is sent back to the company's service department; the service department uploads the fault log to a specific decoding server, so that the decoding server can find the target debugging information associated with the identifier in the pre-stored debugging information set through the identifier of the boot system; the target debugging information is compared with the fault log, so as to determine the cause of the failure.

[0042] Step 204, obtaining a fault log generated when a fault occurs in the boot system.

[0043] In some embodiments, during the booting process of the booting system, a fault capture program is used to record faults occurring in the booting system and generate a corresponding fault log.

[0044] In some embodiments, the fault capture program may be a First Failure Data Capture (FFDC) program, which can monitor and record faults that occur during the operation of the server, thereby generating a fault log. Of course, it may also be other programs that can capture faults and generate fault logs, which is not limited to this.

[0045] Step 205, determining the cause of the fault according to the fault log and the target debugging information.

[0046] In some embodiments, the fault log includes a first executable code that causes the boot system to fail during startup; the cause of the failure includes the location of the source code that causes the failure in the source code of the boot system.

[0047] It should be noted that the source code can be viewed intuitively by the user to understand its meaning, but it cannot be directly executed by the electronic device. Therefore, during the compilation and startup of the boot system, the executable code obtained by converting the source code file is executed. Accordingly, the executable code can be executed by the processor, but the meaning it represents cannot be viewed intuitively by the technician. Therefore, the needs of the processor and the technician can be met respectively through the corresponding relationship between the executable code and the source code.

[0048] In some embodiments, the executable code is binary code.

[0049] In some embodiments, the following steps 2051 to 2053 are performed to implement step 205:

[0050] Step 2051, searching the target debugging information for a second executable code that is identical to the first executable code;

[0051] Step 2052, obtaining source code of the second executable code according to the second executable code;

[0052] Step 2053, determine the location of the source code of the second executable code in the source code of the boot system.

[0053] In some embodiments, the fault log records the first executable code that causes the boot system to fail during startup, but the first executable code does not allow the technician to intuitively analyze the cause of the failure. In the related art, after obtaining the fault log, the technician needs to manually compare and find the source code file corresponding to the first executable code that causes the failure recorded in the fault log and the location of the source code corresponding to the first executable code, which obviously increases the manpower cost and takes a long time.

[0054] In the embodiment of the present application, the second executable code identical to the first executable code recorded in the fault log is found in the target debugging information; then, based on the second executable code, the source code corresponding to the second executable code causing the boot system to fail and the location of the source code causing the boot system to fail are determined, and finally the location of the failure is determined. This determination method does not require manual comparison, thereby reducing manpower expenditure and the time consumed in determining the cause of the failure.

[0055] Figure 3 A schematic diagram of the implementation flow of the fault handling method provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, the method may include the following steps 301 to 307:

[0056] Step 301, start the boot system;

[0057] Step 302, when a failure occurs during the boot system startup, determining the boot system identifier;

[0058] Step 303, determining whether to obtain target debugging information associated with the identifier from a pre-stored debugging information set; if yes, executing step 307; otherwise, executing step 304.

[0059] In some embodiments, for the currently started boot system, the debug information set stores target debug information associated with the identifier of the boot system. Thus, when the currently started boot system fails, the identifier of the boot system can be used to find the target debug information associated with the identifier of the currently started boot system from the debug information set, and then step 307 is performed, i.e., determining the cause of the failure based on the target debug information.

[0060] In some embodiments, for the currently started boot system, the debug information set does not store the target debug information associated with the identifier of the boot system. That is, for the currently started boot system, it has not been compiled in advance, and accordingly, its corresponding target debug information has not been obtained. In this case, it is necessary to execute step 304, that is, to compile the boot system for the first time to obtain the corresponding target debug information, so as to determine the cause of the fault according to the target debug information.

[0061] Step 304, compile and boot the system to obtain candidate debugging information.

[0062] Step 305, selecting information that meets the conditions from the candidate debugging information to obtain target debugging information.

[0063] After compiling the boot system, the candidate debugging information obtained contains a large amount of information, and accordingly, the physical storage space it occupies is also large. Therefore, in some embodiments, information that meets the conditions can be selected from the candidate debugging information to form the target debugging information, which can avoid exposing too much privacy and occupy less physical storage space.

[0064] In some embodiments, the information that meets the conditions may be the correspondence between the binary code and the source code file used when the processor performs the compilation function, and the correspondence between the binary code and the source code line number; it may also be the version number corresponding to the boot system; it may also be the name of the source code file used when compiling the boot system; or it may be a collection of the above information, which is not limited to this.

[0065] Step 306: associate the identifier with the target debugging information and store them in a debugging information set.

[0066] In some embodiments, to implement step 306, the identifier and the target debugging information may be sent to a server, so that the server associates the identifier with the target debugging information and stores them in a debugging information set.

[0067] In some embodiments, the compiled target debugging information and the identifier associated with the target debugging information may be associated and stored in a debugging information set of the server.

[0068] Of course, in some embodiments, the compiled target debugging information and the identifier associated with the target debugging information may also be stored in a local database. When the debugging information set is stored in the local database, it may be stored offline or online, and there is no limitation on this.

[0069] In some embodiments, in order to facilitate the reading of target debugging information during subsequent use, the target debugging information compiled from a certain boot system can be compiled into a single file, and the single file can be associated with the identification of the boot system and stored in the debugging information set. The single file can be stored in the debugging information set by associating the device model of the electronic device containing the boot system and the version number corresponding to the boot system with the single file; or by associating the name of the source code file used when compiling the boot system with the single file. There is no limitation on the storage method, and it can be freely set according to actual needs.

[0070] Step 307, determining the cause of the fault according to the target debugging information.

[0071] In the embodiment of the present application, there are two situations for the started boot system: one is that the debugging information set stores the target debugging information compiled in advance for the boot system, so that the boot system can be identified and the target debugging information associated with the identifier can be found from the debugging information set, so as to determine the cause of the fault according to the target debugging information; the other is that the debugging information set does not store the target debugging information compiled in advance for the boot system, in this case, the boot system is compiled for the first time and the obtained target debugging information is stored in the debugging information set, so that when the boot system fails again later, the corresponding target debugging information can be directly obtained from the debugging information set.

[0072] In the related art, every time a problem is encountered in the UEFI firmware (Unified Extensible Firmware Interface Firmware, UEFI FW), if compiled debugging data, file analysis, etc. are required, it is necessary to compile once for the UEFI FW version. Obviously, the current debugging method of UEFI FW cannot meet the increasing number of products and user needs in terms of resolution time. Based on this, the following will explain an exemplary application of the embodiment of the present application in an actual application scenario.

[0073] In an embodiment of the present application, a practical management method is provided to generate, acquire, collect, and store the debug file content compiled by UEFI FW, and integrate the debug information data of each version of UEFI FW (ie, boot system) into a database. Figure 4 A conceptual diagram of a fault handling method provided in an embodiment of the present application, such as Figure 4 As shown, first, the source code corresponding to the firmware interface is obtained; then, the UEFI initialization module and the driver execution environment are usually integrated in a firmware interface read-only memory. If an abnormal dump phenomenon occurs during the startup process of UEFI, it means that the UEFI system has a fault. At this time, the decoding data is obtained through the decoding server; or the data information pre-stored in the Create Basic Input Output System Database (Create BIOS DB) program is obtained through the decoding server, and compared with the fault data to obtain the decoding data; finally, the abnormal point is displayed in the source code view. Of course, if possible, the results of the processor call tracing and the values ​​of the local variables are displayed at the same time.

[0074] The present application provides a fault handling method, which may include the following steps 1 to 5:

[0075] Step 1, add Create BIOS DB program in the UEFI FW compilation process to select necessary content (i.e., target debugging information) from the debugging file compiled by UEFI, and the necessary content includes at least one of the following: the offset (OFFSET) of the executable code corresponds to the file name and line number information of the source code; or the release version number of UEFI; or the name of the source code file used by UEFI; or the correspondence between the binary code executed by the processor and the source code file and line number, etc.

[0076] The debug file here refers to the product generated after compiling the UEFI source code. This product occupies more physical storage space and contains sensitive privacy information and non-essential content. Therefore, by selecting the necessary content in the debug file, it can avoid exposing too much privacy and occupy less physical storage space.

[0077] Step 2: All selected information is compiled into a single file (UEFI_BUILD_ID.db). Each file represents and contains the debugging content corresponding to the UEFI version number.

[0078] Step 3, logically name and centrally manage the debugging files of each UEFI version number in the server to form a debugging database (ie, a debugging information set).

[0079] Here, the naming logic is set based on the convenience of extraction and access by the decoding server (Decode). Taking UEFI as an example, the file in step 2 can be placed in the path / SR655 / UEFI / DBE118R.DB (product name / firmware / release number), which can be easily extracted by administrators and the decoding server (Decode).

[0080] Step 4: Develop the back-end Get Database (GetDb) software and provide a Representational State Transfer Application Programming Interface (RestFUL API) for accessing the database for local and remote retrieval.

[0081] Step 5: Develop the backend Decode software, provide RestFul API for local and remote users to input FFDC information (i.e. fault log), and generate analysis data reports for users to search.

[0082] User search can be local search or remote search, where remote search refers to satisfying the search needs from remote computer users. For remote search, the usage scenario can be that after a product user encounters a problem, he searches for the corresponding fault information (FFDC) and reports it to the company's service department. The company's service department uploads the FFDC to a specific decoding server (Decode), and the decoding server (Decode) can retrieve the corresponding DB content through the API, compare it with the FFDC content, and then produce an analysis report.

[0083] Here, the purpose of inputting FFDC information is to analyze the cause of product failure. This is because: product failure information (FFDC) alone cannot solve the problems encountered by users. Usually, engineers need to obtain FFDC information and manually query files, source codes, etc. to solve the problems for users. Therefore, by providing a decoding server (Decode) program to query files, it can reduce manpower expenditure and speed up problem solving.

[0084] The method provided in the embodiment of the present application has the following advantages:

[0085] (1) The database can be accessed by providing a software API, thereby achieving the purpose of automatically requesting debugging information without having to go through the lengthy UEFI compilation process again to obtain debugging information.

[0086] (2) The speed of obtaining UEFI debugging information is fast. It should be noted that the debugging information here is not equivalent to the debugging file in step 1, but refers to the necessary content extracted from the debugging file, that is, the target debugging information.

[0087] Based on the foregoing embodiments, an embodiment of the present application provides a fault handling device, which includes the modules included and the units included in the modules, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0088] Figure 5 Schematic diagram of the structure of the fault handling device of the embodiment of the present application, as shown in Figure 5 As shown, the device 500 includes a startup module 501, a determination module 502 and an acquisition module 503, wherein: the startup module 501 is used to start the boot system; the determination module 502 is used to determine the identification of the boot system when a fault occurs during the boot system startup process; the acquisition module 503 is used to obtain target debugging information associated with the identification from a pre-stored debugging information set; the determination module 502 is also used to determine the cause of the fault based on the target debugging information.

[0089] In some embodiments, the device also includes a sending module and a receiving module, the sending module is used to send an access request carrying the identifier to the server storing the debugging information set; the receiving module is used to receive the target debugging information associated with the identifier returned by the server.

[0090] In some embodiments, the device also includes a compilation module, a selection module and a storage module. The compilation module is used to compile the boot system to obtain candidate debugging information if the target debugging information is not obtained from the debugging information set; the selection module is used to select information that meets the conditions in the candidate debugging information to obtain the target debugging information; the storage module is used to associate the identifier with the target debugging information and store it in the debugging information set.

[0091] In some embodiments, the sending module is further used to send the identifier and the target debugging information to a server, so that the server associates the identifier with the target debugging information and stores them in the debugging information set.

[0092] In some embodiments, the acquisition module 503 is used to acquire a fault log generated when the boot system fails; the determination module 502 is used to determine the cause of the failure based on the fault log and the target debugging information.

[0093] In some embodiments, the device also includes a search module, which is used to search for a second executable code that is identical to the first executable code from the target debugging information; a determination module 502 is used to obtain the source code of the second executable code based on the second executable code; and determine the location of the source code of the second executable code in the source code of the boot system.

[0094] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0095] It should be noted that in the embodiments of this application Figure 5 The division of modules in the fault handling device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0096] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0097] An embodiment of the present application provides an electronic device, Figure 6 Schematic diagram of the hardware entity of the electronic device of the embodiment of the present application, such as Figure 6 As shown, the electronic device 600 includes a memory 601 and a processor 602. The memory 601 stores a computer program that can be run on the processor 602. When the processor 602 executes the program, the steps in the method provided in the above embodiment are implemented.

[0098] It should be noted that the memory 601 is configured to store instructions and applications executable by the processor 602, and can also cache data to be processed or processed by the processor 602 and various modules in the electronic device 600 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0099] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0100] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0101] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0102] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0103] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0104] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0105] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0106] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0107] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0108] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0109] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0110] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0111] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0112] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0113] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A fault handling method, characterized in that: The method comprises: Start the boot system; When a failure occurs during the booting process of the booting system, determining an identification of the booting system; Acquire target debugging information associated with the identifier from a pre-stored debugging information set; Acquire a fault log generated when the boot system fails; the fault log includes a first executable code that causes the boot system to fail during startup; Finding a second executable code that is the same as the first executable code from the target debugging information; According to the second executable code, obtaining a source code of the second executable code; The location of the source code of the second executable code in the source code of the boot system is determined.

2. The method according to claim 1, characterized in that The step of acquiring target debugging information associated with the identifier from a pre-stored debugging information set includes: Sending an access request carrying the identifier to a server storing the debugging information set; Receive target debugging information associated with the identifier returned by the server.

3. The method according to claim 1, characterized in that The method further comprises: If the target debugging information is not obtained from the debugging information set, compiling the boot system to obtain candidate debugging information; Selecting information that meets a condition from the candidate debugging information to obtain the target debugging information; The identifier is associated with the target debugging information and stored in the debugging information set.

4. The method according to claim 3, characterized in that The associating the identifier with the target debugging information and storing them in the debugging information set includes: The identifier and the target debugging information are sent to a server, so that the server associates the identifier with the target debugging information and stores them in the debugging information set.

5. The method according to any one of claims 1 to 4, characterized in that: The boot system is a Unified Extensible Firmware Interface (UEFI) system.

6. A fault handling device, characterized in that: include: A startup module is used to start the boot system; A determination module, used to determine the identification of the guidance system when a failure occurs during the startup of the guidance system; An acquisition module, used for acquiring target debugging information associated with the identifier from a pre-stored debugging information set; The acquisition module is further used to acquire a fault log generated when the boot system fails; the fault log includes a first executable code that causes the boot system to fail during the startup process; A search module, used for searching the target debugging information for a second executable code that is identical to the first executable code; According to the second executable code, obtaining a source code of the second executable code; Determine the location of the source code of the second executable code in the source code of the boot system; The determination module is further used to determine the cause of the fault according to the target debugging information.

7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.