You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/06/06 19:06:21 UTC

[jira] [Commented] (TRAFODION-2031) At times T2 applications dump core at the time of logging error

    [ https://issues.apache.org/jira/browse/TRAFODION-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317010#comment-15317010 ] 

ASF GitHub Bot commented on TRAFODION-2031:
-------------------------------------------

GitHub user selvaganesang opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/526

    [TRAFODION-2031] At times T2 JDBC applications dump core at the time of lo…

    …gging error
    
    Cores were dumped when SQL tries to log the error message via log4cxx. Log4cxx instance
    was not initialized in case of T2 driver
    
    [TRAFODION-1956] session defaults was getting corrupted in mxosrvr. COMPILER_IDLE_TIMEOUT wasn't added
    in alphabetical order. Also fixed the possible buffer overrun issue with some of the set
    commands in SessionDefaults

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

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

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

    https://github.com/apache/incubator-trafodion/pull/526.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 #526
    
----
commit 73a981341c2606a09c6fbb3fc7fc330114b9c992
Author: selvaganesang <se...@esgyn.com>
Date:   2016-06-06T18:40:26Z

    [TRAFODION-2031] At times T2 applications dump core at the time of logging error
    Cores were dumped when SQL tries to log the error message via log4cxx. Log4cxx instance
    was not initialized in case of T2 driver
    
    [TRAFODION-1956] session defaults was getting corrupted in mxosrvr. COMPILER_IDLE_TIMEOUT wasn't added
    in alphabetical order. Also fixed the possible buffer overrun issue with some of the set
    commands in SessionDefaults

----


> At times T2 applications dump core at the time of logging error
> ---------------------------------------------------------------
>
>                 Key: TRAFODION-2031
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2031
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: client-jdbc-t2
>    Affects Versions: 2.0-incubating
>            Reporter: Selvaganesan Govindarajan
>            Assignee: Selvaganesan Govindarajan
>             Fix For: 2.1-incubating
>
>
> The stack trace of the core is shown below
>   gdb /usr/java/jdk1.7.0_67-cloudera/bin/java ./core.8230 --batch -n -x /tmp/tmp.nQQi6Jy1vZ 2>&1
> [New Thread 8231]
> [New Thread 8598]
> [New Thread 8329]
> [New Thread 8328]
> [New Thread 8515] 
> [Thread debugging using libthread_db enabled]
> Core was generated by `/usr/java/jdk1.7.0_67-cloudera/bin/java -Xmx512m -Xss1024k -classpath /opt/traf'.
> Program terminated with signal 6, Aborted.
> #0 0x00007fe6d0393625 in raise () from /lib64/libc.so.6
> #0 0x00007fe6d0393625 in raise () from /lib64/libc.so.6
> 0000001 0x00007fe6d0394d8d in abort () from /lib64/libc.so.6
> 0000002 0x00007fe6cfeaafe4 in __gnu_cxx::__verbose_terminate_handler() () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000003 0x00007fe6cfea5e56 in __cxxabiv1::__terminate(void (*)()) () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000004 0x00007fe6cfea5e83 in std::terminate() () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000005 0x00007fe6cfea62ef in __cxa_pure_virtual () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000006 0x00007fe6cfd15d7b in outputStream::print(char const*, ...) () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000007 0x00007fe6cfa0a07d in frame::print_on_error(outputStream*, char*, int, bool) const () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000008 0x00007fe6cfe8a64a in VMError::report(outputStream*) () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000009 0x00007fe6cfe8bb8a in VMError::report_and_die() () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000010 0x00007fe6cfd1096f in JVM_handle_linux_signal () from /usr/java/jdk1.7.0_67-cloudera/jre/lib/amd64/server/libjvm.so
> 0000011 <signal handler called>
> 0000012 0x00007fe6bd1c05ea in log4cxx::LogManager::getLoggerRepository () at logmanager.cpp:92
> 0000013 0x00007fe6bd1c0ba9 in log4cxx::LogManager::getLoggerLS (name="SQL") at logmanager.cpp:106
> 0000014 0x00007fe6bd1c0cac in log4cxx::LogManager::getLogger (name=<value optimized out>) at logmanager.cpp:121
> 0000015 0x00007fe6bd1b9c49 in log4cxx::Logger::getLogger (name=<value optimized out>) at logger.cpp:490
> 0000016 0x00007fe6ba22e86c in QRLogger::log (cat="SQL", level=LL_ERROR, sqlCode=2034, queryId=0x14cf310 "MXID11000008230212330481682155561000000000206U3333300_263_S\
> TMT2", logMsgTemplate=0x7fe6c0936f85 "%s") at ../qmscommon/QRLogger.cpp:570
> 0000017 0x00007fe6c0936aae in SQLMXLoggingArea::logSQLMXEventForError (sqlcode=2034, msgTxt=0x7fe6d0f42aa0 "*** ERROR[2034] Err160: Operating system error 16 while \
> communicating with server process Err160.", sqlId=0x14cf310 "MXID11000008230212330481682155561000000000206U3333300_263_STMT2", isWarning=<value optimized out>) \
> at ../sqlmxevents/logmxevent_traf.cpp:135
> 0000018 0x00007fe6c1742c3b in logAnMXEventForError (condition=..., emsEventEL=<value optimized out>) at ../cli/CliExtern.cpp:770
> 0000019 0x00007fe6c174f843 in SQL_EXEC_GetDiagnosticsCondInfo (cond_info_items=0x7fe6d0f44230, cond_num_descriptor=0x7fe6d0f44108, output_descriptor=0x7fe6d0f441a0)\
> at ../cli/CliExtern.cpp:3616
> 0000020 0x00007fe6c174fcbe in SQL_EXEC_GetDiagnosticsCondInfo2 (what_to_get=15, conditionNum=<value optimized out>, numeric_value=0x0, string_value=0x2889790 "8\017\
> o\320\346\177", max_string_len=97, len_of_item=0x7fe6d0f442c8) at ../cli/CliExtern.cpp:3881
> 0000021 0x00007fe6c38a3370 in GETSQLERROR (pSrvrStmt=<value optimized out>, SQLError=0x25a5aa8) at native/SqlInterface.cpp:1825
> 0000022 0x00007fe6c38a6201 in EXECUTE (pSrvrStmt=0x25a51e0) at native/SqlInterface.cpp:1219
> 0000023 0x00007fe6c38a0b89 in SRVR_STMT_HDL::Execute (this=0x25a51e0, inCursorName=0x0, totalRowCount=<value optimized out>, inSqlStmtType=0, inValueList=0x7fe6d0f4\
> 4540, inSqlAsyncEnable=<value optimized out>, inQueryTimeout=0, outValueList=0x7fe6d0f44530) at native/CSrvrStmt.cpp:260
> 0000024 0x00007fe6c38a10df in SRVR_STMT_HDL::ExecDirect (this=0x25a51e0, inCursorName=0x0, inSqlString=<value optimized out>, inStmtType=<value optimized out>, inSq\
> lStmtType=0, inHoldability=<value optimized out>, inQueryTimeout=0) at native/CSrvrStmt.cpp:418
> 0000025 0x00007fe6c38b744d in odbc_SQLSvc_ExecDirect_sme_ (objtag_=<value optimized out>, call_id_=<value optimized out>, exception_=0x7fe6d0f44720, dialogueId=<val\
> ue optimized out>, stmtLabel=<value optimized out>, cursorName=0x0, stmtExplainLabel=0x7fe6c38c3c1d "", stmtType=0, sqlStmtType=0, sqlString=0x7fe6d0f446f0, hol\
> dability=2, queryTimeout=0, resultSet=140629324875976, estimatedCost=0x7fe6d0f44778, outputDesc=0x7fe6d0f44740, rowsAffected=0x7fe6d0f44770, sqlWarning=0x7fe6d0\
> f44750, stmtId=0x7fe6d0f44768, currentStmtId=0) at native/SrvrOthers.cpp:677
> 0000026 0x00007fe6c38b2150 in Java_org_trafodion_jdbc_t2_SQLMXStatement_executeDirect (jenv=0x13069e8, jobj=0x7fe6d0f44930, server=<value optimized out>, dialogueId\
> =64587728, txid=0, autoCommit=1 '\001', txnMode=2, stmtLabel=0x7fe6d0f448f8, cursorName=0x0, sql=0x7fe6d0f448e8, isSelect=0 '\000', queryTimeout=0, holdability=\
> 2, resultSet=0x7fe6d0f448c8, currentStmtId=0) at native/SQLMXStatement.cpp:144
> 0000027 0x00007fe6cb811d98 in ?? ()
> 0000028 0x0000000000000002 in ?? ()
> 0000029 0x00007fe6d0f448f8 in ?? ()
> 0000030 0x0000000000000000 in ?? ()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)