[
https://issues.apache.org/jira/browse/TRAFODION-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15818585#comment-15818585
]
ASF GitHub Bot commented on TRAFODION-2433:
-------------------------------------------
Github user selvaganesang commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/909#discussion_r95595859
--- Diff: core/sql/sqlmxevents/logmxevent_traf.cpp ---
@@ -185,9 +187,9 @@ void SQLMXLoggingArea::logPrivMgrInfo(const char
*filename,
}
-static void writeStackTrace(char *s, int bufLen)
+Int32 writeStackTrace(char *s, int bufLen)
--- End diff --
Looks like buflen is not being used to limit the stack trace being copied.
This can lead to buffer overflow. 8K is too small for the deep stack we would
get in Trafodion
> Logging function call trace upon internal assert failures.
> ----------------------------------------------------------
>
> Key: TRAFODION-2433
> URL: https://issues.apache.org/jira/browse/TRAFODION-2433
> Project: Apache Trafodion
> Issue Type: Improvement
> Components: sql-general
> Reporter: Prashanth Vasudev
> Assignee: Prashanth Vasudev
>
> Internal Asserts most of the time do not create core files nor return enough
> information to debug the issue.
> This is an attempt to capture the function call trace and log it as part of
> assertion failure.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)