Dump related knowledge

Source: Internet
Author: User

1. Before initializing the Breakpad, the dump file directory must be created, otherwise the BREAKPAD server will not write the dump properly, which causes the Breakpad client to wait for the service dump to write the message and finally loses its response.
2. The four classes that are commonly used.
1) Common: basic functionality, containing a GUID wrapper and HTTP upload class.
2) Exception_handler: The class used to capture the rush.
3) The service end of the Crash_generation_server:breakpad, which is used to crawl the dump when it is generated;
4) Crash_generation_client:breakpad client, used to capture the current process of the collapse.
3.dump can be used outside the process kernel process
1) When used outside of the process, only use Exceptionhandler. Exceptionhandler hangs on exception handling, CRT parameter error handling, purecall error handling, and when crash occurs, Breakpad writes the dump, and then the callback notifies the consumer.
2) out-of-process write dump, the user will define a Exceptionhandler object, which has a pipe name. Also need to write a server process, the server process is responsible for: Write dump, upload dump, when the customer process occurs crash, only need to pass the event to notify the service process. The server process only needs to define a Crashgenerationserver class object provided by the Breakpad. Client processes and service processes are communicated through pipelines, and communication can occur only during the client process initialization phase, where the server process starts before the client process, or the client process uses in-process dump capture because the pipeline is not connected.

A Windows System Exception Handling order

1. Kernel Exception Handling
2. Debugger Exception Handling
3. Process Veh
3. Thread Seh
4. Process SetUnhandledExceptionFilter () registered functions
5. The system default exception handler function Unhandledexcetionfilter (). UnhandledExceptionFilter () is handled according to the items in the HKLM\Software\Microsoft\Windows NT\CurrentVersion\AeDebug subkey.

Dump related knowledge

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.