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