[Skill] [Debug] [GDB] using core dump for GDB

Source: Internet
Author: User

Core Dump Literacy: Https://wiki.archlinux.org/index.php/Core_dump

1. Man-made core dump

1.1 Generate core dump online in real time. The process does not stop.

[Email protected] ~]# pgrep kingkong 3850  ~3850(gdb) generate-core-file Saved corefile core. 3850
[Email protected] ~]# ll-h core.3850
-rw-r--r--1 root root 1.2G may 10:37 core.3850
[Email protected] ~]# pgrep KingKong
3850

1.2 A signal to the process that causes core dump to occur

7~]# pgrep kingkong3850~]# Kill-one3850

 

2. Commissioning

Set Enable Core dump file

[[email protected] kk]# Ulimit-c0--cunlimited

Prepare the generated core file, and the executable binary file. Use GDB to view.

/home/tong/workspace/kk/--https-core-dump [[Email protected]] [:  Wu ]> Gdb-core core. 34373

[Skill] [Debug] [GDB] using core dump for GDB

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.