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/10/04 23:26:20 UTC

[jira] [Commented] (TRAFODION-2261) Mxosrvr or java core with starting from Java_org_trafodion_jdbc_t2_SQLMXConnection_close

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

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

GitHub user selvaganesang opened a pull request:

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

    [TRAFODION-2261] Mxosrvr or java core with starting from Java_org_tra…

    …fodion_jdbc_t2_SQLMXConnection_close
    
    [TRAFODION-2262] Mxosrvr or Java core with the stack trace pointing to log4Cxx functions
    
    IpcServerClass was not getting destructed correctly. When the CLI context is deleted, the ESP
    server class object an IpcServerClass instance that manages the ESP server started
    in the CLI context are also destroyed.  Fixed the IpcServerClass and IpcServer destructors
    so that there is no memory corruption.
    
    Log4Cxx infrastructure in SQL was recursively attempting to log the messages when there is an
    issue with it. This was causing stack corruption.
    
    Also added a code to initialize the log4cxx infrastructure if it is not done already upon
    the first CLI call.

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

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

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

    https://github.com/apache/incubator-trafodion/pull/745.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 #745
    
----

----


> Mxosrvr or java core with starting from Java_org_trafodion_jdbc_t2_SQLMXConnection_close
> ----------------------------------------------------------------------------------------
>
>                 Key: TRAFODION-2261
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2261
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: sql-general
>            Reporter: Dennis Markt
>            Assignee: Selvaganesan Govindarajan
>
> Two stack trace examples:
> Core was generated by `/usr/java/jdk1.8.0_102/bin/java -Xmx512m -Xss1024k -classpath /home/trafodion/e'.
> Program terminated with signal 6, Aborted.
> #0  0x00007f642da45625 in raise () from /lib64/libc.so.6
> Missing separate debuginfos, use: debuginfo-install jdk1.8.0_102-1.8.0_102-fcs.x86_64
> …
> #0  0x00007f642da45625 in raise () from /lib64/libc.so.6
> #1  0x00007f642da46d8d in abort () from /lib64/libc.so.6
> #2  0x00007f642d3464f5 in os::abort(bool) () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #3  0x00007f642d4e86b3 in VMError::report_and_die() () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #4  0x00007f642d4e8b9e in crash_handler(int, siginfo*, void*) () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #5  <signal handler called>
> #6  0x00007f642d33488f in oopDesc::print_on(outputStream*) const () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #7  0x00007f642d34b59f in os::print_register_info(outputStream*, void*) ()
>    from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #8  0x00007f642d4e6d33 in VMError::report(outputStream*) () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #9  0x00007f642d4e82aa in VMError::report_and_die() () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #10 0x00007f642d34bd1f in JVM_handle_linux_signal () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #11 0x00007f642d3424b3 in signalHandler(int, siginfo*, void*) () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #12 <signal handler called>
> #13 0x00007f640f2406f5 in NAList<IpcServer*>::removeCounted (this=0x7f63fd6630a8, elem=@0x7f642e5f5358, 
>     desiredCount=<value optimized out>) at ../common/Collections.cpp:937
> #14 0x00007f640f231785 in remove (this=0x7f63fd663018, s=0x7f63fd670600) at ../common/Collections.h:2000
> #15 IpcServerClass::freeServerProcess (this=0x7f63fd663018, s=0x7f63fd670600) at ../common/Ipc.cpp:4991
> #16 0x00007f640e9b331a in ExEspDbEntry::release (this=0x7f63fd678480) at ../executor/ex_frag_rt.cpp:3581
> #17 0x00007f640e9b336f in ExEspDbEntry::~ExEspDbEntry (this=0x7f63fd678480, __in_chrg=<value optimized out>)
>     at ../executor/ex_frag_rt.cpp:3574
> #18 0x00007f640e9b33b1 in ExEspDbEntry::~ExEspDbEntry (this=0x7f63fd678480, __in_chrg=<value optimized out>)
>     at ../executor/ex_frag_rt.cpp:3575
> #19 0x00007f640e9beda9 in ExEspManager::~ExEspManager (this=0x7f63fd662fd0, __in_chrg=<value optimized out>)
>     at ../executor/ex_frag_rt.cpp:2847
> #20 0x00007f640e330631 in ContextCli::deleteMe (this=0x7f63fe2e7ca0) at ../cli/Context.cpp:423
> #21 0x00007f640e34b8e9 in CliGlobals::dropContext (this=0x592e800, context=0x7f63fe2e7ca0) at ../cli/Globals.cpp:689
> #22 0x00007f640e30bc9b in SQLCLI_DropContext (cliGlobals=<value optimized out>, context_handle=2001) at ../cli/Cli.cpp:1829
> #23 0x00007f640e37c0f2 in SQL_EXEC_DeleteContext (contextHandle=2001) at ../cli/CliExtern.cpp:1538
> #24 0x00007f6410552a40 in DISCONNECT (pSrvrConnect=<value optimized out>) at native/SqlInterface.cpp:2874
> #25 0x00007f641054d328 in SRVR_CONNECT_HDL::sqlClose (this=0x591ff50) at native/CSrvrConnect.cpp:176
> #26 0x00007f641055dfd3 in Java_org_trafodion_jdbc_t2_SQLMXConnection_close (jenv=0x22171f8, jcls=<value optimized out>, 
>     server=<value optimized out>, dialogueId=93454160) at native/SQLMXConnection.cpp:261
> #27 0x00007f641cd4aa14 in ?? ()
> #28 0x00007f642e5f5738 in ?? ()
> #29 0x00007f641cd4a7a7 in ?? ()
> #30 0x00007f641cd4a762 in ?? ()
> #31 0x00007f642e5f56f8 in ?? ()
> #32 0x00007f64108f62a0 in ?? ()
> #33 0x00007f642e5f5768 in ?? ()
> #34 0x00007f64108fb2c8 in ?? ()
> #35 0x0000000000000000 in ?? ()
> Core was generated by `/usr/java/jdk1.8.0_102/bin/java -Xmx512m -Xss1024k -classpath /home/trafodion/e'.
> Program terminated with signal 6, Aborted.
> #0  0x00007ff03368f625 in raise () from /lib64/libc.so.6
> Missing separate debuginfos, use: debuginfo-install jdk1.8.0_102-1.8.0_102-fcs.x86_64
> (gdb) bt
> #0  0x00007ff03368f625 in raise () from /lib64/libc.so.6
> #1  0x00007ff033690d8d in abort () from /lib64/libc.so.6
> #2  0x00007ff032f904f5 in os::abort(bool) () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #3  0x00007ff0331326b3 in VMError::report_and_die() () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #4  0x00007ff032f95d1f in JVM_handle_linux_signal () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #5  0x00007ff032f8c4b3 in signalHandler(int, siginfo*, void*) () from /usr/java/jdk1.8.0_102/jre/lib/amd64/server/libjvm.so
> #6  <signal handler called>
> #7  0x00007ff014e896f5 in NAList<IpcServer*>::removeCounted (this=0x7ff0032ad0a8, elem=@0x7ff03423f328, 
>     desiredCount=<value optimized out>) at ../common/Collections.cpp:937
> #8  0x00007ff014e7a785 in remove (this=0x7ff0032ad018, s=0x7ff0032bb808) at ../common/Collections.h:2000
> #9  IpcServerClass::freeServerProcess (this=0x7ff0032ad018, s=0x7ff0032bb808) at ../common/Ipc.cpp:4991
> #10 0x00007ff0145fc31a in ExEspDbEntry::release (this=0x7ff0032c2bc8) at ../executor/ex_frag_rt.cpp:3581
> #11 0x00007ff0145fc36f in ExEspDbEntry::~ExEspDbEntry (this=0x7ff0032c2bc8, __in_chrg=<value optimized out>)
>     at ../executor/ex_frag_rt.cpp:3574
> #12 0x00007ff0145fc3b1 in ExEspDbEntry::~ExEspDbEntry (this=0x7ff0032c2bc8, __in_chrg=<value optimized out>)
>     at ../executor/ex_frag_rt.cpp:3575
> #13 0x00007ff014607da9 in ExEspManager::~ExEspManager (this=0x7ff0032acfd0, __in_chrg=<value optimized out>)
>     at ../executor/ex_frag_rt.cpp:2847
> #14 0x00007ff013f79631 in ContextCli::deleteMe (this=0x7ff003f30ca0) at ../cli/Context.cpp:423
> #15 0x00007ff013f948e9 in CliGlobals::dropContext (this=0x5953e70, context=0x7ff003f30ca0) at ../cli/Globals.cpp:689
> #16 0x00007ff013f54c9b in SQLCLI_DropContext (cliGlobals=<value optimized out>, context_handle=2001) at ../cli/Cli.cpp:1829
> #17 0x00007ff013fc50f2 in SQL_EXEC_DeleteContext (contextHandle=2001) at ../cli/CliExtern.cpp:1538
> #18 0x00007ff01619ba40 in DISCONNECT (pSrvrConnect=<value optimized out>) at native/SqlInterface.cpp:2874
> #19 0x00007ff016196328 in SRVR_CONNECT_HDL::sqlClose (this=0x5945720) at native/CSrvrConnect.cpp:176
> #20 0x00007ff0161a6fd3 in Java_org_trafodion_jdbc_t2_SQLMXConnection_close (jenv=0x23c81f8, jcls=<value optimized out>, 
>     server=<value optimized out>, dialogueId=93607712) at native/SQLMXConnection.cpp:261
> #21 0x00007ff022994a14 in ?? ()
> #22 0x00007ff03423f708 in ?? ()
> #23 0x00007ff0229947a7 in ?? ()
> #24 0x00007ff022994762 in ?? ()
> #25 0x00007ff03423f6c8 in ?? ()
> #26 0x00007ff01653e828 in ?? ()
> #27 0x00007ff03423f738 in ?? ()
> #28 0x00007ff016543850 in ?? ()
> #29 0x0000000000000000 in ?? ()



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