Flexible error trace mechanism
Abstract
For a flexible error trace mechanism, embodiments may be implemented for C/C++ interface libraries, or in programs written in C/C++ or other programming languages. In one embodiment, when an error occurs in a function call, a trace element may be recorded that may include the source file name, function name, line number and other information that may be used to identify the error. In one embodiment, the library function may call a plurality of library functions in a function call stack. For each of the plurality of library functions, if the library function generates an error, an error trace element may be added to the error trace. After completion of the library function, the program may obtain the error trace for the library function. The error(s), if any, may be debugged using the information in the obtained error trace.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 8.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system, comprising: a processor; and a memory comprising program instructions, wherein the program instructions are executable by the processor to implement: in each of two or more threads of a multithreaded program, for each error generated by one or more functions executed in the thread, store an error trace element in thread private data of the respective thread, wherein the error trace element is stored by the thread to the respective thread private data in accordance with an application programming interface (API) to an error trace mechanism, and wherein the thread private data is a mem
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- "Debugging HDF5 Applications", http://hdf.ncsa.uiuc.edu/HDF5/doc/Debugging.html, printed on Nov. 30, 2006.
- "H5E: Error Interface", Feb. 1, 2002, http://web.archive.org/web/20021220022628/http://hdf.ncsa.uiuc.edu/HDF5/doc/RM-H5E.html, retrived on Oct. 31, 2007.
- "The Error Handling Interface(H5E)", http://hdf.ncsa.uiuc.edu/HDF5/doc/Errors.html, printed on Nov. 30, 2006.
- Budlong, "Logging and Tracing in C++ Simplified," Aug. 2001, 2 pages.
- Java Tech, Chapter 2: Java: Advanced, "Debugging Java," Oct. 15, 2005, 4 pages.