GitHub user selvaganesang opened a pull request:

    https://github.com/apache/trafodion/pull/1447

    [TRAFODION-2727] Memory leak in the compiler part of the code in Traf…

    …odion
    
    It was found that CmpMessageReplyCode was not getting deleted at all times.
    But, the handling of CmpMessageDescribe messages in the compiler code has 
some
    mysterious issue that corrupts the memory causing unpredictable behavior 
when
    CmpMessageReplyCode is deleted.  To circumvent this problem, the 
CmpStatement heap
    is used for embedded compiler to allocate CmpMessageReplyCode and the 
Context heap
    is used in case of standalone compiler. The handling of CmpMessageDescribe 
will
    continue to leak memory in standalone compiler.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/selvaganesang/trafodion trafodion-2727

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafodion/pull/1447.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1447
    
----
commit 52703c64dbca6af7f7ad17d7e0efe15d7f6afd0c
Author: selvaganesang <selva.govindarajan@...>
Date:   2018-02-16T02:03:46Z

    [TRAFODION-2727] Memory leak in the compiler part of the code in Trafodion
    
    It was found that CmpMessageReplyCode was not getting deleted at all times.
    But, the handling of CmpMessageDescribe messages in the compiler code has 
some
    mysterious issue that corrupts the memory causing unpredictable behavior 
when
    CmpMessageReplyCode is deleted.  To circumvent this problem, the 
CmpStatement heap
    is used for embedded compiler to allocate CmpMessageReplyCode and the 
Context heap
    is used in case of standalone compiler. The handling of CmpMessageDescribe 
will
    continue to leak memory in standalone compiler.

----


---

Reply via email to