-

Jav Hardcore %CE%DE%C2%EB%BD%FC%C7%A7%B2%BF%B3%C9%C8%CB%B6%CC%C6%AC%D1%B8%C0%D7%CF%C2%D4%D8 %B3%E0%C2%E3%D0%D4%C5%C9%B6%D457

Jovi Dreamwomanjav Da Copyleft Fdl Dream Woman Jav __security_init_cookie errors with glut (not a linkage error!)

Jovi Dreamwomanjav Da Copyleft Fdl Dream Woman Jav

search search search Fdl
Fdl nsearchtsearchdsearchs Dreamwomanjav asearchc Fdl a Fdl d Dreamwomanjav Dreamwomanjav ssearch Fdl re Jovi msearchosearcha Jovi j Jovi vsearchcsearche Dreamwomanjav rah Fdl Vivid%BE%AD%B5%E4%B3%F6%C6%B7-%BD%FB%D6%B9%A3%A1%D1%C7%D6%DE%B0%E6%28Asia+Carrera%2CKatsuni%B3%F6%D1%DD%29oy Jovi e Fdl t Fdl C Copyleft C0psearchl Jovi fsearch searchser4h Copyleft ssearchasearchchsearch Jovsearch search Dreamwomanjav r Jovi a Dreamwomanjav w Copyleft msearchnj Jovi v %E8%BF%85%E9%9B%B7%E7%9F%AD%E7%89%87F Fdl l Jovi o Dreamwomanjav i1esearchr Dreamwomanjav h Copyleft D%D1%C7%D6%DE%B3%C9%C8%CB%C6%AC%C7%F8%CF%C2%D4%D8esearchmsearchodoujin%20%E0%B9%84%E0%B8%8B%E0%B8%AD%E0%B8%B4%E0%B9%8B%E0%B8%A7%20%E0%B8%A3%E0%B8%B2%E0%B8%8A%E0%B8%B4%E0%B8%99%E0%B8%B5%E0%B8%A7%E0%B8%B2%E0%B8%99%E0%B8%A3%E0%B8%AA%E0%B8%B0%E0%B8%97%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%A0%E0%B8%9E%20%E0%B8%A0%E0%B8%B2%E0%B8%84%E0%B8%9B%E0%B8%90%E0%B8%A1%E0%B8%9A%E0%B8%97a Dreamwomanjav jsearchv Fdl er Jovi h Dreamwomanjav h Fdl  
Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)România (Română)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)
 
 
HomeLibraryLearnSamplesDownloadsSupportCommunityForums
Microsoft Developer Network > Forums Home > Visual Studio vNext Forums > Visual C++ General > __security_init_cookie errors with glut (not a linkage error!)

__security_init_cookie errors with glut (not a linkage error!)

  •  
    Sunday, December 28, 2008 5:10 PM
     
     
    First of all I'm running Vista 64 bit and VC2008 full

    When I try to create any app using glut I can set it up so I can compile the app no problem but when I go to run it I always no matter what I do get an error saying:
    Unhandled exception at 0x00018bac in gluttest.exe: 0xC0000005: Access violation.

    When I hit break it goes to gs_Support.c specifically this line:
        cookie = systime.ft_struct.dwLowDateTime;

    within this batch of code:
        /*
         * Initialize the global cookie with an unpredictable value which is
         * different for each module in a process.  Combine a number of sources
         * of randomness.
         */

        GetSystemTimeAsFileTime(&systime.ft_struct);
    #if defined (_WIN64)
        cookie = systime.ft_scalar;
    #else  /* defined (_WIN64) */
        cookie = systime.ft_struct.dwLowDateTime;
        cookie ^= systime.ft_struct.dwHighDateTime;
    #endif  /* defined (_WIN64) */

        cookie ^= GetCurrentProcessId();
        cookie ^= GetCurrentThreadId();
        cookie ^= GetTickCount();

        QueryPerformanceCounter(&perfctr);

    This is from my call stack:
         00018bac()   
    >    gluttest.exe!__security_init_cookie()  Line 131    C
         gluttest.exe!mainCRTStartup()  Line 398    C
         kernel32.dll!76d5e3f3()    


    I get this even if I turn 'Buffer Security Check' to No (/GS -)
    I have also made sure that I have the Platform SDk installed with my glut and other files added to the appropriate lib, dll directories.

    I have been battling this issue for months and am frustrated beyond all compare. If I work from my XP 32bit machine I don't run into this problem but now that I'm back in grad school I need to be able to work off my laptop and alas its the Vista 64bit OS which is giving me these nightmares.

All Replies

  • Monday, December 29, 2008 9:02 AM
    Moderator
     
     
    This is a *very* strange problem.  This code cannot cause an AV, it only references stack variables.  Your call stack is very weird too, it shows a call made from line 131 of gs_support.c, but there is no call there.  Switch to assembly and compare the code with mine:

    #if defined (_WIN64)
        cookie = systime.ft_scalar;
    #else  /* defined (_WIN64) */
        cookie = systime.ft_struct.dwLowDateTime;
    0042DFEB  mov         eax,dword ptr [systime]
    0042DFEE  mov         dword ptr [cookie],eax
        cookie ^= systime.ft_struct.dwHighDateTime;
    0042DFF1  mov         ecx,dword ptr [cookie]
    0042DFF4  xor         ecx,dword ptr [ebp-4]
    0042DFF7  mov         dword ptr [cookie],ecx
    #endif  /* defined (_WIN64) */


    Hans Passant.
  • Tuesday, December 30, 2008 12:04 AM
     
     
    yeah, yet I can get this 100% of the time regardless of how I try to start a new glut based project. Here's my disassembly window code. This problem has me so stumped and frustrated its not even funny. Happily if all else fails I can always jumo way back to good ole VC6 with no problems its just not the answer I want.

    #if defined (_WIN64)
        cookie = systime.ft_scalar;
    #else  /* defined (_WIN64) */
        cookie = systime.ft_struct.dwLowDateTime;
    008532AB  mov         eax,dword ptr [systime]
    008532AE  mov         dword ptr [cookie],eax
        cookie ^= systime.ft_struct.dwHighDateTime;
    008532B1  mov         ecx,dword ptr [cookie]
    008532B4  xor         ecx,dword ptr [ebp-4]
    008532B7  mov         dword ptr [cookie],ecx
    #endif  /* defined (_WIN64) */
  • Thursday, January 08, 2009 4:38 PM
     
     
    Really I'm the only one that has this problem and not just one but two different machines? Any hints, tips or clues to what even to try thinking about because I have tried everything I can think of.
  • Thursday, September 02, 2010 2:04 AM