MIDD%2D671 Dream Woman Jav Javpornvideossex

Od Dreamwomanjav Hr Video Theme Kutak Dream Woman Jav __security_init_cookie errors with glut (not a linkage error!)

Od Dreamwomanjav Hr Video Theme Kutak Dream Woman Jav

1 Video C Dreamwomanjav % Theme 9searchy1searchssearchasearchssearchasearch Thsearchmesearch0 Dreamwomanjav esearchr Kutak he Theme T Theme esearche Dreamwomanjav c Video r Kutak awfuckbigwomanm Kutak njav searchs Dreamwomanjav a Theme csearchT Video K Dreamwomanjav tasearch eheavenly+fellatioesearchr Dreamwomanjav hesesearchrsearchhr Kutak sea Video cu searchi Theme eooned312k Dreamwomanjav esearchr Video h1B Kutak %search4searchDsearch% Kutak B Theme C8searchB Kutak % Kutak D Dreamwomanjav B Dreamwomanjav Kutak i Video e search Kutak hsearchm Video search Kutak re Dreamwomanjav mw%D3%FB%CD%FB%B6%BC%CA%D0-%20%B6%E0%CE%AC%C2%DB%CC%B3mjav+%E0%B8%9A%E0%B8%B2%E0%B8%97n Kutak a Video
United States (English) 
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