VirtualBox

Changeset 39868 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 25, 2012 6:58:43 AM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: don't do GetHostName on Windows guests in crDebug to avoid possible deadlocks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/error.c

    r33750 r39868  
    4242{
    4343    char *temp;
     44    /* on windows guests we're typically get called in a context of VBoxOGL!DllMain ( which calls VBoxOGLcrutil!crNetInit ),
     45     * which may lead to deadlocks..
     46     * Avoid it as it is needed for debugging purposes only */
     47#if !defined(IN_GUEST) || !defined(RT_OS_WINDOWS)
    4448    if ( crGetHostname( my_hostname, sizeof( my_hostname ) ) )
     49#endif
    4550    {
    4651        crStrcpy( my_hostname, "????" );
     
    100105    fflush( output );
    101106
    102 #if defined(DEBUG) && defined(WINDOWS) && !defined(DEBUG_misha)
     107#if defined(DEBUG) && defined(WINDOWS) /* && (!defined(DEBUG_misha) || !defined(IN_GUEST) ) */
    103108    OutputDebugString(str);
    104109    OutputDebugString("\n");
     
    197202#ifdef WINDOWS
    198203    }
    199 #if !defined(DEBUG_leo) && !defined(DEBUG_ll158262) && !(defined(DEBUG_misha) && defined(IN_GUEST))
     204#if !defined(DEBUG_leo) && !defined(DEBUG_ll158262) && !defined(DEBUG_misha)
    200205    if (crGetenv( "CR_DEBUG_ON_ERROR" ) != NULL)
    201206#endif
     
    241246        va_end( args );
    242247
    243 #if defined(WINDOWS) && defined(DEBUG) && !defined(IN_GUEST) && !defined(DEBUG_misha)
     248#if defined(WINDOWS) && defined(DEBUG) && !defined(IN_GUEST)
    244249        DebugBreak();
    245250#endif
     
    322327            output = stderr;
    323328        }
    324 #if !defined(DEBUG) || defined(DEBUG_misha)
     329#if !defined(DEBUG)/* || defined(DEBUG_misha)*/
    325330        /* Release mode: only emit crDebug messages if CR_DEBUG
    326331         * or CR_DEBUG_FILE is set.
     
    383388    outputChromiumMessage( output, txt );
    384389# endif
     390#ifndef DEBUG_misha
    385391    if (output==stderr)
     392#endif
    386393    {
    387394        LogRel(("%s\n", txt));
    388395    }
     396#ifndef DEBUG_misha
    389397    else
     398#endif
    390399    {
    391400        outputChromiumMessage(output, txt);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette