xiong's profile共享空间标题PhotosBlogLists Tools Help
    November 01

    VS2003 在push edi 的时候AV

    上个月做一个case的时候,需要激活vs2003的unmanaged debugging. 激活后用f5调试,程序还没有起来,vs2003 IDE就crash了 :(
     
    当时比较忙,一直留到今天才来仔细观察这个问题. windbg上去后,看到crash的信息如下:
     
    (9ec.dfc): Access violation - code c0000005 (first chance)
    First chance exceptions are reported before any exception handling.
    This exception may be expected and handled.
    好,不就是熟悉的AV么,看看EIP:
     
    0:018> u eip
    AcSpecfc!NS_NatDbgDM::JumpBuffer:
    7150b698 57               push    edi
    恩,push居然都会AV,没天理阿。仔细想想,有两种可能:
    1) IP地址不可读写
    2) ESP不可读写
     
    可是:
     
    0:018> !address eip
        714d0000 : 7150b000 - 00005000
                        Type     01000000 MEM_IMAGE
                        Protect  00000004 PAGE_READWRITE
                        State    00001000 MEM_COMMIT
                        Usage    RegionUsageImage
                        FullPath C:\WINDOWS\AppPatch\AcSpecfc.dll
    0:018> !address esp
        104d0000 : 105cb000 - 00005000
                        Type     00020000 MEM_PRIVATE
                        Protect  00000004 PAGE_READWRITE
                        State    00001000 MEM_COMMIT
                        Usage    RegionUsageStack
                        Pid.Tid  9ec.dfc
    傻了吧。有人知道怎么做么?(提示,该问题在打了win2k3 sp1前不会发生)
     
     
     
     
     
    ==================
    解决方法,对vs2003 IDE进程取消"data execution prevention"保护。关于data execution prevention:
     
     
    不过vs2003居然触发DEP,可以考虑file一个bug了
     
    data execution prevention
     

    Comments (13)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Picture of Anonymous
    jww wrote:
    The joyous Mid-Autumn Festival ffxi gilwas celebrated on the aoc goldfifteenth day of the eighth moon, around the time of the autumn equinox. Many referred to it simply as the "Fifteenth of the Eighth Moon". This day was also considered as a harvest festival since fruits, vegetables and grain had been harvestedwow gold by this time and food maple story mesoswas abundant. Food wow power levelingofferings were placed on an altar set up in the courtyard. Apples, pears, peaches, grapes, pomegranates, melons, oranges and pomelos might be seen. Special foods for the festival included moon cakes, cooked taro and water caltrope, a type of waterwow power leveling chestnut resembling black maplestory mesosbuffalo horns. Some people insisted that cooked taro be included becausewow gold at the time of creation, taro was the first food discovered at night in the moonlight. Of all these foods, it could not be omittedmaple story meso from the Mid-Autumn Festival.The round moon cakes, measuring about wow goldthree inches in wow golddiameter and one and a half inches in thickness, resembled Western fruitcakes in taste and consistency. These cakes were made with melon seeds, lotus seeds, almonds, minced meats, bean wow goldpaste, orange peels and lard. A golden yolk from a salted duck egg was placed at the wow goldcenter of each cake, and the golden wow goldbrown crust was decorated with symbolsaoc gold of the festival. Traditionally, thirteen moon cakes were piled in a pyramid to symbolize the thirteen moons of a "complete year," that is, twelve moons plus one intercalary moon. The Mid-Autumn Festival is a wow goldtraditional festivity for both the Han wow goldand minority nationalities. The custom of worshipping the moon can be traced back as far as the ancient Xia and Shang Dynasties (2000 B.C.-1066 B.C.). In the Zhou wow goldDynasty(1066 B.C.-221 B.C.), people hold ceremonies to greet winter and worship the moon whenever the Mid-Autumn Festival sets in. It becomes very prevalent in the Tang Dynasty(618-907 A.D.) that peoplewow gold enjoy and worship the full moon. In the Southern Song wow goldDynasty (1127-1279 A.D.), however, people send round moon cakes to their relatives as gifts in expression of their best wishes of family reunion. When it becomes dark, they look up at the full silver moon or go sightseeing on lakes to celebrate the festival. Since the Ming (1368-1644 A.D. ) and Qing Dynasties (1644-1911A.D.), the custom of Mid-Autumn Festival celebration wow goldbecomes unprecedented popular. Together with wow goldthe celebration there appear wow power levelingsome special customs in different parts of the country, such as burning incense, planting Mid-Autumn trees, lighting lanterns on towers and fire dragon dances.wow gold However, the wow goldcustom of playing under the moon is not so popular as it used to be nowadays, but it is not less popular to enjoy the bright silver moon. Whenever the festival wow power levelingsets in, people will look up at the full silver moon, drinking wow goldwine to celebrate their happy life or thinking of their relatives and friends far from home, and extending all of their best wishes to them.
    Sept. 23
    Picture of Anonymous
    June 5
    May 12
    Apr. 13
    Jan. 17
    Picture of Anonymous
    天涯歌女 wrote:
    我承认我只看到了AV
    其他一概无视
    Nov. 10
    Picture of Anonymous
    -小培- wrote:
    牛,现在dswl都是ee。
    Nov. 2
    Picture of Anonymous
    putaoefu wrote:
    跟vs2003/unmanaged c++都没太大关系
    跟AcSpecfc.dll关系比较大。因为这个module的memory image缺少了Execute bit,问题就在于为什么会缺少。考虑到AcSpecfc.dll的特殊性,问题可能是由于compatible mode feature 导致的
    Nov. 2
    Picture of Anonymous
    TerrenceYang wrote:
    还想问问看是不是unmanaged c++ coding的时候出错的?
    还是VS.NET 2003 本身的问题?
    Nov. 2
    Picture of Anonymous
    TerrenceYang wrote:
    "GCC的在线重用:

      研究发现gcc在堆栈区里放置了可执行的代码作为在线重用之用。然而,关闭这个功能并不产生任何问题,只有部分功能似乎不能使用。"

    给一个引用的引用 http://www.blogercn.com/user1/51/archives/2005/10152.shtml

    可能有相似之处?
    Nov. 2
    Picture of Anonymous
    潇抒 wrote:
    AV,ESP..... 啥意思啦 :(
    Nov. 2
    Picture of Anonymous
    SQUARE_方伟 wrote:
    你写的东西向来不懂
    Nov. 1
    Picture of Anonymous
    Johnonhop wrote:
    (y)
    Nov. 1

    Trackbacks

    The trackback URL for this entry is:
    http://eparg.spaces.live.com/blog/cns!59BFC22C0E7E1A76!379.trak
    Weblogs that reference this entry
    • None