A method of printing user state segment error message under Linux

Source: Internet
Author: User

Citation: Vedon Embedded Video Phase 31st Section 3rd _ Application Debug Configuration Modify kernel Print user state segment error message _p "6th minute.

1. Configure the kernel support Debug_user (tick Kernel hacking, Verbose USER fault messages[*] (Video section 8:23)

2. Set Bootargs, add parameter User_debug = 0xFF. User_debug each of the representatives to set different modes, the specific mode can refer to the file: Include/asm-arm/system.h under the udbg_xxx.

If a program with a segment error is executed, a detailed error message is printed.

You can locate the wrong location based on PC values and individual register values.

First disassembly of the problem application: arm-linux-objdump-d FileName > Anotherfile

Then open anotherfile to view disassembly and locate the instructions at the PC value.

Report:

View the address range of the system call function: View the file System.map.

View the address of a function in the current system: View/proc/kallsyms file (large file, preferably relocated to file before viewing)

View function Call Order: Strace-o xxxfile./xxx and then view Xxxfile

A method of printing user state segment error message under Linux

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.