[ https://issues.apache.org/jira/browse/HAWQ-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15867144#comment-15867144 ]
Ruilong Huo commented on HAWQ-1321: ----------------------------------- [~yjin], please close this jira if it done. > failNames wrongly uses memory context to build message when ANALYZE failed > -------------------------------------------------------------------------- > > Key: HAWQ-1321 > URL: https://issues.apache.org/jira/browse/HAWQ-1321 > Project: Apache HAWQ > Issue Type: Bug > Components: Core > Affects Versions: 2.1.0.0-incubating > Reporter: Yi Jin > Assignee: Yi Jin > Fix For: 2.2.0.0-incubating > > > I find one bug exist in generating error message for ANALYZE when the message > size is large. > In analyzeStmt(), there is a variable called failNames. It is initialized in > caller's memory context, but it repallocs memory in relation context, and it > is freed in statement context. This is bug of wrongly using memory context. > when the relation and statement context are dropped at then end of function > analyzeStmt(), pat of its content will be flushed with 0. This explain why > another block's header was randomly wiped out in the bug. -- This message was sent by Atlassian JIRA (v6.3.15#6346)