[
https://issues.apache.org/jira/browse/TRAFODION-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14706314#comment-14706314
]
Atanu Mishra commented on TRAFODION-241:
----------------------------------------
Weishiun Tsai (wei-shiun-tsai) wrote on 2014-06-02: #1
Have not seen this problem after
https://bugs.launchpad.net/trafodion/+bug/1324220 'JDBC t2 tests core on
connection close in dropContext' is fixed in git v0530_1530. Presumably the
problem has been addressed by some other fixes. Close it for now. Will reopen
it if we see it again.
Changed in trafodion:
status: New → Fix Released
> LP Bug: 1314258 - NAHeap::doCheckInuseFragment() asserts with cores
> -------------------------------------------------------------------
>
> Key: TRAFODION-241
> URL: https://issues.apache.org/jira/browse/TRAFODION-241
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-exe
> Reporter: Weishiun Tsai
> Priority: Critical
> Fix For: 1.0 (pre-incubation)
>
>
> When running phoenix tests using JDBC T2 driver on the datalake v39713 build,
> it generated cores at this function many times. This is a memory violation
> situation, so there is no certain way to reproduce it, but the core does
> appear 3 times out of 6 repeated runs of the phoenix tests using JDBC T2
> driver on the same build.
> The first part of the trace may vary, but the trace generally ended at
> NAHeap::doCheckInuseFragment(), which asserted and generated the core.
> Here are 2 examples of the stacks from the cores:
> (gdb) bt
> #0 0x00000039e28328a5 in raise () from /lib64/libc.so.6
> #1 0x00000039e2834085 in abort () from /lib64/libc.so.6
> #2 0x00000039e282ba1e in __assert_fail_base () from /lib64/libc.so.6
> #3 0x00000039e282bae0 in __assert_fail () from /lib64/libc.so.6
> #4 0x00007fffa7a1918d in NAHeap::doCheckInuseFragment (this=0x7fff97d8baa0,
> p=0x7fff97b6d8b8) at ../common/NAMemory.cpp:3831
> #5 0x00007fffa7a176cd in NAHeap::deallocateHeapMemory (this=0x7fff97d8baa0,
> addr=0x7fff97b6d8c8) at ../common/NAMemory.cpp:3381
> #6 0x00007fffa7a13509 in NAMemory::deallocateMemory (this=0x7fff97d8baa0,
> addr=0x7fff97b6d8c8) at ../common/NAMemory.cpp:1354
> #7 0x00007fffa130a608 in NACollection<DomainDesc*>::deallocate (
> this=0x7fff97c81db0) at ../common/Collections.h:454
> #8 0x00007fffa130a9c8 in NACollection<DomainDesc*>::resize (
> this=0x7fff97c81db0, newSize=88) at ../common/Collections.cpp:141
> #9 0x00007fffa130a77e in NACollection<DomainDesc*>::insert (
> this=0x7fff97c81db0, posToInsert=57, newElement=@0x7ffff6c878f0,
> newUsage=111111111) at ../common/Collections.cpp:75
> #10 0x00007fffa130a380 in NAList<DomainDesc*>::insertAt (this=0x7fff97c81db0,
> i=57, elem=@0x7ffff6c878f0) at ../common/Collections.h:2137
> #11 0x00007fffa130a114 in NAList<DomainDesc*>::insert (this=0x7fff97c81db0,
> elem=@0x7ffff6c878f0) at ../common/Collections.h:1973
> #12 0x00007fffa130a0e2 in SchemaDB::insertDomainDesc (this=0x7fff97c81b38,
> ddesc=0x7fff9797e5f8) at ../optimizer/SchemaDB.h:137
> #13 0x00007fffa1309ef1 in DomainDesc::DomainDesc (this=0x7fff9797e5f8,
> schemaDB=0x7fff97c81b38, refToType=...) at ../optimizer/DomainDesc.cpp:31
> #14 0x00007fffa17508e0 in ValueDesc::create (expr=0x7fff9797e458,
> type=0x7fff97b25c98, h=0x7fff97b12310) at ../optimizer/ValueDesc.cpp:5597
> #15 0x00007fffa11ae785 in createValueDesc (bindWA=0x7ffff6c897b0,
> expr=0x7fff9797e458, type=0x7fff97b25c98)
> at ../optimizer/BindItemExpr.cpp:84
> #16 0x00007fffa11b2c57 in ItemExpr::bindNode (this=0x7fff9797e458,
> bindWA=0x7ffff6c897b0) at ../optimizer/BindItemExpr.cpp:1476
> #17 0x00007fffa11f4ffb in createTableDesc2 (bindWA=0x7ffff6c897b0,
> naTable=0x7fff97b25248, corrName=..., hint=0x0)
> at ../optimizer/BindRelExpr.cpp:1537
> #18 0x00007fffa11f57b2 in BindWA::createTableDesc (this=0x7ffff6c897b0,
> naTable=0x7fff97b25248, corrName=..., catmanCollectUsages=0, hint=0x0)
> at ../optimizer/BindRelExpr.cpp:1648
> #19 0x00007fffa120aa36 in Scan::bindNode (this=0x7ffff6c89090,
> bindWA=0x7ffff6c897b0) at ../optimizer/BindRelExpr.cpp:6725
> #20 0x00007fffa2750790 in HSTableDef::setNATable (this=0x7fff97978e48)
> at ../ustat/hs_la.cpp:119
> #21 0x00007fffa2755c5d in HSHbaseTableDef::objExists (this=0x7fff97978e48,
> unused=HSTableDef::MIN_INFO) at ../ustat/hs_la.cpp:973
> #22 0x00007fffa276250e in FetchHistograms (qualifiedName=...,
> type=ExtendedQualName::NORMAL_TABLE, colArray=..., colStatsList=...,
> isSQLMPTable=0, heap=0x7fff97b12310, histModTime=@0x7ffff6c8ae00,
> statsTime=@0x7fff97b25640, allFakeStat=@0x7ffff6c8adfc, preFetch=1,
> createStatsSize=0) at ../ustat/hs_read.cpp:899
> #23 0x00007fffa146cd4f in HistogramCache::createColStatsList (
> this=0x7fff97c7db60, table=..., cachedHistograms=0x0)
> at ../optimizer/NATable.cpp:552
> #24 0x00007fffa146ca9a in HistogramCache::getHistograms (this=0x7fff97c7db60,
> table=...) at ../optimizer/NATable.cpp:407
> #25 0x00007fffa147c9bc in NATable::getStatistics (this=0x7fff97b25248)
> at ../optimizer/NATable.cpp:5591
> #26 0x00007fffa1713018 in TableDesc::getTableColStats (this=0x7fff97b537b0)
> at ../optimizer/TableDesc.cpp:370
> #27 0x00007fffa129feee in TableDesc::tableColStats (this=0x7fff97b537b0)
> at ../optimizer/TableDesc.h:118
> #28 0x00007fffa15527c4 in GenericUpdate::synthLogProp (this=0x7fff97b2f6e0,
> normWAPtr=0x7ffff6c8d5e0) at ../optimizer/OptLogRelExpr.cpp:5438
> #29 0x00007fffa153ec20 in RelExpr::synthLogProp (this=0x7fff97b30590,
> normWAPtr=0x7ffff6c8d5e0) at ../optimizer/OptLogRelExpr.cpp:615
> #30 0x00007fffa154eeb9 in RelRoot::synthLogProp (this=0x7fff97b30590,
> normWAPtr=0x7ffff6c8d5e0) at ../optimizer/OptLogRelExpr.cpp:4634
> #31 0x00007fffa14d0e76 in RelRoot::normalizeNode (this=0x7fff97b30590,
> normWARef=...) at ../optimizer/NormRelExpr.cpp:7131
> #32 0x00007fffa2c6a2e9 in CmpMain::compile (this=0x7ffff6c8e860,
> input_str=0x7fff97b4d518 "UPSERT INTO testDecimalArithmatic(pk, col1,
> col2, col3, col4, col5) VALUES(?,?,?,?,?,?)", charset=15,
> queryExpr=@0x7ffff6c8e778,
> gen_code=0x7fff97b4d5d0, gen_code_len=0x7fff97b4d5c8, heap=0x7fff97d8baa0,
> phase=CmpMain::END, fragmentDir=0x7ffff6c8e9b8, op=3004, useQueryCache=1,
> cacheable=0x7ffff6c8e764, begTime=0x7ffff6c8e780, shouldLog=0)
> at ../sqlcomp/CmpMain.cpp:1863
> #33 0x00007fffa2c68e2e in CmpMain::sqlcomp (this=0x7ffff6c8e860,
> input_str=0x7fff97b4d518 "UPSERT INTO testDecimalArithmatic(pk, col1,
> col2, col3, col4, col5) VALUES(?,?,?,?,?,?)", charset=15,
> queryExpr=@0x7ffff6c8e778,
> gen_code=0x7fff97b4d5d0, gen_code_len=0x7fff97b4d5c8, heap=0x7fff97d8baa0,
> phase=CmpMain::END, fragmentDir=0x7ffff6c8e9b8, op=3004, useQueryCache=1,
> cacheable=0x7ffff6c8e764, begTime=0x7ffff6c8e780, shouldLog=0)
> at ../sqlcomp/CmpMain.cpp:1425
> #34 0x00007fffa2c67489 in CmpMain::sqlcomp (this=0x7ffff6c8e860, input=...,
> gen_code=0x7fff97b4d5d0, gen_code_len=0x7fff97b4d5c8, heap=0x7fff97d8baa0,
> phase=CmpMain::END, fragmentDir=0x7ffff6c8e9b8, op=3004)
> at ../sqlcomp/CmpMain.cpp:762
> #35 0x00007fffa7dd8563 in CmpStatement::process (this=0x7fff97b4d400,
> sqltext=...) at ../arkcmp/CmpStatement.cpp:474
> #36 0x00007fffa7dcd898 in CmpContext::compileDirect (this=0x7fff97c78090,
> data=0x7fff97d8de28 "\200", data_len=216, outHeap=0x7fff9ad04f20,
> charset=15, op=CmpMessageObj::SQLTEXT_COMPILE, gen_code=@0x7ffff6c8ecd0,
> gen_code_len=@0x7ffff6c8ecdc, parserFlags=0, diagsArea=0x7fff97d8df08)
> at ../arkcmp/CmpContext.cpp:517
> #37 0x00007fffa6ada108 in CliStatement::prepare2 (this=0x7fff97dae4f0,
> source=0x7fff97dc1d90 "UPSERT INTO testDecimalArithmatic(pk, col1, col2,
> col3, col4, col5) VALUES(?,?,?,?,?,?)", diagsArea=..., passed_gen_code=0x0,
> passed_gen_code_len=0, charset=15, unpackTdbs=1, cliFlags=144)
> at ../cli/Statement.cpp:1782
> #38 0x00007fffa6ad8f30 in CliStatement::prepare (this=0x7fff97dae4f0,
> source=0x7fff97dc1d90 "UPSERT INTO testDecimalArithmatic(pk, col1, col2,
> col3, col4, col5) VALUES(?,?,?,?,?,?)", diagsArea=..., passed_gen_code=0x0,
> passed_gen_code_len=0, charset=15, unpackTdbs=1, cliFlags=144)
> at ../cli/Statement.cpp:1373
> #39 0x00007fffa6a8efc6 in SQLCLI_Prepare (cliGlobals=0x11ce2e0,
> statement_id=0x1d68810, sql_source=0x7ffff6c8efa0) at ../cli/Cli.cpp:5831
> #40 0x00007fffa6af8d4c in SQL_EXEC_Prepare (statement_id=0x1d68810,
> sql_source=0x7ffff6c8efa0) at ../cli/CliExtern.cpp:4846
> #41 0x00007fffa8d8c781 in PREPARE (pSrvrStmt=0x1d68200)
> at native/SqlInterface.cpp:1452
> #42 0x00007fffa8d87401 in SRVR_STMT_HDL::Prepare (this=0x1d68200,
> inSqlString=0x7ffff6c8f1e0, inStmtType=0, inHoldability=0,
> inQueryTimeout=0, isISUD=false) at native/CSrvrStmt.cpp:152
> #43 0x00007fffa8da55d9 in odbc_SQLSvc_Prepare_sme_ (objtag_=0x0, call_id_=0x0,
> exception_=0x7ffff6c8f210, dialogueId=23430848,
> stmtLabel=0x1d73a84 "STMT20", stmtExplainLabel=0x7fffa8daa1ec "",
> stmtType=0, sqlString=0x7ffff6c8f1e0, holdability=0, sqlStmtType=0,
> batchSize=0, fetchSize=1, queryTimeout=0, estimatedCost=0x7ffff6c8f278,
> inputDesc=0x7ffff6c8f240, outputDesc=0x7ffff6c8f250,
> sqlWarning=0x7ffff6c8f260, stmtId=0x7ffff6c8f230,
> inputParamOffset=0x7ffff6c8f270, moduleName=0x0, isISUD=false)
> at native/SrvrOthers.cpp:161
> #44 0x00007fffa8d9fa82 in
> Java_org_trafodion_sql_SQLMXPreparedStatement_prepare
> (jenv=0x6131d8, jobj=0x7ffff6c8f400, server=0x0, dialogueId=23430848,
> txid=0, autoCommit=0 '\000', stmtLabel=0x7ffff6c8f3d0, sql=0x7ffff6c8f3c8,
> isSelect=0 '\000', queryTimeout=0, holdability=0, jbatchSize=0,
> jfetchSize=1) at native/SQLMXPreparedStatement.cpp:128
> #45 0x00007ffff331cf90 in ?? ()
> #46 0x00007ffff6c8f3d0 in ?? ()
> #47 0x00007ffff6c8f3c8 in ?? ()
> #48 0x00007fff00000000 in ?? ()
> #49 0x00007fff00000000 in ?? ()
> #50 0x0000000200000000 in ?? ()
> #51 0x00007fff00000000 in ?? ()
> #52 0x0000000200000001 in ?? ()
> #53 0x0000000000000000 in ?? ()
> (gdb) bt
> #0 0x00000039e28328a5 in raise () from /lib64/libc.so.6
> #1 0x00000039e2834085 in abort () from /lib64/libc.so.6
> #2 0x00000039e282ba1e in __assert_fail_base () from /lib64/libc.so.6
> #3 0x00000039e282bae0 in __assert_fail () from /lib64/libc.so.6
> #4 0x00007fffa7a1c15e in NAHeap::doCheckInuseFragment (this=0x7fff97d8eaa0,
> p=0x7fff97b70850) at ../common/NAMemory.cpp:3830
> #5 0x00007fffa7a1a6cd in NAHeap::deallocateHeapMemory (this=0x7fff97d8eaa0,
> addr=0x7fff97b70860) at ../common/NAMemory.cpp:3381
> #6 0x00007fffa7a16509 in NAMemory::deallocateMemory (this=0x7fff97d8eaa0,
> addr=0x7fff97b70860) at ../common/NAMemory.cpp:1354
> #7 0x00007fffa2c9e693 in NADefaults::deleteMe (this=0x7fff97c84e00)
> at ../sqlcomp/nadefaults.cpp:3808
> #8 0x00007fffa2c9e3b5 in NADefaults::~NADefaults (this=0x7fff97c84e00,
> __in_chrg=<value optimized out>) at ../sqlcomp/nadefaults.cpp:3788
> #9 0x00007fffa16b1e36 in SchemaDB::~SchemaDB (this=0x7fff97c84b38,
> __in_chrg=<value optimized out>) at ../optimizer/SchemaDB.cpp:152
> #10 0x00007fffa16b1f2e in SchemaDB::~SchemaDB (this=0x7fff97c84b38,
> __in_chrg=<value optimized out>) at ../optimizer/SchemaDB.cpp:152
> #11 0x00007fffa7dcfb2f in CmpContext::~CmpContext (this=0x7fff97c7b090,
> __in_chrg=<value optimized out>) at ../arkcmp/CmpContext.cpp:266
> #12 0x00007fffa7dcfdb0 in CmpContext::deleteInstance (
> parentHeap=0x7fff9ad07f20) at ../arkcmp/CmpContext.cpp:287
> #13 0x00007fffa6aadf89 in ContextCli::deleteMe (this=0x7fff9ad07f10)
> ---Type <return> to continue, or q <return> to quit---
> at ../cli/Context.cpp:372
> #14 0x00007fffa6acc854 in CliGlobals::dropContext (this=0x11ce150,
> context=0x7fff9ad07f10) at ../cli/Globals.cpp:650
> #15 0x00007fffa6a88ac6 in SQLCLI_DropContext (cliGlobals=0x11ce150,
> context_handle=2003) at ../cli/Cli.cpp:1831
> #16 0x00007fffa6a87f36 in SQLCLI_DeleteContext (cliGlobals=0x11ce150,
> context_handle=2003) at ../cli/Cli.cpp:1420
> #17 0x00007fffa6af6fa3 in SQL_EXEC_DeleteContext (contextHandle=2003)
> at ../cli/CliExtern.cpp:1503
> #18 0x00007fffa8d92451 in DISCONNECT (pSrvrConnect=0x7a32d0)
> at native/SqlInterface.cpp:2852
> #19 0x00007fffa8d81a0b in SRVR_CONNECT_HDL::sqlClose (this=0x7a32d0)
> at native/CSrvrConnect.cpp:137
> #20 0x00007fffa8d9f4cf in Java_org_trafodion_sql_SQLMXConnection_close (
> jenv=0x6131d8, jcls=0x7ffff6c8f440, server=0x0, dialogueId=8008400)
> at native/SQLMXConnection.cpp:239
> #21 0x00007ffff331cf90 in ?? ()
> #22 0x00007ffff6c8f3f0 in ?? ()
> #23 0x00007ffff6c8f448 in ?? ()
> #24 0x00007ffff6c8f448 in ?? ()
> #25 0x00007ffff3311450 in ?? ()
> #26 0x00007ffff6c8f3f0 in ?? ()
> #27 0x0000000000000000 in ?? ()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)