Some programs can be compiled, but segment fault (segment errors) occur at run time. This is usually caused by a pointer error. But this is not the same as compiling errors will prompt the file-> line, but there is no information, so that our debugging becomes difficult.
1. In general Linux systems, the default is not to produce a core dump file. Ulimit-c to view the size of the core dump file, typically s
only when an error is encountered during a user session. In addition, the user can generate the class file by performing an Oracle trace event (see later), which is saved in the directory specified by the User_dump_dest parameter in the file format oraxxxxx.trc,xxxxx as the process number (or thread number) for creating the file.Second, Oracle tracking eventsOracle provides a class of commands to dump (dump
the control file entry in the dump header of all data files.Alter session set events 'immediate trace name file_hdrs Level 2'; -- indicates the general file header of all data files in dump.Alter session set events 'immediate trace name file_hdrs level 10'; -- indicates the full file header of all data files in dump.
Always write once a time C + +, some things are always used up forget ... Remember how to debug the core dump with GDB before you forget it.You first need to set the size of the core file, which is 0 by default so no core file will be generated$ ulimit-c Unlimitedand add it to the compiled flag.-g-rdynamicGet the dynamic static symbol table.And then Make $ # do something to make it core dumpAssuming the exe
when an error is encountered during a user session. In addition, the user can generate the class file by performing an Oracle trace event (see later), which is saved in the directory specified by the User_dump_dest parameter in the file format oraxxxxx.trc,xxxxx as the process number (or thread number) for creating the file.
Second, Oracle tracking events
Oracle provides a class of commands to dump (dump
The concept of core dump:A core dump is the recorded state of the working memory of a computer in a specific time, generally when The program has terminated abnormally (crashed). In practice, other key pieces of program state is usually dumped at the same time, including the processor registers, WHI CH may include the program counter and stacks pointer, memory management information, and other processor and operating Sys TEM flags and information. The
How to use dump files
I recently developed a Windows program (win7/Win8). In some cases, crash occurs. If debugging is simple on a self-developed machine: run the program, then vs attach can be used on the process, but it is unrealistic to install vs on each QA machine. Therefore, we need to use the dump file.
Microsoft has an article on how to create a
Dump files are often encountered at work. Sometimes a dump is obtained, but more information is not provided, which may cause problems during import. If a user
Dump files are often encountered at work. Sometimes a dump is obtained
instance in one step). At this time, the program is automatically adjusted to the line that crashes in the source code, in addition, the call stack contains complete stack information, and the value of temporary variables can also be displayed through vs, as well as module information and thread information.
Http://blog.csdn.net/vagrxie/archive/2009/07/31/4398721.aspx
C ++ core dump problem Locating Method
Http://wenku.baidu.com/view/3b49ffdba58da01
Use awk to parse dump files
Dump files are often encountered at work. Sometimes a dump is obtained, but more information is not provided, which may cause problems during import. If a user's default tablespace is user, but the table's tablespace in
explains why some large software will have debug version exists, because debug is not optimized version, contains the complete symbol table information, easy to debug), and rerun, Get a new core and view it, such as:This time it is more obvious that the value in B is not a problem, the problem is a, the address is an illegal region, that is, a does not allocate
crashdump. DMP file in C:/drive
2)-C option shoshould immediately come after-P % LD
For more information about the registry, seeHttp://www.codeproject.com/KB/debug/automemorydump.aspx
How to automatically generate a memory dump file:How to automatically generate a memorp dump file?
We need to modify the registry for this.
Editing the Registry
On an x86 computer
There was a recent heap memory overflow for a Java service, then zombie, and a dump file was generated with the Jmap command before restarting the service for later analysis.
command to generate dump file:
Jmap-dump:format=b,file=20170307.dump 16048
After file is the custom filename, and the last number is the PID of the process.
use JVISUALVM to analyze
Commands for the export ledump File Include expimp and expdpimpdp. For dump files, we cannot extract data directly, but we can
Commands of the Oracle dump File Include exp/imp and expdp/impdp. For dump files, we cannot extract data directly, but we can
Commands of the O
To extract the header files hidden in the iPhone SDK, you must also use a powerful tool class-dump.
Class-dump is a tool that extracts class declarations from object-C, with this feature, we can find the unknown classes in the iPhone SDK and the methods without public classes.
Download connection of class-dump
EnvironmentProduct: Lotus DominoPlatforms: Aix, Solaris, and WindowsVersion: Lotus Domino Server 6.5, 7.0
ProblemThe memory dump information reflects the memory usage of the Domino server. In many cases, memory dump is required to analyze Memory leakage issues. Most of the time, we need to collect multiple memory dump
Core dump refers to the mechanism by which kernel writes the current memory of a process to a file when the process has an exception and exits execution. The core dump mechanism is very important in the process of program development, and the core file can be used to track the occurrence point of anomaly effectively.
1.linux does not generate a core file by default, so you must first set it up with the Ulim
The phenomenon of suspended animation in Java services (such as the Web page cannot open, open a blank page, the speed of access to a dramatic decline), you need to engineer in the first time dump JVM memory data, to analyze the reason. So how do I get the JVM memory dump file?Execute under the CMD console or Linux terminal in Windows:Jmap-dump:format=b,file=yymmddhhmm.dump PID(where YYmmddhhmm a custom fil
breakpoint in the Dvmdexfileopenpartial function in libdvm.so:Then we click Continue to run, the program will be paused at dvmdexfileopenpartial () This function, R0 register to point to the address is the Dex file in memory address, R1 Register is the size of the Dex file:Then we can use Ida's script command to dump the Dex file in memory.
123456789
static main(void){auto fp, begin, end, dexbyte;fp = fopen("C:\\dump.dex", "wb");begi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.