CN111966576A - Abnormal code positioning method and device, electronic equipment and storage medium - Google Patents

Abnormal code positioning method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111966576A
CN111966576A CN202010602724.9A CN202010602724A CN111966576A CN 111966576 A CN111966576 A CN 111966576A CN 202010602724 A CN202010602724 A CN 202010602724A CN 111966576 A CN111966576 A CN 111966576A
Authority
CN
China
Prior art keywords
code
abnormal
source code
mapping
file name
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
Application number
CN202010602724.9A
Other languages
Chinese (zh)
Inventor
谷云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010602724.9A priority Critical patent/CN111966576A/en
Publication of CN111966576A publication Critical patent/CN111966576A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0778Dumping, i.e. gathering error/state information after a fault for later diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The application discloses a positioning method and device of an abnormal code, electronic equipment and a storage medium, and relates to the technical field of computers, in particular to the technical field of data processing and cloud computing. The specific implementation scheme is as follows: acquiring the position information of the abnormal compression code; acquiring a mapping file corresponding to the abnormal compressed code, wherein the mapping file comprises a position information mapping relation between the compressed code and a source code; and determining the position information of the abnormal source code according to the position information of the abnormal compressed code and the mapping relation of the position information of the compressed code and the source code. The abnormal code positioning method, the abnormal code positioning device, the electronic equipment and the storage medium can accurately position the abnormal source code.

Description

