• Nisha Gopalakrishnan's avatar
    Bug#11757464:SERVER CRASH IN RECURSIVE CALL WHEN OOM · d01b5c39
    Nisha Gopalakrishnan authored
    Analysis:
    ---------
    
    When the server is out of memory, an error is raised
    to indicate the same. Handling the error requires
    more memory to be allocated which fails, hence the
    error handling loops in a recursion and causes the
    server to crash.
    
    Fix:
    ---
    a) Prevents pushing the 'out of memory' error condition
    to the diagnostic area as it requires memory allocation.
    GET DIAGNOSTICS, SHOW WARNINGS and SHOW ERRORS statements
    will not show information about this error. However the
    'out of memory' error is returned to the client.
    b) It sets the ME_FATALERROR flag when 'out of memory' errors
    are reported (for places where the flag is not already set).
    This flag prevents activation of SP error handlers which also
    require memory allocation and therefore are likely to fail.
    d01b5c39
handler.cc 158 KB