Linux under Core file debugging

Source: Internet
Author: User

1,ulimit-a Viewing default parameters

2,ULIMIT-C 1024 Set the core file size, if more than 1024 blocks, will not produce a core file

Note: tune2fs-l/dev/sda8 output partition information, including block size, here is 4096

Program:

Compilation: g++-G test.cpp

3,

GDB--core=core (core file name)

Gdb-c Core

4,BT found no stack information, called File advertisement

5, call the BT output stack information again

The error occurs in line 8th of the program Fun () function, which references a null pointer.

Linux under Core file debugging

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.