Abnormal code positioning method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of computers, in particular to the technical field of data processing and cloud computing, and specifically relates to a method and a device for positioning an abnormal code, an electronic device and a storage medium.
Background
When the front-end code is abnormal in the running process, the position information of the compressed code after the packaging and the compression is recorded in the position information of the stack information after the packaging and the compression after the packaging.
Disclosure of Invention
The application provides a method and a device for positioning an abnormal code, electronic equipment and a storage medium.
According to a first aspect of the present application, there is provided a method for locating an exception code, including: acquiring the position information of the abnormal compression code; acquiring a mapping file corresponding to the abnormal compressed code, wherein the mapping file comprises a position information mapping relation between the compressed code and a source code; and determining the position information of the abnormal source code according to the position information of the abnormal compressed code and the mapping relation of the position information of the compressed code and the source code.
According to a second aspect of the present application, there is provided an apparatus for locating an exception code, including: the first acquisition module is used for acquiring the position information of the abnormal compression code; the second obtaining module is used for obtaining a mapping file corresponding to the abnormal compression code, and the mapping file comprises a position information mapping relation between the compression code and the source code; and the determining module is used for determining the position information of the abnormal source code according to the position information of the abnormal compressed code and the position information mapping relation between the compressed code and the source code.
According to a third aspect of the present application, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for locating an exception code according to the embodiment of the first aspect of the present application.
According to a fourth aspect of the present application, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for locating an abnormal code according to the embodiments of the first aspect of the present application.
According to the technical scheme of the application, the position information of the abnormal source code is determined according to the position information of the abnormal compressed code and the position information mapping relation between the compressed code and the source code in the mapping file, and the position of the abnormal source code can be accurately positioned.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a flowchart illustrating a method for locating an exception code according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for locating an exception code according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a mapping file according to one embodiment of the present application;
FIG. 4 is a schematic diagram of an apparatus for locating an exception code according to one embodiment of the present application;
fig. 5 is a block diagram of an electronic device for implementing the abnormal code locating method according to the embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The following describes a method, an apparatus, an electronic device, and a storage medium for locating an exception code according to an embodiment of the present application with reference to the drawings.
Fig. 1 is a flowchart illustrating a method for locating an exception code according to an embodiment of the present application. It should be noted that an execution subject of the abnormal code positioning method in the embodiment of the present application is a positioning device of an abnormal code, and the positioning device of an abnormal code may specifically be a hardware device, or software in a hardware device, or the like. The hardware devices are, for example, terminal devices, servers, and the like. As shown in fig. 1, the method for locating an exception code according to the embodiment of the present application includes the following steps:
s101, acquiring the position information of the abnormal compression code.
Specifically, when an exception occurs during the running of the front-end code, the location information of the exception compressed code, for example, the file name and row-column number information of the exception compressed code, may be obtained. The file name of the abnormal compression code is the name of the file in which the abnormal compression code is located, for example, compressed file 1. The row and column number information of the abnormal compressed code, i.e. the row number and column number of the abnormal compressed code in the compressed code corresponding to the compressed file 1, for example, row 5 and column 3.
S102, obtaining a mapping file corresponding to the abnormal compression code, wherein the mapping file comprises a position information mapping relation between the compression code and the source code.
Specifically, when the source code in the source file is packed and compressed, a mapping file, such as a sourcemap file, is generated in addition to the compressed code in the compressed file, where the mapping file includes a mapping relationship between the compressed code and the location information of the source code. The mapping relationship between the position information of the compressed code and the position information of the source code is the mapping relationship between the position information of the compressed code and the position information of the source code. The position information mapping relation between the compressed code and the source code comprises the following steps: the mapping relationship between the file name of the compressed code and the file name of the source code (corresponding to field 4 in fig. 3), and the mapping relationship between the row and column number information of the compressed code and the row and column number information of the source code (corresponding to field 6 in fig. 3) are, for example, compressed file 1 corresponds to source file 1, and compressed code row 5 column 3 corresponds to source code row 10 column 9.
S103, determining the position information of the abnormal source code according to the position information of the abnormal compressed code and the mapping relation of the compressed code and the source code.
Specifically, the location information of the abnormal source code, such as the file name and row and column number information of the abnormal source code, is determined according to the location information of the abnormal compressed code obtained in step S101 and the mapping relationship between the compressed code and the source code obtained in step S102. . For example, according to the compressed file 1 and the compressed code row 5 and column 3 obtained in step S101, and the compressed file 1 in the position mapping relationship obtained in step S102 corresponds to the source file 1, and the compressed code row 5 and column 3 corresponds to the source code row 10 and column 9, it is determined that the position information of the abnormal source code is the source file 1 and the source code row 10 and column 9.
According to the abnormal code positioning method, the position information of the abnormal source code is determined according to the position information of the abnormal compressed code and the position information mapping relation between the compressed code and the source code in the mapping file, the position of the abnormal source code can be accurately positioned, and therefore the efficiency of positioning problems and solving problems of research and development personnel is improved.
Fig. 2 is a flowchart illustrating a method for locating an exception code according to another embodiment of the present application. The method for locating an exception code in this embodiment is a possible implementation of the method for locating an exception code in the embodiment shown in fig. 1. As shown in fig. 2, the method for locating an exception code according to the embodiment of the present application includes the following steps:
the step S101 in the embodiment shown in fig. 1 may specifically include the following steps S201 to S202.
S201, stack information of the abnormal compression code is obtained.
S202, acquiring the position information of the abnormal compression code according to the stack information of the abnormal compression code.
Specifically, when an exception occurs during the running of the front-end code, stack information of the exception compressed code may be obtained, and location information of the exception compressed code, such as a file name and row and column number information of the exception compressed code, may be obtained according to the stack information.
As a possible implementation, the mapping file also includes the file name of the compression code (corresponding to field 7 in fig. 3). The step S102 in the embodiment shown in fig. 1 specifically includes the following step S203.
S203, acquiring a mapping file corresponding to the abnormal compression code according to the file name of the abnormal compression code and the file name of the compression code in the mapping file.
Specifically, according to the file name of the abnormal compression code, for example, the compression file 1, obtained in step S202, the mapping file of which the file name of the compression code is the compression file 1 in the mapping file is obtained as the mapping file corresponding to the abnormal compression code.
S204, determining the position information of the abnormal source code according to the position information of the abnormal compressed code and the mapping relation of the compressed code and the source code.
Specifically, step S204 in this embodiment is the same as step S103 in the embodiment shown in fig. 1, and the detailed process is not described here again.
As a possible implementation, the mapping file further includes source code corresponding to the file name of the source code (corresponding to field 7 in fig. 3). The method for locating an abnormal code in this embodiment may further include the following steps S205 to S206 after step S103 in the embodiment shown in fig. 1.
S205, acquiring the source code corresponding to the file name of the abnormal source code according to the file name of the abnormal source code.
Specifically, the specific content in the file name of the abnormal source code, that is, the source code corresponding to the file name of the abnormal source code is obtained in the mapping file obtained in step S203 according to the file name of the abnormal source code obtained in step S204.
S206, acquiring the abnormal source code in the source code corresponding to the file name of the abnormal source code according to the row and column number information of the abnormal source code.
Specifically, the corresponding abnormal source code is obtained from the source code corresponding to the file name of the abnormal source code obtained in step S205 according to the row and column number information of the abnormal source code obtained in step S204, for example, the source code corresponding to row 10 and column 9 is obtained from the source code corresponding to the source file 1 obtained in step S205 according to the abnormal source code row 10 and column 9 obtained in step S204, and is determined to be the abnormal source code.
According to the abnormal code positioning method, the position information of the abnormal source code is determined according to the position information of the abnormal compressed code and the position information mapping relation between the compressed code and the source code in the mapping file, the position of the abnormal source code can be accurately positioned, and therefore the efficiency of positioning problems and solving problems of research and development personnel is improved. And acquiring the corresponding abnormal source code according to the positioned position of the abnormal source code and the mapping file.
In practical applications, the mapping file may be as shown in fig. 3, and includes the following 7 fields:
field 1: the version number of the mapping file, for example version 3.0.
Field 2: the file name of the compressed code, for example, compressed file 1.
Field 3: the directory where the file name of the source code is located.
Field 4: the mapping relationship between the file name of the compression code and the file name of the source code, for example, compression file 1 corresponds to source file 1.
Field 5: all variable names and attribute names of the source code.
Field 6: the mapping relationship between the row and column number information of the compressed code and the row and column number information of the source code, for example, row 5 and column 3 of the compressed code correspond to row 10 and column 9 of the source code, and may be a character string of the row and column number information recorded by VQL encoding.
Field 7: the entry is an array, and each element corresponds to the source code corresponding to the file name of each source code in the field 4.
Fig. 4 is a schematic structural diagram of an exception code locating device according to an embodiment of the present application. As shown in fig. 4, the device 40 for locating an abnormal code according to the embodiment of the present application includes: a first obtaining module 41, a second obtaining module 42 and a determining module 43.
The first obtaining module 41 is configured to obtain location information of the abnormal compression code.
The second obtaining module 42 is configured to obtain a mapping file corresponding to the abnormal compressed code, where the mapping file includes a mapping relationship between the compressed code and the location information of the source code.
And the determining module 43 is configured to determine the location information of the abnormal source code according to the location information of the abnormal compressed code and the mapping relationship between the compressed code and the source code.
According to an embodiment of the present application, the first obtaining module 41 includes: the first acquisition unit is used for acquiring stack information of the abnormal compression codes; and a second acquisition unit configured to acquire position information of the abnormally compressed code according to stack information of the abnormally compressed code.
According to one embodiment of the application, the location information includes file name and rank number information.
According to one embodiment of the application, the mapping relationship of the position information of the compressed code and the source code comprises: compressing the mapping relation between the file name of the code and the file name of the source code; and the mapping relation between the row and column number information of the compressed code and the row and column number information of the source code.
According to an embodiment of the present application, the mapping file further includes source code corresponding to a file name of the source code, and the device 40 for locating an exception code further includes: the third acquisition module is used for acquiring the source code corresponding to the file name of the abnormal source code according to the file name of the abnormal source code; and the fourth acquisition module is used for acquiring the abnormal source code in the source code corresponding to the file name of the abnormal source code according to the row and column number information of the abnormal source code.
According to an embodiment of the present application, the mapping file further includes a file name of the compressed code, and the second obtaining module is specifically configured to: and acquiring a mapping file corresponding to the abnormal compression code according to the file name of the abnormal compression code and the file name of the compression code in the mapping file.
It should be noted that, for details not disclosed in the device for positioning an exception code in the embodiment of the present application, please refer to details disclosed in the method for positioning an exception code in the above embodiment of the present application, which are not described herein again.
According to the positioning device for the abnormal code, the position information of the abnormal source code is determined according to the position information of the abnormal compressed code and the position information mapping relation between the compressed code and the source code in the mapping file, the position of the abnormal source code can be accurately positioned, and then the efficiency of positioning problems and solving problems of research and development personnel is improved. And acquiring the corresponding abnormal source code according to the positioned position of the abnormal source code and the mapping file.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 5, the electronic apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 5, one processor 501 is taken as an example.
Memory 502 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor, so that the at least one processor executes the method for locating the abnormal code provided by the application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the method for locating an exception code provided herein.
The memory 502, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first obtaining module 41, the second obtaining module 42, and the determining module 43 shown in fig. 4) corresponding to the abnormal code locating method in the embodiment of the present application. The processor 501 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 502, namely, implements the method for locating abnormal code in the above method embodiments.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device according to the location of the abnormal code, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to the exception code located electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the method for locating an abnormal code may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus for the location of the abnormal code, such as an input device such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the position information of the abnormal source code is determined according to the position information of the abnormal compressed code and the position information mapping relation between the compressed code and the source code in the mapping file, so that the position of the abnormal source code can be accurately positioned, and the efficiency of positioning and solving problems of research and development personnel is improved. And acquiring the corresponding abnormal source code according to the positioned position of the abnormal source code and the mapping file.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A method for locating an abnormal code comprises the following steps:
acquiring the position information of the abnormal compression code;
acquiring a mapping file corresponding to the abnormal compressed code, wherein the mapping file comprises a position information mapping relation between the compressed code and a source code; and
and determining the position information of the abnormal source code according to the position information of the abnormal compressed code and the mapping relation of the position information of the compressed code and the source code.
2. The positioning method according to claim 1, wherein the obtaining of the location information of the abnormal compression code comprises:
acquiring stack information of the abnormal compression code; and
and acquiring the position information of the abnormal compression code according to the stack information of the abnormal compression code.
3. The positioning method according to claim 1, wherein the location information includes file name and rank number information.
4. The positioning method according to claim 3, wherein the mapping relationship of the position information of the compressed code and the source code comprises:
compressing the mapping relation between the file name of the code and the file name of the source code; and
and compressing the mapping relation between the row and column number information of the code and the row and column number information of the source code.
5. The location method of claim 3, wherein the mapping file further comprises source code corresponding to a file name of the source code, the location method further comprising:
acquiring a source code corresponding to the file name of the abnormal source code according to the file name of the abnormal source code; and
and acquiring the abnormal source code in the source code corresponding to the file name of the abnormal source code according to the row and column number information of the abnormal source code.
6. The location method according to claim 3, wherein the mapping file further includes a file name of a compressed code, and the obtaining of the mapping file corresponding to the abnormal compressed code includes:
and acquiring a mapping file corresponding to the abnormal compression code according to the file name of the abnormal compression code and the file name of the compression code in the mapping file.
7. An apparatus for locating an exception code, comprising:
the first acquisition module is used for acquiring the position information of the abnormal compression code;
the second obtaining module is used for obtaining a mapping file corresponding to the abnormal compression code, and the mapping file comprises a position information mapping relation between the compression code and the source code; and
and the determining module is used for determining the position information of the abnormal source code according to the position information of the abnormal compressed code and the position information mapping relation between the compressed code and the source code.
8. The positioning device of claim 7, wherein the first acquisition module comprises:
a first obtaining unit, configured to obtain stack information of the abnormal compression code; and
and the second acquisition unit is used for acquiring the position information of the abnormal compression code according to the stack information of the abnormal compression code.
9. The positioning device of claim 7, wherein the location information includes file name and rank number information.
10. The positioning apparatus according to claim 9, wherein the mapping relationship of the position information of the compressed code and the source code comprises:
compressing the mapping relation between the file name of the code and the file name of the source code; and
and compressing the mapping relation between the row and column number information of the code and the row and column number information of the source code.
11. The location device of claim 9, wherein the mapping file further includes source code corresponding to a file name of the source code, the location device further comprising:
the third obtaining module is used for obtaining the source code corresponding to the file name of the abnormal source code according to the file name of the abnormal source code; and
and the fourth obtaining module is used for obtaining the abnormal source code in the source code corresponding to the file name of the abnormal source code according to the row and column number information of the abnormal source code.
12. The positioning device according to claim 9, wherein the mapping file further includes a file name of the compressed code, and the second obtaining module is specifically configured to:
and acquiring a mapping file corresponding to the abnormal compression code according to the file name of the abnormal compression code and the file name of the compression code in the mapping file.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of locating exception code of any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of locating an exception code of any one of claims 1-6.
CN202010602724.9A 2020-06-29 2020-06-29 Abnormal code positioning method and device, electronic equipment and storage medium Pending CN111966576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010602724.9A CN111966576A (en) 2020-06-29 2020-06-29 Abnormal code positioning method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010602724.9A CN111966576A (en) 2020-06-29 2020-06-29 Abnormal code positioning method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111966576A true CN111966576A (en) 2020-11-20

