[Accessviolation] 2 GB address access error

Source: Internet
Author: User
If there is no special instructions on the environment is x86 series of cpuia-32 if it is 64-bit will be a special example of the reference swd more detailed instructions, please see the following swd book instructions and later blog will understand the Deviation I also ask my predecessors and comrades-in-arms to correct me. After all, I read a book and record the idea of tianyuan. qq604015858 is welcome.

If there is no special instructions on the environment are x86 series cpu ia-32 if it is 64-bit will be a special example of the examples are cited swd more detailed instructions, please see the following swd book instructions and later blog will have understanding Deviation please refer to your predecessors and comrades-in-arms for correction. After all, I read a book and record the ideas of tianyuan. qq 604015858 is welcome.

If there is no special instructions on the environment is x86 series cpu ia-32 if it is 64-bit will be special instructions
Examples reference swd. For more details, see swd.
In the following illustration, and in the future, there will be some misunderstandings in blogs. Please also ask your predecessors and comrades to correct yourself. After all, I also read a book and record the ideas that will inevitably have a natural place.
Qq 604015858

For windows, a task is a thread.
Cpu protection for tasks is classified into inter-task protection and intra-task protection.
Inter-task protection is implemented through the segment and page mechanisms
Task protection is implemented through Permissions

The following topic describes task protection.
Each app has 4 GB space and 2 GB space for system data and code ing.
Low 2G app for your own use when you access the system space in high 2G space without granting access privileges, the following error occurs:

Access violation-code c0000005 (first chance)
00401035 c705808080a022000000 mov dword ptr ds: [0A0808080h], 22 h ds: 0023: a0808080 = ????????

Put 22h at a0808080. The error message is that the system space is not authorized and will be rejected.

Ps: The following is my windbg configuration information
(Since I am confused when I access windbg, I am posting my settings below. I hope I can give a prompt to my new contacts so that these settings may not be formal, but at least the results will come out)
1: Obtain windbg
Go to the Microsoft website to download the windows debugging tool set or download
After installation, you will find many gadgets in the Debugging Tools for Windows directory. windbg.exe is one of them. This is a ammunition library. windbg is just one of the desert e.

2: symbol table settings
System symbol settings: see the blog http://blog.chinaunix.net/uid-24709751-id-4217635.html.
Do not set the pdb of the object to be debugged after this is done:
App symbol settings:

You only need to set "D: \ zwkkkkkkkkkkkkkkkkkk \ Baidu cloud Manager \ corare10dvd \ DVD6 MFC programming \ swd \ bin \ Debug "is followed by system symbol settings. If you do not need to add windbg here here

If you have more than one pdb directory, you need to write multiple paths here.

Another problem is how this dialog box appears?
Symbol settings under file in the windbg menu bar
Windbg is compatible with many paths. For details, refer to windbg's help. Someone on the Internet translates windbg's help into Chinese. If you do not want to see English, refer to Chinese for help.

2: Application Path
If you are debugging a dump file, you need to set it.

3: source file path
If you have a source file, you can set the source file path. in the upper-left corner of the first graph, the window displays the source file.
In most cases, it is good to get pdb, but to facilitate learning, I added the source file to understand every error message reported by windbg.

As for the usage of windbg, You can slowly learn how to use several commands. This is also an important goal of this series.

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.