[
https://issues.apache.org/jira/browse/TRAFODION-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890691#comment-15890691
]
ASF GitHub Bot commented on TRAFODION-2514:
-------------------------------------------
GitHub user selvaganesang opened a pull request:
https://github.com/apache/incubator-trafodion/pull/985
[TRAFODION-2514] Obscure cores seen in Trafodion while running jenkin…
…s tests with RH7
The global object gv_sb_thread_table was not constructed in a
thread safe manner.
There was buffer overrun while creating explain fragment involving hive
tables.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/selvaganesang/incubator-trafodion
obscure_cores
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafodion/pull/985.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 #985
----
commit 85d1596e8d8e4975f400cc5fa85a3af4cafab3cd
Author: selvaganesang <[email protected]>
Date: 2017-03-01T17:56:35Z
[TRAFODION-2514] Obscure cores seen in Trafodion while running jenkins
tests with RH7
The global object gv_sb_thread_table was not constructed in a
thread safe manner.
There was buffer overrun while creating explain fragment involving hive
tables.
----
> Obscure cores seen in Trafodion while running jenkins tests with RH7
> --------------------------------------------------------------------
>
> Key: TRAFODION-2514
> URL: https://issues.apache.org/jira/browse/TRAFODION-2514
> Project: Apache Trafodion
> Issue Type: Bug
> Components: foundation, sql-exe
> Affects Versions: any
> Reporter: Selvaganesan Govindarajan
> Assignee: Selvaganesan Govindarajan
> Fix For: 2.2-incubating
>
>
> Core dump in foundation layer is as follows
> #1 0x00007fbd387d9ce8 in abort () from /lib64/libc.so.6
> #2 0x00007fbd375fa965 in __gnu_cxx::__verbose_terminate_handler() () from
> /lib64/libstdc++.so.6
> #3 0x00007fbd375f8946 in ?? () from /lib64/libstdc++.so.6
> #4 0x00007fbd375f8973 in std::terminate() () from /lib64/libstdc++.so.6
> #5 0x00007fbd375f94df in __cxa_pure_virtual () from /lib64/libstdc++.so.6
> #6 0x00007fbd382adaec in VMError::report_and_die() () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #7 0x00007fbd381175c7 in JVM_handle_linux_signal () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #8 0x00007fbd3810b848 in signalHandler(int, siginfo_t*, void*) () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #9 <signal handler called>
> #10 0x00000000051245a0 in ?? ()
> #11 0x00007fbd1174888c in SignalHandler(int) () from
> /home/jenkins/workspace/core-regress-executor-cdh/traf_run/export/lib64/libtdm_sqlexp.so
> #12 <signal handler called>
> #13 0x00007fbd387d85f7 in raise () from /lib64/libc.so.6
> #14 0x00007fbd387d9ce8 in abort () from /lib64/libc.so.6
> #15 0x00007fbd375fa9d5 in __gnu_cxx::__verbose_terminate_handler() () from
> /lib64/libstdc++.so.6
> #16 0x00007fbd375f8946 in ?? () from /lib64/libstdc++.so.6
> #17 0x00007fbd375f8973 in std::terminate() () from /lib64/libstdc++.so.6
> #18 0x00007fbd375f94df in __cxa_pure_virtual () from /lib64/libstdc++.so.6
> #19 0x00007fbd3811ac76 in outputStream::print_cr(char const*, ...) () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #20 0x00007fbd382aba07 in VMError::report(outputStream*) () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #21 0x00007fbd382ad69f in VMError::report_and_die() () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #22 0x00007fbd381175c7 in JVM_handle_linux_signal () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #23 0x00007fbd3810b848 in signalHandler(int, siginfo_t*, void*) () from
> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-3.b13.el7_2.x86_64/jre/lib/amd64/server/libjvm.so
> #24 <signal handler called>
> #25 0x0000000000000000 in ?? ()
> #26 0x00007fbd1244d211 in SB_Ts_Table_Mgr<SB_Thread_Ctx_Type>::free_entry
> (this=0x7fbd126636a0 <gv_sb_thread_table>, pv_inx=1) at tablemgr.inl:265
> #27 0x00007fbd1244ba7c in sb_thread_ctx_key_dtor (pp_ctx=0x4bd5a00) at
> threadl.cpp:192
> #28 0x00007fbd39195bc2 in __nptl_deallocate_tsd () from /lib64/libpthread.so.0
> #29 0x00007fbd39195dd3 in start_thread () from /lib64/libpthread.so.0
> #30 0x00007fbd38899ced in clone () from /lib64/libc.so.6
> Core dump in SQL layer is as follows
> Thread 1 (Thread 0x7fa8421a1a80 (LWP 52446)):
> #0 0x00007fa83f1e05f7 in raise () from /lib64/libc.so.6
> #1 0x00007fa83f1e1e28 in abort () from /lib64/libc.so.6
> #2 0x00007fa84107fd99 in os::abort(bool) () from
> /usr/lib/jvm/java-1.8.0-openjdk/jre/lib/amd64/server/libjvm.so
> #3 0x00007fa841220d06 in VMError::report_and_die() () from
> /usr/lib/jvm/java-1.8.0-openjdk/jre/lib/amd64/server/libjvm.so
> #4 0x00007fa841088f47 in JVM_handle_linux_signal () from
> /usr/lib/jvm/java-1.8.0-openjdk/jre/lib/amd64/server/libjvm.so
> #5 0x00007fa84107d1b8 in signalHandler(int, siginfo_t*, void*) () from
> /usr/lib/jvm/java-1.8.0-openjdk/jre/lib/amd64/server/libjvm.so
> #6 <signal handler called>
> #7 NAMemory::allocateMemory (this=this@entry=0x7fa700203131,
> size=size@entry=332, failureIsFatal=failureIsFatal@entry=1) at
> ../common/NAMemory.cpp:1377
> #8 0x00007fa84196a2d2 in checkedRealloc (h=0x7fa700203131, newSize=332,
> dataSize=282, ptr=0x7fa7c7a2b418) at ../export/FBString.h:304
> #9 smartRealloc (h=0x7fa700203131, newCapacity=332,
> currentCapacity=<optimized out>, currentSize=282, p=0x7fa7c7a2b418) at
> ../export/FBString.h:348
> #10 reallocate (h=0x7fa700203131, newCapacity=316, currentCapacity=<optimized
> out>, currentSize=266, data=0x7fa7c7a2b420 "scan_type: subset scan of table
> TRAFODION.HBASE.CUSTOMER_DEMOGRAPHICS_SALT object_type: Trafodion
> cache_size: 10000 cache_blocks: OFF probes: 1 rows_accessed: 1e+11
> use_snapshot_scan: TRUE full_table"...) at ../export/FBString.h:959
> #11 folly::fbstring_core<char>::reserve (this=0x7ffcd30ff480,
> minCapacity=316) at ../export/FBString.h:655
> #12 0x00007fa83d9412a7 in expand_noinit (delta=50, this=0x7ffcd30ff480) at
> ../export/FBString.h:742
> #13 append (n=50, s=0x7ffcd30ff451
> "RAFODION.HBASE.CUSTOMER_DEMOGRAPHICS_SALT_SNAP111 ", this=0x7ffcd30ff480) at
> ../export/FBString.h:1534
> #14 NAString::operator+= (this=0x7ffcd30ff470, cs=<optimized out>) at
> ../export/NAStringDef.h:566
> #15 0x00007fa83754cc93 in HbaseAccess::addSpecificExplainInfo
> (this=0x7fa7d0b4d6a0, explainTuple=0x7fa7d0b6c2a8, tdb=0x7fa7c7a2fbd0,
> generator=<optimized out>) at ../generator/GenExplain.cpp:1026
> #16 0x00007fa83754b8f1 in RelExpr::addExplainInfo
> (this=this@entry=0x7fa7d0b4d6a0, tdb=tdb@entry=0x7fa7c7a2fbd0,
> leftChild=leftChild@entry=0x0, rightChild=rightChild@entry=0x0,
> generator=generator@entry=0x7ffcd31045f0) at ../generator/GenExplain.cpp:482
> #17 0x00007fa8375d1f03 in HbaseAccess::codeGen (this=0x7fa7d0b4d6a0,
> generator=0x7ffcd31045f0) at ../generator/GenRelScan.cpp:3572
> #18 0x00007fa8375b9cdf in Sort::codeGen (this=0x7fa7d0b4c580,
> generator=0x7ffcd31045f0) at ../generator/GenRelMisc.cpp:3324
> #19 0x00007fa8375923bf in Exchange::codeGenForESP (this=0x7fa7d0b4a990,
> generator=0x7ffcd31045f0) at ../generator/GenRelEnforcer.cpp:605
> #20 0x00007fa8375bd88f in RelRoot::codeGen (this=0x7fa7d0b49b68,
> generator=0x7ffcd31045f0) at ../generator/GenRelMisc.cpp:1277
> #21 0x00007fa8375279db in Generator::genCode (this=this@entry=0x7ffcd31045f0,
> source=source@entry=0x7fa7cfa66e08 "select * from
> HBASE.CUSTOMER_DEMOGRAPHICS_SALT <<+ cardinality 10e10 >> order by
> cd_demo_sk;", expr_node=<optimized out>) at ../generator/Generator.cpp:575
> #22 0x00007fa83952f14f in CmpMain::compile (this=this@entry=0x7ffcd31063c0,
> input_str=input_str@entry=0x7fa7cfa66e08 "select * from
> HBASE.CUSTOMER_DEMOGRAPHICS_SALT <<+ cardinality 10e10 >> order by
> cd_demo_sk;", charset=charset@entry=15, queryExpr=@0x7ffcd31056f0:
> 0x7fa7d0b49b68, gen_code=gen_code@entry=0x7fa7cb46e228,
> gen_code_len=gen_code_len@entry=0x7fa7cb46e220,
> heap=heap@entry=0x7fa842065680, phase=phase@entry=CmpMain::END,
> fragmentDir=fragmentDir@entry=0x7ffcd3106318, op=op@entry=3004,
> useQueryCache=useQueryCache@entry=1,
> cacheable=cacheable@entry=0x7ffcd31056e8,
> begTime=begTime@entry=0x7ffcd3105700, shouldLog=shouldLog@entry=0) at
> ../sqlcomp/CmpMain.cpp:2406
> #23 0x00007fa839530a05 in CmpMain::sqlcomp (this=this@entry=0x7ffcd31063c0,
> input_str=input_str@entry=0x7fa7cfa66e08 "select * from
> HBASE.CUSTOMER_DEMOGRAPHICS_SALT <<+ cardinality 10e10 >> order by
> cd_demo_sk;", charset=15, queryExpr=@0x7ffcd31056f0: 0x7fa7d0b49b68,
> gen_code=gen_code@entry=0x7fa7cb46e228,
> gen_code_len=gen_code_len@entry=0x7fa7cb46e220,
> heap=heap@entry=0x7fa842065680, phase=phase@entry=CmpMain::END,
> fragmentDir=fragmentDir@entry=0x7ffcd3106318, op=op@entry=3004,
> useQueryCache=useQueryCache@entry=1,
> cacheable=cacheable@entry=0x7ffcd31056e8,
> begTime=begTime@entry=0x7ffcd3105700, shouldLog=shouldLog@entry=0) at
> ../sqlcomp/CmpMain.cpp:1717
> #24 0x00007fa839531226 in CmpMain::sqlcomp (this=this@entry=0x7ffcd31063c0,
> input=..., gen_code=0x7fa7cb46e228, gen_code_len=0x7fa7cb46e220,
> heap=0x7fa842065680, phase=phase@entry=CmpMain::END,
> fragmentDir=fragmentDir@entry=0x7ffcd3106318, op=op@entry=3004) at
> ../sqlcomp/CmpMain.cpp:819
> #25 0x00007fa83e547d58 in CmpStatement::process
> (this=this@entry=0x7fa7cfa944d8, sqltext=...) at
> ../arkcmp/CmpStatement.cpp:502
> #26 0x00007fa83e538e63 in CmpContext::compileDirect (this=0x7fa82c588090,
> data=data@entry=0x7fa8420b6020 "p", data_len=data_len@entry=208,
> outHeap=outHeap@entry=0x7fa8420d6128, charset=charset@entry=15,
> op=op@entry=CmpMessageObj::SQLTEXT_COMPILE, gen_code=@0x7ffcd3106768: 0x0,
> gen_code_len=@0x7ffcd3106764: 0, parserFlags=parserFlags@entry=0,
> parentQid=parentQid@entry=0x0, parentQidLen=parentQidLen@entry=0,
> diagsArea=diagsArea@entry=0x7fa8420b60f8) at ../arkcmp/CmpContext.cpp:905
> #27 0x00007fa83ef5fb8c in CliStatement::prepare2 (this=0x7fa842084720,
> source=0x7fa842083d90 "select * from HBASE.CUSTOMER_DEMOGRAPHICS_SALT <<+
> cardinality 10e10 >> order by cd_demo_sk;", diagsArea=...,
> passed_gen_code=<optimized out>, passed_gen_code_len=<optimized out>,
> charset=15, unpackTdbs=1, cliFlags=144) at ../cli/Statement.cpp:1749
> #28 0x00007fa83ef5ff61 in CliStatement::prepare
> (this=this@entry=0x7fa842084720, source=<optimized out>, diagsArea=...,
> passed_gen_code=passed_gen_code@entry=0x0,
> passed_gen_code_len=passed_gen_code_len@entry=0, charset=<optimized out>,
> unpackTdbs=<optimized out>, unpackTdbs@entry=1, cliFlags=<optimized out>) at
> ../cli/Statement.cpp:1405
> #29 0x00007fa83ef1f7f6 in SQLCLI_Prepare2 (cliGlobals=0x13d8110,
> statement_id=0x4a5c770, sql_source=<optimized out>, gencode_ptr=0x0,
> gencode_len=0, ret_gencode_len=0x0, query_cost_info=0x7ffcd31069f0,
> query_comp_stats_info=0x7ffcd3106bd0, uniqueStmtId=0x7ffcd3106a40 " ",
> uniqueStmtIdLen=0x7ffcd31069e4, flags=128) at ../cli/Cli.cpp:5923
> #30 0x00007fa83ef6921c in SQL_EXEC_Prepare2 (statement_id=0x4a5c770,
> sql_source=0x479cb60, gencode_ptr=0x0, gencode_len=0, ret_gencode_len=0x0,
> query_cost_info=0x7ffcd31069f0, comp_stats_info=0x7ffcd3106bd0,
> uniqueStmtId=0x7ffcd3106a40 " ", uniqueStmtIdLen=0x7ffcd31069e4,
> flags=128) at ../cli/CliExtern.cpp:5206
> #31 0x00007fa841974c7e in SqlCmd::do_prepare
> (sqlci_env=sqlci_env@entry=0x13c6230, prep_stmt=prep_stmt@entry=0x42edff0,
> sqlStmt=<optimized out>, resetLastExecStmt=resetLastExecStmt@entry=1,
> rsIndex=rsIndex@entry=0, prepcode=prepcode@entry=0x0,
> statisticsType=statisticsType@entry=0x0) at ../sqlci/SqlCmd.cpp:998
> #32 0x00007fa841975290 in Prepare::process (this=0x41183f0,
> sqlci_env=0x13c6230) at ../sqlci/SqlCmd.cpp:3062
> #33 0x00007fa841956cb9 in Obey::process (this=0x3fefbc0, sqlci_env=<optimized
> out>) at ../sqlci/Obey.cpp:267
> #34 0x00007fa841956cb9 in Obey::process (this=0x428b1b0, sqlci_env=<optimized
> out>) at ../sqlci/Obey.cpp:267
> #35 0x00007fa84195e806 in SqlciEnv::run (this=this@entry=0x13c6230,
> in_filename=<optimized out>, input_string=<optimized out>) at
> ../sqlci/SqlciEnv.cpp:733
> #36 0x00000000004019a4 in main (argc=2, argv=0x7ffcd3108068) at
> ../bin/SqlciMain.cpp:329
> These problems were observed in Esgyn version of Trafodion.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)