Family

ID=73361073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010602724.9A Pending CN111966576A (en) 2020-06-29 2020-06-29 Abnormal code positioning method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111966576A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1704908A (en) * 2004-05-26 2005-12-07 华为技术有限公司 Method for locating program abnormity
CN111090582A (en) * 2019-11-22 2020-05-01 东软集团股份有限公司 Error code positioning method and device, storage medium and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1704908A (en) * 2004-05-26 2005-12-07 华为技术有限公司 Method for locating program abnormity
CN111090582A (en) * 2019-11-22 2020-05-01 东软集团股份有限公司 Error code positioning method and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘佩;: "自动化软件错误定位方法的分析与比较", 信息与电脑(理论版), no. 17 *

Similar Documents

Publication Publication Date Title
CN111080243A (en) Service processing method, device, system, electronic equipment and storage medium
CN111523001B (en) Method, device, equipment and storage medium for storing data
CN111581216A (en) Data processing method, device, equipment and storage medium
CN112069201A (en) Target data acquisition method and device
CN110706147B (en) Image processing environment determination method, device, electronic equipment and storage medium
CN110619002A (en) Data processing method, device and storage medium
CN111177476A (en) Data query method and device, electronic equipment and readable storage medium
CN112565356B (en) Data storage method and device and electronic equipment
CN111475164A (en) Component dependency relationship detection method and device and electronic equipment
CN112269706A (en) Interface parameter checking method and device, electronic equipment and computer readable medium
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN110752968A (en) Performance benchmark test method and device, electronic equipment and storage medium
CN111177479A (en) Method and device for acquiring feature vectors of nodes in relational network graph
CN111985760A (en) Data content evaluation method and device, electronic equipment and storage medium
CN111339344B (en) Indoor image retrieval method and device and electronic equipment
CN111966576A (en) Abnormal code positioning method and device, electronic equipment and storage medium
CN111596897B (en) Code multiplexing processing method and device and electronic equipment
CN112148596B (en) Method and device for generating error reporting content of deep learning framework
CN111737404A (en) Data processing method, device, equipment and computer storage medium
CN111966421A (en) Page component operation monitoring method, device, equipment and storage medium
CN112346512A (en) Time synchronization method and device
CN111581049A (en) Method, device, equipment and storage medium for monitoring running state of distributed system
CN112836153A (en) Page processing method and device for hosted application, electronic device and readable storage medium
CN111292223A (en) Graph calculation processing method and device, electronic equipment and storage medium
CN112541718A (en) Material processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination